You don't implement anything, you just retrieve them from the xxx
attribute space using yyy.  Since I'm not connecting ALL the dots for
you, I'll leave you to figure out what xxx and yyy are.  Hint:  you've
posted them in your last reply.
 
<% Integer error_code = (Integer)xxx.getAttribute(yyy); %>
<%= error_code %>



> -----Original Message-----
> From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 21, 2003 3:40 PM
> To: 'Tomcat Users List'
> Subject: RE: Error Page Status Code
> 
> 
> Request Attributes                    Type
> ------------------                    ------------
> javax.servlet.error.status_code       java.lang.Integer
> javax.servlet.error.message           java.lang.String
> 
> I saw the above definations in the SRV9.9.1 would you some 
> details how do I implement these to solve my prob.
> 
> -----Original Message-----
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 3:34 PM
> To: Tomcat Users List
> Subject: RE: Error Page Status Code
> 
> 
> 
> Howdy,
> I guess you too are not a big fan of reading the spec? ;)  
> See SRV.9.9.1.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-----Original Message-----
> >From: Srinivasu Gandu [mailto:[EMAIL PROTECTED]
> >Sent: Monday, July 21, 2003 2:54 PM
> >To: 'Tomcat Users List'
> >Subject: Error Page Status Code
> >
> >Hi all,
> >When we define error page in the web.xml,
> >All I am getting is stack trace in the error.jsp because I am passing
> the
> >exception and printing that in the error.jsp
> >How do we know which error-code is causing the problem or how do we
> display
> >the error code in the error.jsp page???
> >
> >
> >     <error-page>
> >          <error-code>500</error-code>
> >          <location>/error/error.jsp</location>
> >        </error-page>
> >        <error-page>
> >          <error-code>404</error-code>
> >          <location>/error/error.jsp</location>
> >        </error-page>
> >        <error-page>
> >
> <exception-type>javax.servlet.ServletException</exception-type>
> >          <location>/error/error.jsp</location>
> >     </error-page>
> >
> >Can some one shed some light??
> >
> >Thanks - srini.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> 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