On Wed, 18 Jun 2008, Dave Belfer-Shevett wrote:
Hi folks - I'm trying to divide up my struts app into subdirectories (the
application has a 'public' interface, and an 'administrative' interface
called 'coconut'. Don't ask).
And here I am answering my own question. A little googling found me this
gem:
<constant name="struts.enable.SlashesInActionNames" value="true" />
And that fixed it. The following action entries work:
<action name="coconut/*">
<interceptor-ref name="mystack" />
<result
name="success">/WEB-INF/jsp/coconut/{1}.jsp</result>
<result
name="login">/WEB-INF/jsp/coconut/index.jsp</result>
</action>
<action name="public/*">
<interceptor-ref name="mystack" />
<result
name="success">/WEB-INF/jsp/public/{1}.jsp</result>
<result
name="login">/WEB-INF/jsp/public/index.jsp</result>
</action>
All fixed, thanks!
-d
--
-------------------.--------.-------------------------------.
Dave Belfer-Shevett \ KB1FWR \ JID: [EMAIL PROTECTED] \
blog:planet-geek.com >--------'-----------------------------------.
[EMAIL PROTECTED] / Things you'll hear if you have a Klingon on \
-------------------< your development team: 3) "This code is a |
| piece of crap! You have no honor!" |
\______________________________________________/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]