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.

Results 1 to 2 of 2

Thread: Unable to view jsp pages through same login page

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Unable to view jsp pages through same login page

    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.....


  2. #2
    Member
    Join Date
    Aug 2011
    Posts
    48
    My Mood
    Fine
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Re: Unable to view jsp pages through same login page

    how i view different pages through the same login page using struts.xml.....
    What condition will show different pages?

    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.

Similar Threads

  1. Need help in login page in struts
    By vinothkumarrvk in forum Web Frameworks
    Replies: 4
    Last Post: October 4th, 2011, 03:10 PM
  2. Unable to view date
    By Rajiv in forum Web Frameworks
    Replies: 1
    Last Post: August 17th, 2011, 10:03 AM
  3. why a unknown symbol is visible on a jsp page which include another html pages
    By se.anilp in forum JavaServer Pages: JSP & JSTL
    Replies: 4
    Last Post: July 21st, 2011, 11:12 AM
  4. login page with image
    By balu424525 in forum AWT / Java Swing
    Replies: 1
    Last Post: June 26th, 2011, 12:24 PM
  5. unable to view the result generated by stored procedure
    By najmudeenhaja in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 1st, 2010, 09:39 AM