[ 
http://www.stripesframework.org/jira/browse/STS-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11514#action_11514
 ] 

Frederic Daoud commented on STS-615:
------------------------------------

I also think that the idea with ErroResolution should be to simply configure 
the error pages by code in your web.xml. This enables you, for example, to 
catch an ActionBeanNotFoundException in an ExceptionHandler and return an error 
code 404 with an ErrorResolution, and configure the page that you want to 
display in web.xml. The benefit of doing that is to be able to use the 
configured page for /all/ 404 errors, i.e requests that go through Stripes as 
well as requests that do not.

> ErrorResolution should be able to send html along the error code
> ----------------------------------------------------------------
>
>                 Key: STS-615
>                 URL: http://www.stripesframework.org/jira/browse/STS-615
>             Project: Stripes
>          Issue Type: Improvement
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.5
>            Reporter: Hector Lopez
>            Priority: Trivial
>         Attachments: ErrorPageResolution.java
>
>
> ErrorResolution works great when you only want to send a plain error code, 
> but there's no way to attach html to the response.
> The exception handling docs tells us that it's great to be able to return a 
> Resolution in response to an exception, but, currently, you are forced to 
> choose between an error code or a pretty page with a "200 OK". There's quite 
> a bit of implications in this, from web robots to web browser's caches. I'm 
> currently facing this in a toy project where I need to throw some 404 errors, 
> but in the event of a 500 error, it applies as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to