I have a FormBean Class :

public class SomeForm extends ActionForm implements Serializable {
        private SomeBean someBean;
   // ......

}

public class SomeBean implements Serializable {
        private String field1;
        private String field2;

        public String getField1()       {
                return field1;
        }

        public void setField1( String field1In )        {
                field1 = field1In;
        }

        public String getField2()       {
                return field2;
        }

        public void setField2( String field2In )        {
                field2 = field2In;
        }

}


How do I access this in my Form.jsp :

<html:form action="SomeAction" name="someForm"
type="com.something.SomeForm">

<!--  How to use someBean.field1 property here -->
<html:text property="?????"  size="3" maxlength="3"/>  

</html:form>


This will help in reusing the beans in different forms.
Is this the way to do it or is there a better way ? 



Nizar Bhamani

____________________________________________________________
CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 
____________________________________________________________



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to