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

one quesiton about <jsp:include>?

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

Accepted Solution

_marko_ earned 50 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
How to run a side-by-side staging website 16 66
CSS (line height?) issue 2 69
Magento Indexing 1 102
login jsp example 24 67
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

860 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