This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sessions in jsp  RSS feed

 
suman vasireddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys i have created a session in jsp for the login username.inorder to that i have created jsp page for input name and a jsp page for save name to session finally i have created a jsp for showing the name.and the code working fine individually THE MAIN PROBLEM IS HOW TO INTER CONNECT THESE JSP PAGES....plese solve my problem

thanks in advance..........
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HTML form in the JSP where the data is entered should be submitted to the JSP where the data is stored. That JSP can then do a client-side redirect to the JSP where the data is displayed.

Note that keeping any Java code in JSPs is considered bad design. You should replace the 2nd JSP by a servlet.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!