struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Sutton" <>
Subject Re: setting actionerror and result input annoyance
Date Thu, 28 Feb 2008 06:36:35 GMT
Why do you need an action to create a menu?

Is there any reason you can't use a combination of something like SiteMesh 
( and struts-menu 
( to create a menu which is 
automatically added to your pages?

----- Original Message ----- 
From: "crappycrumpet" <>
To: <>
Sent: Thursday, February 28, 2008 2:34 AM
Subject: setting actionerror and result input annoyance

> Hi,
> Me posting my second newbie question.
> I have an action that retrieves a record (let's call it GetBlahAction) and
> render info onto the screen you see. I also have an action which renders a
> menu on the left hand side of the screen depending on user 
> permission(let's
> call this one MenuAction).
> Now in GetBlahAction I check whether the record retrieved was a valid 
> record
> and if its not it sets the actionerror. This in turn trigger the page to 
> be
> rendered with "input" result. This effects my MenuAction since it needs to
> run no matter what result it is but doesn't. I've added <result
> name="input"> into MenuAction in struts.xml and added "public String
> input()" in it to "return execute();" but still it doesn't my menu 
> properly.
> Is it possible to make certain action to always run like normal no matter
> what is result of an action is?
> thanks,
> CrappyCrumpet
> -- 
> View this message in context: 
> Sent from the Struts - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message