HighDots Forums  

session.putValue()

Javascript JavaScript language (comp.lang.javascript)


Discuss session.putValue() in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dimitris
 
Posts: n/a

Default session.putValue() - 04-20-2004 , 03:40 PM






Hi,
I have a problem with the results of a sql query. My code is the
following. I keep the results on a table and I want those results to
be available on another jsp file. I use the session.putValue() method
by it holds only the last result of the table. How can I keep all the
values and link them to another jsp file ?


<% String t_exam_date, var2 ;

healthpack.SearchClass search1 = new healthpack.SearchClass();
Vector records1=search1.getListExams(t_pa_ssn);


if (records1.size()>0) {
for (int i=0;i<records1.size();i++){
java.util.HashMap temp1=new java.util.HashMap();
temp1=(java.util.HashMap) records1.elementAt(i);

t_exam_date=(String)temp1.get("exam_date");
out.println(t_exam_date);


%>
<table width = "50%" border="2" align="center">
<tr>

<td colspan="2" bgcolor="#3399ff" height="1" nowrap><B>
<SPAN style="background-color: #3399ff"><B>
<font color="#FFFF00">EXAM_DATE:</font> </B>
<A href="List_exams1.jsp"><font color="#0000CC">
<%=temp1.get("exam_date")%></SPAN></B></A>
</td>

<td colspan="2" bgcolor="#3399ff" height="1" nowrap><B>
<SPAN style="background-color: #3399ff"><B>
<font color="#FFFF00">NAME:</font> </B><font
color="#0000CC">
<%=temp1.get("name")%>></SPAN></A></B>
</td>

</tr>
<tr>

<td bgcolor="#FFFFFF" height="0.5" colspan="5"></td>
</tr>
</table>

<%}
}

%>

Reply With Quote
  #2  
Old   
kaeli
 
Posts: n/a

Default Re: session.putValue() - 04-20-2004 , 03:49 PM






In article <518b6ae1.0404201240.7a070e9c (AT) posting (DOT) google.com>,
dimbarb (AT) netscape (DOT) net enlightened us with...
Quote:
Hi,
I have a problem with the results of a sql query. My code is the
following. I keep the results on a table and I want those results to
be available on another jsp file. I use the session.putValue() method
by it holds only the last result of the table. How can I keep all the
values and link them to another jsp file ?


comp.lang.java groups are that way ==>

javascript != java.
JSP = Java Server Pages

--
--
~kaeli~
Those who get too big for their britches will be exposed in
the end.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.