struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaikarthi <jaideee2...@yahoo.com>
Subject Re: Reg : JSP Exception Handling Problem with Tiles
Date Fri, 01 Sep 2006 11:24:44 GMT

Hi,
    please find the problem

       Hi, 
    I am trying to handle JSP Exception in my Project. We are using Tiles
plug in in our project. 
    My Layout definition is 
  <definition name="page.layout" path="/WEB-INF/pages/tiles/Layout.jsp"> 
        <put name="title"  value=""/> 
              <put name="header"  value="/WEB-INF/pages/tiles/header.jsp"/> 
            <put name="body" value="" /> 
           <put name="footer"  value="/WEB-INF/pages/tiles/footer.jsp"/> 
     </definition> 

   My header and footer remains same in all pages. 

  in my layout.jsp 

I defined 

<%@ page errorPage="/jspException.do"> 

whenever jsp exception occurs,JSP Exception handler gets invoked and I am
redircting to error page. 

my struts config looks like this, 

<action 
            path="/jspException" 
             type="com.sen.exception.JspExceptionHandlerAction" 
scope="request" > 
        <forward name="success" path="/WEB-INF/pages/error.jsp"
redirect="false/> 
</action> 

my action class gets executed and success is forwarded,but i am getting a
blank page. 
only header.jsp alone rendered,my error.jsp is not rendered. 

my error.jsp is 

<%@ page isErrorPage="true"%> 
<html> 
<head> 
        <basefont face="Arial" color="red"> 
</head> 
<body> 
<h2>unexpected error occured</h2> 
</body> 
</html> 

I dont know why? i am badly in need of this. 

Please help me Guys .... i am looking for ur reply 

Thanks, 
JaiKarthik



Antonio Petrelli wrote:
> 
> It seems that your message has been corrupted. Try to resend it.
> 
> jaikarthi ha scritto:
>> Hi,
>>     I am trying to handle JSP Exception in my Project. We are using Tiles
>> plug in in our project.
>>     My Layout definition is
>>   
>> 	
>>               
>>             
>>            
>>      
>>
>>    My header and footer remains same in all pages.
>>
>>   in my layout.jsp 
>>
>> I defined 
>>
>> <%@ page errorPage="/jspException.do">
>>
>> whenever jsp exception occurs,JSP Exception handler gets invoked and I am
>> redircting to error page.
>>
>> my struts config looks like this,
>>
>>
>> 	
>>
>>
>> my action class gets executed and success is forwarded,but i am getting a
>> blank page.
>> only header.jsp alone rendered,my error.jsp is not rendered.
>>
>> my error.jsp is 
>>
>> <%@ page isErrorPage="true"%>
>>
>>
>> 	 
>>
>>
>> unexpected error occured
>>
>>
>>
>> I dont know why? i am badly in need of this.
>>
>> Please help me Guys .... i am looking for ur reply
>>
>> Thanks,
>> JaiKarthik
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Reg-%3A-JSP-Exception-Handling-with-tiles-tf2202000.html#a6096918
Sent from the Struts - User forum at Nabble.com.


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


Mime
View raw message