File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp sessions

 
reddy yeruva
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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[]
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you get an exception, please post it.
 
reddy yeruva
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pls.. help me out the above issue....
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic