its my /jsp/sample/error.jsp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<%@ page isErrorPage="true"%>
<%@ page import="java.io.PrintWriter,java.io.StringWriter"%>
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml";>
  <head>
   </head>
    <body>
             <p> you have met with an application error sorry for the
trouble caused....</p>
                   <% 
                                            StringWriter stringWriter = new
StringWriter();
                                            PrintWriter printWriter   =  new
PrintWriter(stringWriter);
                                            if(exception != null) {
                                                
                                               
exception.printStackTrace(printWriter);
                                            }
                      %>
                      <p><%=stringWriter.toString()%></p>
    </body>
</html>


Antonio Petrelli-3 wrote:
> 
> 2008/4/29 balaji.m.cs <[EMAIL PROTECTED]>:
>>
>>  Clearly stating you
>>
>>        My application uses tiles for my view purpose in the normal flow
>> if
>>  every thing goes fine....
>>
>>  if some exception raises @ jsp level
>>
>>          i will show a clean error jsp stating "sorry for the trouble u
>> have
>>  been met with an application error
>>  . (while rendering into the tiled jsp's if there is an error i want to
>>  forward to that error jsp  which is not a tilled one.)
> 
> Ok let me see this page then, that should be:
> /jsp/sample/error.jsp
> 
> Antonio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-page-and-tiles.-tp16952850p16958475.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to