I have the following code written in the
Struts Action class
String var = "test";
HttpSession session = request.getSession(false);
session.setAttribute("nameval",variable);
How can I ge the attribute from the
JSP.
I tried this
<bean:define id="nameval" scope="session" type="java.lang.String" name="nameval"/>
and got error
webapp:
Servlet error javax.servlet.jsp.JspException: Cannot find bean nameval in scope session
I know nameval is not a bean, But I just tried and don't know the alternate way.
Thanks