Hello Everyone
I am trying to get my hands on Struts2, and started getting issues. The scenario is as follows :
1.) Entered a username and password from index.jsp
2.) Action class returns success and is navigated to welcome.jsp
3.) In welcome.jsp :
-- I extracted the username using <s:property value="name"/>
Question : What if i start a session in welcome.jsp and try to set an attribute in session scope . How would i do this ?
session.setAttribute("loggedusername", <s:property value="name"/>);
I know this is wrong but how would we do it ? As the logged in user name is fetched to this page using
struts property tag.
Thanks!!!