• Post Reply Bookmark Topic Watch Topic
  • New Topic

sessions in jsp

 
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: 42970
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!