File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 tag

 
manu chaox
Ranch Hand
Posts: 110
  • 0
  • 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
  • 0
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic