aspose file tools*
The moose likes JSP and the fly likes transfering a value from one jsp page to many jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "transfering a value from one jsp page to many jsp pages" Watch "transfering a value from one jsp page to many jsp pages" New topic
Author

transfering a value from one jsp page to many jsp pages

Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
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

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Philip Zac
Ranch Hand

Joined: Apr 27, 2008
Posts: 66
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

Joined: Jan 10, 2002
Posts: 61010
    
  65

Why is this value not maintained on the server, say in a database?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shilpa Tendulkar
Ranch Hand

Joined: Jul 29, 2001
Posts: 75
Can you not set them in session?


SCJP5
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Apr 27, 2008
Posts: 66
Thanks alot to you all guys.....

you are really cool .....

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

Philip
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: transfering a value from one jsp page to many jsp pages