I am new to JSP and i wanted to display session attributes onto the
HTML PAGE
same page. How do i write the syntax and where to i write it.
Markus - 22 Nov 2005 12:52 GMT
Try this on your JSP:
...
<%
out.println(session.getAttribute("yourAttributeName");
%>
...
With sesion.getAttributeNames() you will get an Enumeration of all
AttributeNames.
Kind regards
Markus
VisionSet - 22 Nov 2005 13:24 GMT
> I am new to JSP and i wanted to display session attributes onto the
> HTML PAGE
> same page. How do i write the syntax and where to i write it.
Or in JSTL
${sessionScope.mySessionAttribute}
or just
${mySessionAttribute}
Tomcat needs the JSTL jar on its classpath.
The JSTL library is available from Apache/Jakarta.
--
Mike W