This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 tag" Watch "Struts 2 tag" New topic

Struts 2 tag

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110

I'd like to read session parameter via struts 2 tag, but I am not suceed in it.

I can it via jsp tag:

I put a parameter "user" to session in a class.

In jsp page:

It works great.

But I don't know how to do it helping only struts 2 tags. (I have been trying for long time.)

Could you give me any example with struts 2 ?


David Newton

Joined: Sep 29, 2008
Posts: 12617

Although if you're on any recent app server I'm not sure why you wouldn't just use JSP EL.
I agree. Here's the link:
subject: Struts 2 tag
Similar Threads
Retrieving request parameters (from the url) in a jsp page
Chaining filter servlet
STRUTS: client-side validation in jsp using DynaValidatorForm
Help please-Exception thrown by the execute method
problem using html:link