You must define a Bean form to transfer the values ββof your parameters to your struts-config.xml. In the above example, you mentioned "eventFormInsert". You need something like this ...
<form-beans> <form-bean name="venueFormInsert" type="forms.venueFormInsert" /> </form-beans>
Then define this Java Bean to match your expected parameters.
public class JmsMessageForm extends ActionForm { private String id; public String getId() { return id; } public void setId(String id) { this.id = id; } }
In addition, you did not indicate which actual URL you are using. It should include the root context and the "path" above from your struts-config.xml. So, something like this if your root application context is called "myapp" when deployed ...
http://server.acme.com/myapp/registered/insertVenue.do?id=5
This place of the FormInsert Bean will then be automatically passed to your ActionVenueAction.execute () handler and will be populated with the URL parameters passed to
source share