I usually do something like this: <package name="root" namespace="/" extends="struts-default"> <default-action-ref name="home"/> <action name="home"> <result>/WEB-INF/content/home.jsp</result> </action> </package>
<constant name="struts.convention.redirect.to.slash" value="true"/> musachy On Mon, Jun 1, 2009 at 6:11 AM, Ron Chan <rc...@i-tao.com> wrote: > > just to clarify > > this works > http://myserver/myapp/whatever.action > and to maps to > WhateverAction.java and whatever.ftl > > so application is basically working > > but > http://myserver/myapp/ > does not work > gives 404 with > There is no Action mapped for namespace / and action name . > > the action name being empty string > > usually, including in all the struts2 examples, you want this to go to > index.jsp or equivalent and do a redirect from there > > > -- > View this message in context: > http://www.nabble.com/2.1.6-convention-plugin-problem-tp23813162p23814732.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org