How to Pass session parameters from one jsp to another jsp

S

sridhar kumar ch

Hi to all!!

I m getting problem for passing session parameters from one jsp to
another jsp page. I developed one jsp page a.jsp(let it be take this
name) in that i m getting values from database these values (those are
taken from database table) i have to send to next jsp page b.jsp(Let it
be take this name) and print that values in that b.jsp. Here my problem
is that values (from database table) are not getting in sessions, but
its displaying values in a.jsp but these values are sending to next jsp
i.e(b.jsp).... plz help me in this issue..



regards,

sridhar
 
V

vjg

sridhar said:
Hi to all!!

I m getting problem for passing session parameters from one jsp to
another jsp page. I developed one jsp page a.jsp(let it be take this
name) in that i m getting values from database these values (those are
taken from database table) i have to send to next jsp page b.jsp(Let it
be take this name) and print that values in that b.jsp. Here my problem
is that values (from database table) are not getting in sessions, but
its displaying values in a.jsp but these values are sending to next jsp
i.e(b.jsp).... plz help me in this issue..

Post your code. Sessions don't hava parameters. They have attributes.
You don't pass session information from one jsp to another - both jsp
pages simply access the session object's attributes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top