Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The value for the useBean class attribute java.lang.Integer is invalid

843838Jun 10 2007 — edited Feb 12 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2008
Added on Jun 10 2007
3 comments
1,506 views