tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: RequestDispatcher rd = getServletContext().
Date Fri, 11 Apr 2003 16:01:31 GMT
Request dispatcher does have to take a relative path with this web application. 
Try : 

RequestDispatcher rd = getServletContext().getRequestDispatcher("/servlet/TestServlet?callist="+tab_name);


Hope it helps
-reynir


> -----Original Message-----
> From: Srinivasu Gandu [mailto:SGandu@SoftwareSpecialists.com] 
> Sent: 11. apríl 2003 15:55
> To: 'tomcat-user@jakarta.apache.org'
> Subject: RequestDispatcher rd = getServletContext().
> 
> 
> Hi all,
>  RequestDispatcher rd = 
> getServletContext().getRequestDispatcher("TestServlet?callist=
> "+tab_name); 
>  rd.forward(request,response);
> when I am trying to access the servlet called by my control 
> servlet I am getting the following exception... even if I 
> give "/" before the path it can not see that.. what should be 
> my path settings..?? "
> java.lang.IllegalArgumentException: Path 
> TestServlet?callist=administrativeservices does not start 
> with a "/" character at 
> org.apache.catalina.core.ApplicationContext.getRequestDispatch
> er(Application
> Context.java:590) 
> 
> "
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message