A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
need help in strut 2
pankaj semwal
Ranch Hand
Joined: Oct 07, 2008
Posts: 300
posted
Feb 15, 2009 22:58:13
0
Hi,
I am getting the following error
exception
javax.servlet.ServletException
: com.consulting.action.ApplyOnlineAction.show()
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
root cause
java.lang.NoSuchMethodException
: com.consulting.action.ApplyOnlineAction.show()
java.lang.Class.getMethod(Unknown Source)
my Action class is
public class ApplyOnlineAction { public String execute() { System.out.println("This is apply Page"); return "show"; } }
My strut.xml is
<action name="uploadResume" class="com.consulting.action.ApplyOnlineAction"> <result name="show" type="tiles">aplyJob.def</result> </action>
Please help me.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Feb 16, 2009 06:42:46
0
How are you accessing the action? Via a URL? From a form?
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: need help in strut 2
Similar Threads
Struts2 newbie: Exception during startup
struts2 properties file reload
Struts 2 error
a4j is not defined
No result defined for action
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter