i have couple radio buttons , checkbox in webmathematica form (jsp page). after submitting form, radio buttons , checkbox deselected. there way keep them selected after submitting form?
thanks!
edit:
here sample code:
there 4 radio buttons select from. keep radio button selected after submitting form.
<input type="radio" name="pumptype" value="pump1" ${param.putorcall == "pump1" ? "checked" : ""} /> <input type="radio" name="pumptype" value="pump2" ${param.putorcall == "pump2" ? "checked" : ""} /> <input type="radio" name="pumptype" value="pump3" ${param.putorcall == "pump3" ? "checked" : ""} /> <input type="radio" name="pumptype" value="pump4" ${param.putorcall == "pump4" ? "checked" : ""} />
if understand correctly trying keep form data intact after sending off server. now, http stateless protocol it'll forget after request. can here retrieve data in server-side, whatever want them, pack data received in command object , send response. populate form data command object. that's how should done.
Comments
Post a Comment