Hi, First you must create a formAction class that contain elements form like this: suppose you a form with a text box and button, so the formActin class is // import public class YourFrom extends ActionForm { private String textBoxName;
// getter and setter textBoxName } second you configure struts.xml: add a form bean in the tag <form-beans> <form-bean name="aForm" path="thePathPackage.YourFrom.java"><form-bean> and add this in your action mapping name="aForm" finally you can retreive the textBox value in your action class like this: yourForm frm = (form) new yourFrm(); String txtBxValue = frm.getTextBoxName(); 2007/10/18, kushi <[EMAIL PROTECTED]>: > > > Hi > > I just devlop a form that upload a file (this form contains a text box & a > command button(OK button)). > my requirement is that when i click on ok button then i call an action > named > "action1" . > On this action1 which class is excuted is specified in struts.xml. > In struts.xml i define action class "action1class.java" .in > "action1class.java" class i required file name that i input in textbox. > so how i can use that name in my java class .please give me ur suggestion > as > soon as possible. > > > Thanks in advance. > kushi > -- > View this message in context: > http://www.nabble.com/how-to-use-form-input-in-java-class-tf4645786.html#a13270913 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- HORRI Khalid J2EE Developer --------------------------------------------------------- PHONE: +(212)22897659 GSM : +(212)77763981