Why do you need an action to create a menu?
Is there any reason you can't use a combination of something like SiteMesh
(http://www.opensymphony.com/sitemesh/) and struts-menu
(http://struts-menu.sourceforge.net/) to create a menu which is
automatically added to your pages?
----- Original Message -----
From: "crappycrumpet" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
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:
http://www.nabble.com/setting-actionerror-and-result-input-annoyance-tp15728368p15728368.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]