Hallo,
I am looking for mistake and not to see it.
I have jsp:
<%@(protected)" %>
<html:form action="/SaveMenuLang" method="post" focus="adminMenuLang">
<html:hidden name="adminMenuLang" property="langId" />
<html:hidden name="adminMenuLang" property="packId" />
...
</html:form>
, in my struts-config is:
<form-bean name="adminMenuLang"
type="
org.apache.struts.action.DynaActionForm">
<form-property name="langId" type="
java.lang.Integer" />
<form-property name="packId" type="
java.lang.Integer" />
<form-property name="menuId" type="
java.lang.Integer" />
<form-property name="menu" type="
java.lang.String" />
</form-bean>
and
<action
path="/PrepareLangMenu"
name="adminMenuLang"
scope="request"
type="cz.chalu.struts.modules.admin.PrepareLangMenuAction">
<forward name="success" path=".main.admin.menu.lang" />
<forward name="error" path=".main.admin.menu.lang" />
</action>
<action
path="/SaveMenuLang"
name="adminMenuLang"
scope="request"
type="cz.chalu.struts.modules.admin.SaveLangMenuAction" >
<forward name="success" path=".main.admin.base" />
<forward name="error" path=".main.admin.menu.lang" />
</action>
in action cotroler:
System.out.println("begin ...");
LanguageMenusBO bo = new LanguageMenusBO();
LangMenuDTO dto = new LangMenuDTO();
DynaActionForm theForm = (DynaActionForm) form;
BeanUtils.copyProperties(dto, theForm );
BeanUtils.copyProperties(theForm, bo.getLangMenu(dto));
request.setAttribute(mapping.getAttribute(), theForm);
//request.setAttribute("adminMenuLang", theForm);
System.out.println("finish controler ...");
return (mapping.findForward(Config.SUCCESS));
and I got exception
...
22:58:26,005 INFO [STDOUT] finish controler ...
22:58:27,603 ERROR [Engine] ApplicationDispatcher[/cms] Servlet.service() for
servlet jsp threw exception
org.apache.jasper.JasperException: Cannot retrieve definition for form bean
null
at
org.apache.jasper.servlet.JspServletWrapper.service (
JspServletWrapper.java:254)
....
Does anybody see what I am not? I looking at this too long and do not see
anything :(
when I delete form tags <html:form ... > and </html:form> and leave body of
form, this message I do not get and hidden inputs are filled correctly as all
others.
Thanks,
Jiri
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@(protected)
For additional commands, e-mail: struts-user-help@(protected)