Transfer data in JSP

How to transfer data over multiple pages?

Questions by Mohit Pabari   answers by Mohit Pabari

Showing Answers 1 - 10 of 10 Answers

vasavi

  • Dec 9th, 2011
 

It can be acheived if we store the data in session scope... using session.setAttribute("name",value);

It can be retrieved in another page by writing session.getAttribute("name");

  Was this answer useful?  Yes

nandy

  • Mar 2nd, 2012
 

In jsp we have scoped variables

1.page
2.session
3.request.
4.application

using these scoped variables we can translate data from one resource to another

ex: request.setAttribute("key","value");
Object o=getAttribute("key");

  Was this answer useful?  Yes

sampra

  • Mar 13th, 2012
 

1.page
2.session
3.request.
4.application

using these scoped variables we can translate data from one resource to another

ex: request.setAttribute("key","value");
Object o=getAttribute("key");

  Was this answer useful?  Yes

sampra

  • Mar 28th, 2012
 

we can set attribute in application session or request attribute.here page wont be use ful bcz scope of page is same page only

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions