Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


one quesiton about <jsp:include>?

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

how can I get the user in the file:test.jsp??
Question by:lakeryu
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

Accepted Solution

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

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

LVL 92

Expert Comment

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

Expert Comment

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...

Author Comment

ID: 7221837
Thank you for your answer!

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Preface In the first article: A Better Website Login System ( I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

715 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