Hi Jeanne,
On Behalf of Sriram i am including the snippets of struts config and the code for html submit button.Also, have included the get and setsavebutton code.
Struts Config:
<action
attribute="mnSeaLvlPressureForm"
input="/MnSeaLvlPressureIn.jsp"
name="mnSeaLvlPressureForm"
path="/mnSeaLvlPressure"
scope="request"
type="com.yourcompany.struts.action.MnSeaLvlPressureAction" >
<forward name="report" path="/MnSeaLvlPressureout.jsp" />
<forward name="output" path="/MnSeaLvlPressureIn.jsp" />
</action>
HTML code:
<%String goImage = renderRequest.getContextPath() + "/crystalreportviewers115/images/toolbar/ed_gl_ls_go.gif" ;%>
<tr><td colspan="2" align="center"><html:submit property="saveButton" on click="return fnsubmit();" value="View" >Submit</html:submit></td></tr>
<code>
private ImageButtonBean saveButton = new ImageButtonBean();
public ImageButtonBean getSaveButton() {
return saveButton;
}
public void setSaveButton(ImageButtonBean saveButton) {
System.out.println("Calling the Set Save Button");
this.saveButton = saveButton;
}
public
String getval(){
System.out.println("Get Selected in Form"+getSaveButton().isSelected());
if (getSaveButton().isSelected())
{ return "save";
}
return "False";
}
</code>
Hope you can give some suggestions
Regards
Shiva.