one quesiton about <jsp:include>?

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??
lakeryuAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
_marko_Connect With a Mentor Commented:
It should be the same way as in any .jsp


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


Marko
0
 
objectsCommented:
The included page has access to all objects in the request scope as well as all original request parameters.
0
 
jetballCommented:
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
 
lakeryuAuthor Commented:
Thank you for your answer!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.