Error: use session scope when JSP page declares (via page directive) that i
843836Apr 27 2005 — edited May 6 2005I 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....