Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: how to transfer control


Message #1 by "sudheer yakkala" <sudheeryakkala@r...> on Fri, 16 Mar 2001 17:16:08
You can use the "errorPage" attribute allowed within
the @page directive to pass control to a common error
page. 
This could be useful for a number of other reasons as
you can well imagine, but it would solve your problem
in that you could pass to this page - a custom
Exception that takes the ReturnPage as one of its
arguments. You could possibly have code on the
errorpage to catch all such custom exceptions thus
retreiving your Return page value.

goodluck
Manish


--- sudheer yakkala <sudheeryakkala@r...>
wrote:
> Hi,
>   I am developing a small website. In that if an
> error occurs in a page i 
> need to transfer the control to the previous page
> from which the error has 
> occured by providing a h-link.
>   How could i get it ? I tried with
> request.getRequestURL() and 
> request.getServletPath(). but not getting the
> desired result.
>   Anyone please help me in fixing this...
> sudheer

  Return to Index