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

passing value from servlet to jsp

 
Suka Hati
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.....how i want to pass a value in servlet to jsp???
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suka Hati,
You can place your value into session or request attributes.
Example in servlet...



Example in jsp...


Correct me if I am wrong...
Hope this help

thanks
daniel
 
Suneesh Raman
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can passs the value through the URL
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic