Hi,
I don't know whether u found a solution for ur qus..But still...
Give the parameter which u want to pass , to the jsp file from which u are
forwarding.
For eg:
### From this file i am forwarding to greet.jsp.U have to pass the parameter to
this jsp.Call http:..localhost:8080/forward.jsp?name=xxx
forward.jsp
<html>
<jsp:forward page= "/greet.jsp" >
</jsp:forward>
</html>
When u say request.getParameter("name") in the greet.jsp file, u get the parameter
u pass to the forward.jsp.
greet.jsp
<html>
<head>
<title>Greet</title>
</head>
<body>
<%
out.println("name"+ request.getParameter("name"));
for(int i=0;i<4;i++) out.println("<h1>Hello</h1>");
%>
</body>
</html>
Hope this helps.
Cheers,
Dheepa
"Yang, Beinan, BGM" wrote:
> Hi, No body interested this issue ?
>
> Ben Yang
>
> -----Original Message-----
> From: Yang, Beinan, BGM
> Sent: Saturday, October 16, 1999 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: How to use <jsp:forward page=.../> with parameters ?
>
> Can some one tell me how to use <jsp:forward page=.../> with parameters ?
> I tried <jsp:forward page="nextPage.jsp?param1=Y" />, but it doesn't work ?
>
> Thanks in advance.
>
> Ben Yang
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html