I need to use the attributes i have set in session in my JSP. i dont want to use scriplets to achieve this. is there any tags available to use session object and retrieve attributes from that? any tags in defined by struts or JSTL or some custom tags is fine. please help me.
regards, surendar prabu
posted 9 years ago
Yes. For example, suppose you have a JavaBean named "user" as an attribute in the session, and you want to display the property "firstName" on that bean. Here's how you'd do it in Struts:
Here's how you'd do it in JSTL:
This will check for a bean named "user" in any scope