Hi,
Any help would be highly appreciated!
I'm wondering why it's NOT working passing parameters to another jsp page.
I'm using Tomcat 4.0
Here is the sample jsp pages I used:
Called.html:
<html>
<head></head>
<body>
<jsp:include page="callee.jsp" />
<jsp:param name="param2" value="value2" />
<jsp:param name="param3" value="value3" />
</jsp:include>
Caller:
param1: <%= request.getParameter("param1") %>
param2: <%= request.getParameter("param2") %>
param3: <%= request.getParameter("param3") %>
</body>
</html>
Here is the JSP page being called:
<html>
<head></head>
<body>
Callee:
param1: <%= request.getAttribute("param1") %>
param2: <%= request.getParameter("param2") %>
param3: <%= request.getParameter("param3") %>
</body>
</html>
If the caller is called with the URL:
http://135.252.32.142/SIX_XML/scriptJsp/caller.jsp?param1=a¶m2=b
the expected output would be:
Callee:
param1: a
param2: value2
param3: value3
Caller:
param1: a
param2: b
param3: null
The issue is that I always get wrong result with Tomcat 4.0:
Callee: param1: a param2: b param3: null
Caller: param1: a param2: b param3: null
Could anybody tell me what's wrong here?
Does Tomcat need a special configuration to support passing parameters
to another JSP page, or I need to use a latter version of Tomcat?
Thanks much!
-----
Alan S. Tang
Lucent Technologies
[EMAIL PROTECTED]