You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2009/02/09 14:05:41 UTC

Proper PRG with PortletResult + Exception Mapping Results

Hi,

prg does work fine using the normal workflow.
I want to use this pattern with my exception mappings too and defined:

<exception-mapping result="error" exception="java.lang.Exception"></exception-
mapping>


			<result name="error" type="redirect">
				<param name="portletMode">view</param>
				<param name="actionName">error</param>
			</result>


But all i get is a NPE in PortletResult line 120 because no location is set.
Using a location instead of an error action it does work using the 
RenderDirect Stuff.

How to use my own error handling action? Or is this not possible with portlets 
or possible at all?

thx

Torsten


PS: Using 2.0.11.x Struts.

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
	-- Linus Torvalds

Re: Proper PRG with PortletResult + Exception Mapping Results

Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Am Montag, 9. Februar 2009 14:05:41 schrieb Torsten Krah:
>  <result name="error" type="redirect">

Hm this should read redirectAction.
And nvm, it works using "redirectAction" - argl, typo ...

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
	-- Linus Torvalds