struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Belfer-Shevett <...@homeport.org>
Subject Re: Wildcard mappings with subdirectories / folders?
Date Wed, 18 Jun 2008 17:12:26 GMT
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: dbs@jabber.stonekeep.com \
blog:planet-geek.com >--------'-----------------------------------.
dbs@homeport.org    / 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message