You need error-page in web.xml
see http://java.sun.com/developer/EJTechTips/2003/tt0114.html
regards
Haris Peco
On Wednesday 11 February 2004 04:39 pm, Bubeník Miroslav wrote:
> I know that JSP is servlet.
> But:
> part from web.xml:
> <servlet>
>         <servlet-name>error</servlet-name>
>         <servlet-class>/2.jsp</servlet-class>    --- this should be class name, not 
> jsp. Or I'm wrong?
>  </servlet>
> 
>     <!-- Action Servlet Mapping -->
>     <servlet-mapping>
>         <servlet-name>error</servlet-name>
>         <url-pattern>*</url-pattern>
>     </servlet-mapping>
> 
> 
> -----Original Message-----
> From: Michael McGrady [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 11, 2004 5:36 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: forwarding all request to the one JSP
> 
> 
> This may be one time where it is worth reminding people that JSPs really 
> are Servlets?
> 
> At 08:31 AM 2/11/2004, Bubeník Miroslav wrote:
> >Hi,
> >is there any possibility in web.xml how can I forward all request for
> >application XXX to one error JSP (without servlet)?
> >
> >Regards
> >
> >miro
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to