2013/3/21 Álvaro López López <allo...@gmv.com>: > Hello everyone, > > I am following the Struts2 Getting Started tutorial at > http://struts.apache.org/development/2.x/docs/getting-started.html > I reached the "Struts 2 Annotations". I downloaded the Maven version: > Struts2_Annotations_Mvn_2_2_1.zip > Then, I updated the pom.xml file to get the latest packaged compiled and ran > the WAR under a JBoss AS 7.1 (struts2 version 2.3.12). > > However, it seems it doesn´t find the actions correctly. > It just shows the register form (register-input.jsp) because it exists under > WEB-INF/content: > > - Index.jsp: > > <p><a href="<s:url action='hello' />" >Get your hello.</a></p> > <p><a href="<s:url action='register-input' />" > Register for the > drawing.</a></p> > > - For instance, for the 'hello' action I get the following error: > "There is no Action mapped for namespace [/] and action name [hello] > associated with context path [/Struts2_Annotations_Mvn]." > > - And HelloAction.java > (org.apache.struts.struts2annotations.action.HelloAction.java): > > public String execute() throws Exception { > logger.info("In execute method of class Hello"); > message = "Hello from Struts 2 with no XML configuration."; > return SUCCESS; > } > > Is it possible to fix this project?
Yes, you can do it on your own to learn something, basically follow RegisterAction setup. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org