Hallo,
Unter Struts 1 fliegt mir die folgende Exception um die Ohren:
java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtils.getProp ertyDescriptor(PropertyUtils.java:837)
...
Vor längerer Zeit habe ich das Problem schonmal gehabt, doch an dessen Lösung kann ich mich nicht mehr entsinnen.
Ich meine dass alles richtig sein müsste, doch anscheinend sehe ich den Wald vor lauter Bäumen nicht.
die struts-config.xml:
...
Einspungspunkt für die Action ist folgender:
Die Java-Action:
Die Java-Form:
Die JSP ist mehr oder minder leer, hat bisher noch keinen Bezug zur Form.
Könnt ihr mir vielleicht sagen was ich nicht sehe?
Wo ist das Problem?
Vielen Dank!
Unter Struts 1 fliegt mir die folgende Exception um die Ohren:
java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtils.getProp ertyDescriptor(PropertyUtils.java:837)
...
Vor längerer Zeit habe ich das Problem schonmal gehabt, doch an dessen Lösung kann ich mich nicht mehr entsinnen.
Ich meine dass alles richtig sein müsste, doch anscheinend sehe ich den Wald vor lauter Bäumen nicht.
die struts-config.xml:
Code:
<form-bean name="offerToResultTransferForm" type="de.abc.form.OfferToResultTransferForm"></form-bean>
Code:
<action path="/offerToResultTransfer" type="de.abc.action.OfferToResultTransferAction" name="offerToResultTransferForm" attribute="offerToResultTransferForm" parameter="method" scope="session"> <forward name="success" contextRelative="true" redirect="false" path="/protected/processes/abc/offerTransfer.jsp"/> <forward name="offerTransfer" contextRelative="true" redirect="false" path="/abc/offer.do?method=init"/> </action>
Code:
<forward name="offerTransfer" contextRelative="true" redirect="false" path="/abc/offerToResultTransfer.do?method=init"/>
Code:
public class OfferToResultTransferAction { public OfferToResultTransferAction() { super(); } public final ActionForward init(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { final OfferToResultTransferForm otrtForm = (OfferToResultTransferForm) form; final OfferToResultTransferFacade otrtFacade = new OfferToResultTransferFacade(); otrtForm.setContext(otrtFacade.initOfferToResultTransferForm(request)); return mapping.findForward(otrtForm.getContext().getForward()); } }
Code:
public class OfferToResultTransferForm { private OfferToResultTransferContextTO context; public OfferToResultTransferForm() { super(); } /** * @return the context */ public OfferToResultTransferContextTO getContext() { return context; } /** * @param context the context to set */ public void setContext(OfferToResultTransferContextTO context) { this.context = context; } }
Könnt ihr mir vielleicht sagen was ich nicht sehe?
Wo ist das Problem?
Vielen Dank!