File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Question on LookupDispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Question on LookupDispatchAction" Watch "Question on LookupDispatchAction" New topic
Author

Question on LookupDispatchAction

Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Hi,
I have two buttong Edit and Delete and I have implemented the LookupDispatchAction. It works fine when the user clicks the edit or delete button when the user directly enters the URL i get the following exception
Runtime Exception: class javax.servlet.ServletException: Request[/editOrdeleteTestCase] does not contain handler parameter named tcaction
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:199)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
Below is the JSP code
<html:submit property="tcaction">
<bean:message key="tcaction.edit"/>
</html:submit>
<html:submit property="tcaction">
<bean:message key="tcaction.delete"/>
</html:submit>
struts-config.xml
<action path="editOrDeleteTestCase"
type="com.xxx.xxx.Action
Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Here is the struts-config.xml missed it earlier
<action path="editOrDelete"
type="com.xxx.xxx.Action
input="tile.input"
name="editOrDeleteform"
parameter="tcaction"
scope="request">
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on LookupDispatchAction