Results 1 to 5 of 5

Thread: single action to forward to different multiple JSP pages

  1. #1
    Geek_Guest
    Guest

    single action to forward to different multiple JSP pages

    Is there any possibility to on single action to forward to different multiple jsp pages.

    Example:

    When i click on login button in a.jsp i would like to go b.jsp, c.jsp, d.jsp

    Question asked by visitor Sridhar


  2. #2
    Junior Member
    Join Date
    Jun 2007
    Answers
    20

    Re: single action to forward to different multiple JSP pages

    When we submit any request it goes Action servlet if ur action servlet comprise of different taskaction thn u can return different values for Action forward object. Accordingly you can change the path to different jsp in web.xml.


  3. #3
    Junior Member
    Join Date
    Jun 2007
    Answers
    7

    Re: single action to forward to different multiple JSP pages



  4. #4
    Junior Member
    Join Date
    Jan 2008
    Answers
    11

    Re: single action to forward to different multiple JSP pages

    for that perpose use DispatchAction


  5. #5

    Re: single action to forward to different multiple JSP pages

    Hi,
    What DeepthiAgarwal said is right.But make modifications accordingly in struts-config.xml, not in web.xml


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact