struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Gupta" <amit.gu...@computerware.co.in>
Subject From Amit Gupta: RE: Passing information to Action class
Date Wed, 22 Dec 2004 05:49:18 GMT
But when we define form beans in DynaActionForm way and write Action classes, we need to import
form bean class for MyForm frm=(MyForm)form;

How do we import form bean class thus required for compilation of Action class?


-----Original Message-----
From: Shiva Narayana [mailto:shiva.narayana@gmail.com] 
Sent: Wednesday, December 22, 2004 10:45 AM
To: Struts Users Mailing List
Subject: Re: Passing information to Action class

try with DynaActionForm it solves ur problem. No noeed to write FormBean

<form-bean name="simpleForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="fileAbsPath" type="java.lang.String"/>
</form-bean>


On Tue, 21 Dec 2004 19:16:50 +0530, uma.k <uma.k@net-kraft.com> wrote:
> Hi,
> How to pass information to Action class directly? i.e. I don't want to write
> a ActionForm class.
> 
> <html:form action="editUpload.do">
> <html:hidden property="fileAbsPath" value="<%=fileAbsPath%>" />
> <html:submit>Edit</html:submit>
> </html:form>
> 
> And my struts-config.xml will look like this
> 
>    <action
>                path="/editUpload"
>                type="upload.EditUploadAction"
>                scope="request"
>                input="/upload/display.jsp">
>      <forward name="success" path="/upload/upload.jsp" />
>    </action>
> 
> in my .java execute method, I am writing
> String theFile = request.getParameter("fileAbsPath");
> 
> Any ideas?
> 
> Uma
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
Regards
Shiva

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message