Hi,
In my jsp I import the beans from my dispatcher class. I use Strings all the time and it works fine and als Vectors. Now I need some beans from the type Integer and I get an error in my jsp page.
Here's a piece of my code:
<%@ include file="/general/header.jsp" %>
<jsp:useBean id="offset" scope="request" class="java.lang.Integer" />
<jsp:useBean id="limit" scope="request" class="java.lang.Integer" />
<jsp:useBean id="numberofitems" scope="request" class="java.lang.Integer" />
<jsp:useBean id="resultitems" scope="request" class="java.util.Vector" />
<SCRIPT language="javascript">
<%
I am getting the following error:
org.apache.jasper.JasperException: /buy/viewitems.jsp(2,0) The value for the useBean class attribute java.lang.Integer is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
I am using tomcat 6
Do I need to inlcude extra libraries in my tomcat?
Any help is welcome.
Thanks,
Jarno