Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

one quesiton about <jsp:include>?

Posted on 2002-07-25
4
Medium Priority
?
283 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 150 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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…
Suggested Courses

916 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