User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 392,091 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,908 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 2276 | Replies: 2
Reply
Join Date: Aug 2007
Posts: 1
Reputation: ub_old is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ub_old ub_old is offline Offline
Newbie Poster

How to send request parameter to included jsp

  #1  
Aug 21st, 2007
How can i send all requested parameter to included jsp.

<jsp:include page="/page">
???????????
</jsp:include>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,143
Reputation: peter_budo has a spectacular aura about peter_budo has a spectacular aura about peter_budo has a spectacular aura about 
Rep Power: 10
Solved Threads: 258
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: How to send request parameter to included jsp

  #2  
Aug 21st, 2007
CAn you be more specific and clear with your question? You trying to send data from one page to another, or retrive data from database and display them on following page?
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,646
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 191
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to send request parameter to included jsp

  #3  
Aug 22nd, 2007
The entire page context which includes the request parameters is available to the included page.

From the standard work on JSP (Hans Bergsten's book published by O'Reilly, 3rd edition, page 560):
All other request unformation is also left untouched, so the target resource has access to all the original parameters and headers passed with the request. Additional parameters can be passed to the target through the <jsp:param> elements in the <jsp:include> element's body.

The only thing you need to be aware of is that the URI you will be operating with inside the included file is that of the including file, which is logical as that's the URI the client will eventually see (it will never know there was any included sources at all, see a single result).
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 12:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC