ho provato a fare l'esmpio http://struts.apache.org/2.0.6/docs/hello-world.html
mi da questo problema:
quando richimo la action mi dice:
codice:
There is no Action mapped for namespace / and action name helloworld. - [unknown location]
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
ma ho struts.xml in configuration files (uso netbeans) che è scritto così:
codice:
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="tutorial" extends="struts-default">
<action name="HelloWorld" class="tutorial.HelloWorld">
<result>HelloWorld.jsp</result>
</action>
</package>
</struts>
qualcuno sa aiutarmi?
EDIT: forse il problema sta quando creo la action
infatti nn posso scegliere il file di configurazione, e non so su che action path mettere.