Hi, Can you try to to put the attribute "name" in the tag action (in struct-config.xml)?
<action path="/iRx/Admin/iRxAdminPrescriberView" attribute="AdminPrescriberForm" scope="request" * name="AdminPrescriberForm"* type=" net.prhin.recetas.controller.admin.iRxAdminPrescribersView" validate="false"> <forward name="success" path="/WEB-INF/jsp/admin/iRxAdminPrescribersView.jsp"/> </action> I hope help you.... 2006/9/21, Yamir Encarnacion <[EMAIL PROTECTED]>:
Hello, I am getting the following warning (log4j) when pre-loading a form and was wondering if I am pre-loading the form correctly. [2006-09-21 11:12:14,572] - WARN (RequestUtils.java:175) - No FormBeanConfig found under 'null' Any info on whether I am incorrectly pre-loading the form, or whether it is safe to ignore the warning would appreciated. What I am doing is based on the struts-example.war from struts 1.1. Here is a snippet: In struts-config.xml <struts-config> <form-beans> <form-bean name="AdminPrescriberForm" type="net.prhin.recetas.controller.form.admin.AdminPrescriberForm "></form-bean> </form-beans> <global-forwards> <forward name="failure" path="/failure.do" redirect="true"/> </global-forwards> <action-mappings> <action path="/iRx/Admin/iRxAdminPrescriberView" attribute="AdminPrescriberForm" scope="request" type="net.prhin.recetas.controller.admin.iRxAdminPrescribersView" validate="false"> <forward name="success" path="/WEB-INF/jsp/admin/iRxAdminPrescribersView.jsp"/> </action> </action-mappings> </struts-config> In net.prhin.recetas.controller.admin.iRxAdminPrescribersView.java public class iRxAdminPrescribersView extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //Create the Form if (form == null) { form = new AdminPrescriberForm(); request.setAttribute(mapping.getAttribute(), form); } ComboPooledDataSource cpds = (ComboPooledDataSource) request.getSession().getServletContext().getAttribute("database"); //Get Data for the form AdminPrescriberTO apto = AdminPrescribers.getAdminPrescriberTO(cpds.getConnection(), request.getParameter("id")); if(apto!=null){ AdminPrescriberForm apf = (AdminPrescriberForm) form; // Set the form properties apf.set{property}(apto.get{property}()); // ... return mapping.findForward("success"); } else { return mapping.findForward("failure"); } } } Thanks Yamir Encarnacion __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]