Solved

one quesiton about <jsp:include>?

Posted on 2002-07-25
4
266 Views
Last Modified: 2013-11-18
in one file I write as the following:
<jsp:include page = "/test.jsp">
   <jsp:param name="user" value="Jenny">
</jsp:include>,

how can I get the user in the file:test.jsp??
0
Comment
Question by:lakeryu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Accepted Solution

by:
_marko_ earned 50 total points
ID: 7177021
It should be the same way as in any .jsp


String user = (String)request.getParameter("user");


Marko
0
 
LVL 92

Expert Comment

by:objects
ID: 7178722
The included page has access to all objects in the request scope as well as all original request parameters.
0
 
LVL 1

Expert Comment

by:jetball
ID: 7187108
hi lakeryu

just a note for you to consider though, do you really want to use <jsp:include /> tag which is processed at runtime, or would you rather want to use <%@ include %> tag which is prcessed at compile time...

the performance of the compile time option is much faster...
0
 

Author Comment

by:lakeryu
ID: 7221837
Thank you for your answer!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question