Hi,

  Forwarding to Jsp files works fine for files in the same dir and also for those
in a different dir.Just check whether you have given the path correctly.Two
examples are given below.Both of them work.

###  greet.jsp is in     currentdir/forward

<html>
<jsp:forward  page= "/forward/greet.jsp" >
</jsp:forward>
</html

### greet.jsp is in the previous dir

<html>
<jsp:forward  page= "../greet.jsp" >
</jsp:forward>
</html

Regards,
Dheepa





















"Sugandhi, Suvil" wrote:

> I am having problem while using forward tag.
>
> when i forward to the jsp page which is present in the same directory then
> the forward works fine.
> but if i am trying to forward to the jsp page which is in different
> directory, then it goes to that file but doesn't process the jsp code
> written in the file.
>
> for eg: abc.jsp file contains the forward tag which forwards to xyz.jsp
> file, present in the same directory.
>
> pqr.jsp file contains the forward tag which forwards to mno.jsp file ,
> present in the different directory.
>
> jsp code embeded in the mno.jsp file will not be processed. it is displayed
> as blank web page..
>
> code for these files are specified below..
>
> abc.jsp
> <jsp:forward page="xyz.jsp" />
>
> xyz.jsp
> <% out.print("Hello"); %>
>
> pqr.jsp
> <jsp:forward page="../xyz.jsp" />
>
> mno.jsp
> <% out.print("Hello"); %>
>
> i am using JRun 2.3.3 build 153 and Apache server 1.3.6 and choosed the
> option of JSP 1.0 and rules.properties file is correct.
>
> can u folks let me know what the problem is or i am wrong some where...
>
> its really urgent...
> thanks in advance, suvil...
>
> ===========================================================================
> 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

Reply via email to