Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parameter Passing  RSS feed

 
Ravissant Markenday
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone!

I have a users regiter_servlet(a form) that upgrades the database.From there i pass control to the welcome_servlet(not a form) that extracts the users name and displays it, welcoming the new user.From this servlet i pass control to a third servlet with the help of a link in the second servlet. I want the 3rd servlet to display the user's name again.
Could anyone please tell me how I can do that.
Just for a general idea, this is how it should go:
servlet1(submit)>>>>>servlet2(link)>>>>>>servlet3(displays information submitted by servlet1 to servlet2)

Thanks a lot in advance,
Ravissant Markenday
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read about sessions. I would suggest grab a tutorial and read about JSP's and servlets in general.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!