469,610 Members | 1,620 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,610 developers. It's quick & easy.

session.putValue()

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>

<%}
}

%>
Jul 23 '05 #1
1 3301
In article <51**************************@posting.google.com >,
di*****@netscape.net enlightened us with...
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

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Paul | last post: by
27 posts views Thread by mrbog | last post: by
reply views Thread by Sameer | last post: by
reply views Thread by joseph conrad | last post: by
14 posts views Thread by aroraamit81 | last post: by
7 posts views Thread by aroraamit81 | last post: by
1 post views Thread by Santosh | last post: by
1 post views Thread by iedayah88 | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.