Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing An Array trough JSP pages

843836Apr 5 2005 — edited Apr 5 2005
Hello there, what i am trying to do here is pass an array that i have created in one.jsp to another.jsp.
So if i want to pass a single variable say Long (for example) i would do something like that:


one.jsp
Long pairId = new Long(15);
session.setAttribute("pair", pairId);
and to retrive it from another.jsp
Long pairId = new Long(session.getAttribute("pair").toString());
Now instead of Long pairId if i create a Long[] pairArray and want to move it from one.jsp to another.jsp what should i do? Please let me know if this is possible and if not, please suggest an alternative way to go arround this problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2005
Added on Apr 5 2005
6 comments
149 views