#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    0
    Rep Power
    0

    Question Passing session varibles to pop up window


    Hi,
    I currently have a table that is dynamical created in jsp from data within a database.

    What i want to do is, to be able to click on one of the eliments in the table so a pop-up windon appears, which too will pull more info from the database.

    The window will have a standard format but will need to know which eliment was clicked to be able to pull the relevent extra data from the database.

    I assume that you can do this with JSP session varibles but i dont know how.

    Does nebody have any ideas.

    Thanks for your help in advance.

    ROb!!
  2. #2
  3. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    0
    Rep Power
    0
    What?
  6. #4
  7. No Profile Picture
    Java Developer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    5
    Rep Power
    0
    what he means is append it to the url of the pop up. Get the pop

    url to be at http://127.0.0.1:8080/jsp/popup.jsp?...dbutton=Search

    just make your buttons call a new window with the url relevant to the button you clicked

    Oscagne
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Modesto, CA US
    Posts
    1
    Rep Power
    0
    Here is how to do it using sessions.

    result is a SQL ResultSet

    session = request.getSession();
    result = (ResultSet) session.getAttribute("resultObject");

    And here is how to set it

    session.setAttribute("resultObject", result);

    I'm using it to store a SQL ResultSet so I can easily page through the display of the summary of the query.

    Hmm, didn't read the whole question. The others had what you are looking for.

IMN logo majestic logo threadwatch logo seochat tools logo