Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get data from servlet to jsp  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having first jsp page in which user login's if the user present in the database it goes to second jsp page. in middle to check i am using servlet.. it is working but i want to retrieve the user id to the second jsp page..from servlet. i know by using bean we can store data in the first jsp page and send to second jsp page through servlet. but i am new to this field.
pls help me in doing this. pls send me sample code of bean, calling that bean in first jsp, then into servlet and finally displaying it in second jsp..
thank you
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!