Hello,
I am maintaining a JSP/struts program already in production. The client asked us to add the ability a record when certain criteria are met. Since this is my first Struts work, I have been following the examples of other actions in the app. I easily added the link to the form (and it only displays if the conditions where you may delete if you choose are met). I made the action and added it to the struts-config file. This is the node:
//struts-config.xml
<action input="/subcommittees.jsp" path="/deletescmeetnot" type="com.xxyzz.abcdef.DeleteSubcommitteeMeetingNoticeAction">
<forward name="success" path="/subcommittees.jsp" />
<forward name="failure" path="/subcommittees.jsp" />
</action>
These are the first two lines of the action:
//DeleteSubcommitteeMeetingNoticeAction.java
public class DeleteSubcommitteeMeetingNoticeAction {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException {
This is where I attempt to execute the action:
//SubcommitteeListTag.java
writer.print(" - <a title=\"Permanantly delete this Subcommittee meeting notice\" href=\"" +
response.encodeURL("/cf/deletescmeetnot.do?noticeID=" +
notice.getNoticeIdField().getAsString()) +
"\" onClick=\"return confirmDeleteSubcommitteeMeetingNotice();\">Delete</a>");
The javascript executes properly, but I get the error below when I click "OK."
//Apache Tomcat/6.0.18 - Error report
HTTP Status 500 - No action instance for path /deletescmeetnot could be created
type Status report
message No action instance for path /deletescmeetnot could be created
description The server encountered an internal error (No action instance for path /deletescmeetnot could be created) that prevented it from fulfilling this request.
Can anyone help me find what I am missing?
Thank you,
Frank Luke