wood burning stoves 2.0*
The moose likes JSP and the fly likes jsp sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp sessions" Watch "jsp sessions" New topic
Author

jsp sessions

reddy yeruva
Greenhorn

Joined: Oct 18, 2006
Posts: 18
how to set and get session values with array as object.

i done as follows

<%
String check1[]=request.getParameterValues("ivalues");
session.setAttribute("check",check1);
%>
while retriving sessions iam getting the problem pls.. correct the code
or send me the example array of sessions
<%
String check1[]=(String[])session.getAttribute("check");
int k=check1.length;
%>
iam unable to get the length of check1[]


Y.Tirupati Reddy<br />reddy.yeruva@gmail.com
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

If you get an exception, please post it.


[My Blog]
All roads lead to JavaRanch
reddy yeruva
Greenhorn

Joined: Oct 18, 2006
Posts: 18
Originally posted by Satou kurinosuke:
If you get an exception, please post it.


After
<% int k=check1.length; %>
My Jsp remaining page is not at all loading. If i remove this I am getting the page. While retrieving that array of object check1[], I am getting only one value which i kept in the session previously but not the entire array values. If i get the check1[] length, I can easily get the values.

Please help me out...
reddy yeruva
Greenhorn

Joined: Oct 18, 2006
Posts: 18
pls.. help me out the above issue....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp sessions
 
Similar Threads
Question regex
Help required
Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration m
Query in Java
Nested members in XML-RPC