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!

Error: use session scope when JSP page declares (via page directive) that i

843836Apr 27 2005 — edited May 6 2005
I used a sevlet to read blob data from DB which will be showed in a JSP. Here is my code:
in JSP
<img src='<%="ControllerServlet?path=ShowCustomerPicServlet&customerID="+customer.getCustomerID()%>' width="95" height="126" border=1>

It worked fine on Jetty 4.2, after updated to Jetty 5.1.3, i got following Error and the Pic will not be showed.

I am a new bie by Jetty and JSP, maybe a silly question :)) thanx a lot
ur Lebing


P1-17 WARN CallCenter -
/CallCenter/ControllerServlet?path=ShowCustomerPicServlet&customerID=1:
org.apache.jasper.JasperException: /ErrorPage.jsp(10,0) Illegal for useBean to
use session scope when JSP page declares (via page directive) that it does not
participate in sessions at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:104)
at
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 3 2005
Added on Apr 27 2005
3 comments
743 views