Try this first: http://wiki.apache.org/struts/StrutsWidgets
On 2/22/06, PC Leung <[EMAIL PROTECTED]> wrote:
> <bean:write name="userForm" property="eng_name"/>
>
> The above line returns blank. Where goes wrong?
>
> In previous page as below, the combo box has values.
>
> <td>
> <html:select name="userForm" property="eng_name">
> <html:options collection="userList"
> property="eng_name"/>
> </html:select>
> </td>
>
> struts-config.xml is
>
> <action path="/setupSelectUser"
> input="user.selectUser"
> name="userForm"
> scope="session"
> validate="false"
> type="com.user.struts.action.SetupSelectUserAction">
> <forward name="success" path="user.selectUser" />
> </action>
>
> <action path="/setupAssignUserSystem"
> input="user.assignUserSystem"
> name="userSystemForm"
> scope="session"
> validate="false"
>
> type="com.user.struts.action.SetupAssignUserSystemAction">
> <forward name="success" path="user.assignUserSystem"
> />
> </action>
>
>
> public final class SetupSelectUserAction extends Action {
> private Log log =
> LogFactory.getFactory().getInstance(this.getClass().getName());
> public ActionForward execute (ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws Exception {
> UserProfileService service = new UserProfileService();
> Collection userList = service.getUserProfileList(null);
> HttpSession session = request.getSession();
> session.setAttribute( "userList", userList );
> UserForm userForm = (UserForm)form;
> userForm.setMethod("create");
> log.info("SetupSelectUserAction:" + userForm.getMethod());
> return mapping.findForward("success");
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]