Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 16th, 2002, 07:57 AM
roborl roborl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 0 roborl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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!!

Reply With Quote
  #2  
Old May 16th, 2002, 02:26 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
URL querystring? ...widget.jsp?y=yes&n=no

Reply With Quote
  #3  
Old May 17th, 2002, 02:01 AM
roborl roborl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 0 roborl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What?

Reply With Quote
  #4  
Old May 17th, 2002, 03:31 AM
oscagne oscagne is offline
Java Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Posts: 5 oscagne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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...edbutton=Search

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

Oscagne

Reply With Quote
  #5  
Old May 18th, 2002, 01:12 AM
ptinney ptinney is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Modesto, CA US
Posts: 1 ptinney User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to ptinney
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Passing session varibles to pop up window


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway