Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to show data in textbox retrieved from database

 
Ameya Bhagwat
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys i just retrived some data from databse into "suppot.jsp" now from this jspi want to take some data i.e organization_name and want to show in textbox of another sale_new.jsp with onclick function how??
.
.
.
.
.
.
you can see attached file now in this i want to transfer org_name to another jsp?
 
Lokesh Dulla
Greenhorn
Posts: 18
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try using the session management or by using request parameters
 
Ameya Bhagwat
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey can you explain with some example???
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to make use of this value in next forwarding jsp only then you make use of request object like:

request.setAttribute("org_name",org_name);

But, if you want to use this value throughout the session, then make use of session object like:
session.setAttribute("org_name",org_name);

Thanks,
Ashwini Kashyap | www.infocepts.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic