This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Hi, If I have a form action defined in my struts-config.xml as shown below as "/login", I assume that struts performs the login action class, which returns a "success" or a "failure". Is there anyway that I can take that success value and then perform another action? I tried as below but this does not work. Basically, what I want to happen, is if the LoginAction returns success, I want PreMainAction to be executed. Any tips of where I am wrong in my logic?
[ November 15, 2004: Message edited by: Kim Kantola ] [ November 15, 2004: Message edited by: Kim Kantola ]
You'll need to pretend that you're the browser calling the action and include the servlet-mapping.
ie:<forward name="success" path="/preMain.do"/>
Joined: May 17, 2001
Thank you Thank you! I was going to make a hole in my cube wall from banging my head into it so many times from the frustration! I just tried this out and it worked exactly as I hoped it would. I so appreciate your time. Thanks!