Solved

one quesiton about <jsp:include>?

Posted on 2002-07-25
4
234 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
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now