• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transfering a value from one jsp page to many jsp pages

 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,,

I wanted to know if it is possible to transfer one value from one jsp page to many jsp pages...

if so , how???

Thanks,
Philip
[ June 13, 2008: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll need to explain, in a little more detail, what you're trying to accomplish before anyone can answer this question for you.
What do you mean by many JSPs?
 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Ben,

I hope it would be much better this time.

I am trying to transfer a value from one jsp page say abc.jsp to several other jsp pages.. say a.jsp, b.jsp, c.jsp...

which means that the value would be avaiable to these jsp pages...

For example...

abc.jsp page have a value apple=$1.00

make this available to these a.jsp, b.jsp, c.jsp, etc....

hope this is enough....

Thanks Ben once again..

philip
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is this value not maintained on the server, say in a database?
 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you not set them in session?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know about the scoped variables that are available to servlet/JSP apps (page, request, session, context)?

Session and application scoped variables are available to all pages in an application, either for a single user during their session, or for everyone using the app.

Also, as Bear mentioned, shared data can be stored in a database.

Does this help?
 
Philip Zac
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot to you all guys.....

you are really cool .....

thanks... (I am using session ....)

Philip
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic