Results 1 to 1 of 1
- 01-08-2009, 05:29 AM #1
Member
- Join Date
- Nov 2007
- Posts
- 38
- Rep Power
- 0
Forwarding data problem with struts.xml
Hi Guys,
I hava login action which logs the user in, loads his data and then moves onto the JSP where it is displayed. I have come across one problem though with the struts. If I set my struts to the following:
In the login action, the final result is to forward to manager.jsp. This works perfectly fine. But if I use <result name="manager" type="redirect">ManagerPanel.action</result> in the place of <result>/main/user/manager.jsp</result> the data is not forwarded to the JSP. does anyone know why ? And how I can correct this?Java Code:<action name="ManagerPanel"> <interceptor-ref name="LoginChecker"/> <result>/main/user/manager.jsp</result> </action> <action name="Login" class="LoginManager"> <result name="input">/main/index.jsp</result> <result name="error">/main/index.jsp</result> <result>/main/user/manager.jsp</result> </action>
.
Similar Threads
-
Struts: Reuse data across multiple ActionForms problem
By Tequila_Burp in forum Web FrameworksReplies: 3Last Post: 12-12-2012, 10:04 AM -
decorator.jsp problem building Struts Menu in JSP when Struts action is used
By dkirvan in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-29-2010, 05:33 AM -
enctype=multipart/form-data with form data in struts
By vk_satheesh in forum New To JavaReplies: 0Last Post: 09-19-2008, 12:48 PM -
Data Leakage in Struts 2
By arun3m in forum Web FrameworksReplies: 0Last Post: 07-26-2008, 07:54 PM -
Forwarding mails in message/rfc822
By prithviraj in forum Advanced JavaReplies: 0Last Post: 05-18-2008, 10:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks