I have a JSP which when called gives the following error:
11:27:07,135 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
| org.apache.jasper.JasperException:
/useractivity/UserActivitiesDisplayAndUpdate.jsp(9,0) The value for the useBean
class attribute com.mycom.grover.bean.UserActivity is invalid.
|
In the servlet which directly precedes the JSP I have set an object of this
class into the HttpSession as an attribute, like so:
if (userActivity != null)
| {
| // add the bean to the session
| request.getSession().setAttribute("userActivity", userActivity);
| }
|
| // redirect the request
| response.sendRedirect(m_nextPage);
|
In the JSP I want to use the object as a bean so instead of using
session.getAttribute() I use jsp:useBean, like so:
<jsp:useBean id="userActivity"
| class="com.mycom.grover.bean.UserActivity"
| scope="session"/>
|
|
Am I mistaken in assuming that I can do this?
Can someone tell me what I'm doing wrong?
--James
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873460#3873460
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873460
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user