• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 tag  RSS feed

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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 ?

Thanks

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://struts.apache.org/2.x/docs/property.html
http://struts.apache.org/2.x/docs/ognl-basics.html
http://struts.apache.org/2.x/docs/ognl.html

Although if you're on any recent app server I'm not sure why you wouldn't just use JSP EL.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!