...
Code Block | ||
---|---|---|
| ||
<% User user = ActionContext.getContext() %> <form action="Profile!_update.action" method="post"> <table> <tr> <td> align="right"<label>First name:</label></td> <td><input type="text" name="user.firstname" value="<%=user.getFirstname() %> /></td> </tr> ... <td> <input type="radio" name="user.gender" value="0" id="user.gender0" <% if (user.getGender()==0) { %> checked="checked" %> } %> /> <label for="user.gender0">Female</label> ... |
...
Code Block | ||
---|---|---|
| ||
<s:actionerror/> <s:form action="Profile!_update" validate="true"> <s:textfield label="Username" name="username"/> <s:password label="Password" name="password"/> <s:password label="(Repeat) Password" name="password2"/> <s:textfield label="Full Name" name="fullName"/> <s:textfield label="From Address" name="fromAddress"/> <s:textfield label="Reply To Address" name="replyToAddress"/> <s:submit value="Save" name="Save"/> <s:submit action="Register!cancel" value="Cancel" name="Cancel" onclick="form.onsubmit=null"/> </s:form> |
...