• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass the the values from one jsp to another jsp

 
kri shan
Ranch Hand
Posts: 1473
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i pass the the values from one jsp to another jsp thry different ways ?
 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

1. RequestDispatcher

2. thro session

3. request objects

is this fine??

smitha
 
Tim Cao
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Just wonder if we can call other jsp methods? Because they are basicly servlets classes in the same package ?

cheers
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kri,
You can also put them in the page scope if one jsp is included in another.

Tim,
Welcome to Javaranch! Many people recommend not putting any code in a JSP. I would certainly avoid methods though. They are better served in a java class that the JSP calls.
[ July 26, 2004: Message edited by: Jeanne Boyarsky ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic