i have the following case:
click link "search" => action => output.jsp
output.jsp has 2 forms, both forms use a hidden variable "table"
link "search" passes parameter "table". action creates "search form" and "table" is correctly set by struts. now in output.jsp i have a tag that creates a "recent records" form using RequestUtils.createActionForm. however, in this form the "table" parameter is not set.
i thought if there were parameters that were of the same name as fields then they would be set? i must be doing something wrong here. doesn't creating the form, populate it? or is it separate?
============ [snip] Object tmp = request.getAttribute(formName); if (tmp == null) { ActionServlet servlet = getActionServlet(pCntxt); ModuleConfig modConfig = getModuleConfig(pCntxt); FormBeanConfig formBean = modConfig.findFormBeanConfig(formName); tmp = RequestUtils.createActionForm(formBean, servlet); } // Dyna is guaranteed by struts-config - only extensios r used return (DynaActionForm)tmp;
:(
riyaz
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]