I once did it in the include tag, hope it works in the forward tag also.

<% String filename = application.getRealPath(request.getServletPath()); %>

<jsp:include page="/copyright.jsp" flush="true" >
    <jsp:param name="filename" value = '<%=filename %>' />
</jsp:include>


>From: stewart hsiao <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: how to use forward with dynamic param value
>Date: Sun, 16 Jul 2000 17:20:06 -0700
>
>Hi;
>
>I would like to be able to add extra parameter before
>I forward to a page. The destination page is not
>necessarily servlet or JSP but could be cold fusion or
>ASP page.
>
>If I do something like this in index.jsp
>
>
><jsp:forward page= "xxx." >
>
><jsp:param name="userid" value="abc" />
>
></jsp:forward>
>
>It would add the parameter in there just fine. What I
>want is to replace "abc" with a variable that resides
>in the index.jsp. It doesn't seem to work. First, it
>has to be quoted. Second, if I want to use
>expression<%=myVariable %>, it would display it as a
>value <˙myVariable %>.
>
>Is there other way to do something like this.
>
>Thanks!
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get Yahoo! Mail – Free email you can access from anywhere!
>http://mail.yahoo.com/
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to