hi to all,
I am new to
struts. i have a problem like
I set the username to request.setAttribute("user", user);
in the GreetingAction class ,from this control goes to main.jsp
through this statement [ return mapping.findForward("out"); ]
i am trying to fetch this attribute in main.jsp by
<%=request.getAttribute("user")%> tag
my struts action element is like
<action name="LoginForm" parameter="method" path="/main" scope="request"
type="com.coremobility.Actions.GreetingAction">
<forward name="out" path="/pages/main.jsp" redirect="true"/>
</action>
problem is that i got null instead of getting value of user attribute.
when i remove "redirect" attribute from the forward subelement then its working but when i refresh the page it is not working.
is there any way to pass this username from one page to another
wating for reply
regrads,
...yogesh