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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Regards
Shiva

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to