Hey,
I am new to
Struts, but I am given a task to deploy an struts appliation as a war file.
My code structure is :
~example(folder)
--HelloWorld.jsp
--HelloWorldA.jsp
~META-INF
~WEB-INF -
--> Classes
---example.xml
---struts.xml
---example(folder)
****ExampleSupport.class
****HelloWorld.class
****HelloWorldA.class
--> lib
---struts2-core-2.3.1
---xwork-2.1.3
---ognl-2.6.11
---freemarker-2.3.8
-->web.xml
-->weblogic.xml
(two different levels will have different symbols)
If the below figure is confusing, please refer this - indicates 1st level, -- indicated folder with folder i..e 2 levels from web app folder and so on
-example(folder)
--HelloWorld.jsp
--HelloWorldA.jsp
-META-INF
-WEB-INF -
-- Classes
---example.xml
---struts.xml
---example(folder)
----ExampleSupport.class
----HelloWorld.class
----HelloWorldA.class
-- lib
---struts2-core-2.3.1
---xwork-2.1.3
---ognl-2.6.11
---freemarker-2.3.8
--web.xml
--weblogic.xml
The code is:
example.xml :
struts.xml
ExampleSupport.java :
package example;
import com.opensymphony.xwork2.ActionSupport;
public class ExampleSupport extends ActionSupport {
}
HelloWorldA.java :
HelloWorld.java :
web.xml :
weblogic.xml
Now I get the below error, if I deploy the appliation
There is no Action mapped for namespace / and action name HelloWorld.
The url given is,
http://10.210.43.136:7001/testing/abc/HelloWorld.action
Please respond ASAP, thanks a ton!!