Did you read the documentation? Most general issues like what you are
wanting solved are on the website.
http://stripesframework.org/display/stripes/Exception+Handling
I think that's what you're looking for specifically.
-Mitch
On Wed, Mar 26, 2008 at 7:48 AM, SivaKumarl <[EMAIL PROTECTED]>
wrote:
>
> Hai Brock,
> Thank you for your reply,but my problem is not solved,what i exactly
> want
> is
> When a exception is arising i m forwarding to Jsp page(techinical
> error.jsp)
> using StripesExceptionHandler
> This page contains
> SOME TEXT LIKE "internal problem occured";
> and one "Back button";
>
> when clicking on back button i want to go jsp page where the exception is
> raised.
> I m using stripes-1.4.3
> Please solve my problem.
>
>
> Cheers,
> Siva kumar
>
>
> Matt Brock wrote:
> >
> >
> > SivaKumarl wrote:
> >>
> >> I overwrite striepsExceptionHandler class ,when exception is occured i
> >> forwarding to error.jsp,my problem is i want to go back from error.jsp
> >> to the jsp page from where exception is raised.
> >> please solve my problem.
> >>
> > <p>I will assume you are using the following pattern:</p>
> > <pre>public void handle(Throwable throwable, HttpServletRequest request,
> > HttpServletResponse response) throws ServletException, IOException
> {</pre>
> > <p>First, depending on the version of Stripes you are using, you will
> have
> > to wrap the request object. This was a bug that was fixed in the 1.5
> > branch, so if you are using the new beta, you may disregard the next
> step
> > as Stripes does this for you.</p>
> > <pre>
> > // see: JIRA issue (http://stripes.mc4j.org/jira/browse/STS-383) (fixed
> in
> > Stripes 1.5)
> > StripesRequestWrapper wrapper = new StripesRequestWrapper(request) {
> > @Override
> > protected void constructMultipartWrapper(HttpServletRequest request)
> > throws StripesServletException {
> > Locale locale =
> > StripesSecurityFilter.getConfiguration
> ().getLocalePicker().pickLocale(request);
> > setLocale(locale);
> > }
> > };
> > ActionBeanContext context =
> > StripesSecurityFilter.getConfiguration
> ().getActionBeanContextFactory().getContextInstance(wrapper,
> > response);</pre>
> > <p>For Stripes 1.5 and greater, you can just get the context from the
> > request and cast it (I believe). Anyway, now that you have the context,
> > you can get the sourcePage, which is the page that did the initial
> > request. This will be the page you send the user back to:</p>
> > <pre>
> > Resolution source = context.getSourcePageResolution();
> > // do stuff, then finally...
> > source.execute(wrapper, response); // Stripes < 1.5
> > // source.execute(request, response); Stripes >= 1.5
> > }</pre>
> > <p>Hope that helps.</p>
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-go-back-to-action-from-ExceptionHandling-page-tp16269575p16300796.html
> Sent from the stripes-users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
>
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users