Actually, it does! Adding the following to struts.xml solved my problem:
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/> Thanks a lot Matt, Big Pete. PS: I already managed before to add slashes in action names, in a project created following the Struts 2 "HelloWorld" tutorial ( http://struts.apache.org/2.0.6/docs/bootstrap.html). It didn't require to change anything to the constant above. I expected the same behaviour in AppFuse :-( 2007/6/13, Matt Raible <[EMAIL PROTECTED]>:
I've never used such a constant, so I can't say why it doesn't work. I did a bit of googling and came up with the following thread on the Struts mailing list. Unfortunately, it doesn't seem to offer a solution: http://www.nabble.com/Namespaces-and-SlashesInActionNames-issue--t3356704.html Matt On 6/13/07, Peter Bondurant <[EMAIL PROTECTED]> wrote: > Hi all, > > I would like Struts to allow slashes in action names. Couldn't get it to > work in AppFuse, following those steps: > > D:\dev\projets\myproject>mvn archetype:create -DarchetypeGroupId= org.appfuse > -DarchetypeArtifactId=appfuse-basic-struts > -DremoteRepositories= http://st > atic.appfuse.org/repository -DarchetypeVersion=2.0-m5 > -DgroupId=com.mycompany.app -DartifactId=myproject > > D:\dev\projets\myproject>cd myproject > > Added in struts.xml: > > <constant name="struts.enable.SlashesInActionNames" > value="true"/> > <constant name="struts.devMode" value="true"/> > > <action name="test/slashes" class=" > com.opensymphony.xwork2.ActionSupport"> > <result > name="success">/WEB-INF/pages/mainMenu.jsp</result> > </action> > > D:\dev\projets\myproject>mvn jetty:run-war > > The result is: > > - going to > http://localhost:8080/test/slashes.html, I > get "There is no Action mapped for namespace /test and action name slashes." > - going to > http://localhost:8080/test/mainMenu.html, > I get the menu instead of an error message. > > I also tried adding > "struts.enable.SlashesInActionNames=true " to > struts.properties, doesn't change anything. Am I missing something? > > Big Pete. -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
