i have one login page and action from struts.xml direct me to success page , but i have three different jsp pages. how i view different pages through the same login page using struts.xml.....
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
i have one login page and action from struts.xml direct me to success page , but i have three different jsp pages. how i view different pages through the same login page using struts.xml.....
What condition will show different pages?how i view different pages through the same login page using struts.xml.....
I am assuming you are working on Struts 2, so this maybe help:
public String executeLogin() { if (condition1) { return "PATH1"; } else if (condition2) { retujrn "PATH2"; } return "PATH_DEFAULT"; }
immutable objects
Last edited by ha.minh.nam; December 4th, 2011 at 07:31 PM.