2009/5/11 NR031 :
> Map sesion=ActionContext.getContext().getSession();
> sesion.put("username",getUn()); /*getun() returns the username form field
> data*/
>
> I want to use this session data in all my JSP pages, how to use the session
> data in my JSP? I am using Struts -2 and NetBeans 6.1 IDE
That depends on how you want to use it. The tag reference should give
you the information you need.
http://struts.apache.org/2.1.6/docs/tag-developers-guide.html
http://struts.apache.org/2.1.6/docs/ognl.html
http://struts.apache.org/2.1.6/docs/tag-syntax.html
Nils-H
On Mon, May 11, 2009 at 7:57
2 matches
Mail list logo