Results 1 to 4 of 4
  1. #1
    ajincoep is offline Member
    Join Date
    Aug 2010
    Rep Power

    Default calling a JSP from a JSP

    Hi guys,

    A jsp displays a transactionID which is a link <a href ....> 123213(Trans ID)</a>
    By clicking the transacition ID the a new jsp will be spawned with transaction details.

    1. I want the request object to persist when new jsp is called.

    2. The new jsp would be displayed in a window. So I would be writing a onClick function to call function and the function will use to open the new jsp in window

    Could you pls tell me how to do this.
    Thanks in Advance.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    Well, for number 1 then you'd either have to stick the request parameters on the page as a hidden form, or in the servlet that forwards to the original JSP extract the parameters into a meaningful object and store that in the current session.

    The "opening in a new window" bit is Javascript.

  4. #4 is offline Member
    Join Date
    Oct 2010
    Rep Power


    1.If you want the object to be accessed in another page
    store the object in either "request", "session", "application" scopes

    2.The answer to your second requirement is:
    It will open the target page in new window
    <a href='hai.jsp' target='_blank'>hai</a>

Similar Threads

  1. Calling swt shells one after another
    By Maja in forum SWT / JFace
    Replies: 1
    Last Post: 10-18-2010, 01:36 PM
  2. Calling the Function again
    By Swetz55 in forum New To Java
    Replies: 2
    Last Post: 12-19-2009, 11:10 AM
  3. Constructor calling
    By ravian in forum New To Java
    Replies: 2
    Last Post: 12-22-2007, 06:53 PM
  4. Calling Methods
    By bluegreen7hi in forum New To Java
    Replies: 3
    Last Post: 12-17-2007, 06:22 AM
  5. Help with Calling a method
    By Albert in forum New To Java
    Replies: 3
    Last Post: 07-10-2007, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts