struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mlinar, Mario" <Mario.Mli...@shs.de>
Subject FormBean not found in request ...
Date Wed, 18 Feb 2004 14:12:50 GMT
My Action puts a FromBean into the request and forwards to a view.
The view can´t find the formBean and creates a new Instance which of course
is empty:-(
 
Here is my code:
 
 
struts-config.xml
    <action path="/gpSucheEdit" 
        type="de.shs.partnerportal.adb.ui.web.actions.GpDetailAction" 
        parameter="/gp_suche.jsp">
        <forward
            name="freelance"
            path="/edit/gp_freelance.jsp" />        
        <forward
            name="private"
            path="/edit/gp_private.jsp" />         
        <forward
            name="business"
            path="/edit/gp_business.jsp" />                    
       </action>       
        
       <action path="/freelanceEdit" 
            name="freelanceEdit" 
            scope="request" 
            validate="false" 
            input="/edit/gp_freelance.jsp" />
 
    <form-bean name="freelanceEdit"
type="de.shs.partnerportal.adb.ui.web.forms.GpFreelanceForm" />
 
 
snippet of my Action´s code:
        ....
        GpFreelanceForm myForm = .... some business code
        request.setAttribute("freelanceEdit", myForm);
        return mapping.findForward("freelance");
 
        -> myForm ist not null.
 
in my JSP I use this:
 
    <html:form action="/freelanceEdit">
    ... my elements ...
    </html:form>
 
Changing request to session makes it work fine.
What`s the problem??
 
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message