Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passng data between jsp pages  RSS feed

 
Thomas Harrington
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have two tables in a database: one has user names and passwords and a second table has bbs data. i use the first table to log people in. i would like to pass on the user data from the login page to every other bbs page that person my visit. the request.getParameter() does not work because i guess the variable is not defined in a tag. and i can not just call the variable from the bean either. should i make a seperate class with a getter and setter, or is their a predefined method for passing a value between many pages?
ultimatley what i would like to have happen is to have the users name automatically included in the post, without giving the option of the person changing the name of the poster.
 
Thomas Harrington
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i figured it out. i was missing the session tag. i added a session and it works now.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bingo! session is the best way to pass data between the two. (Happy Easter!)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!