Thanks David it worked...
Dave Newton
<[EMAIL PROTECTED]
o.com> To
Struts Users Mailing List
29/06/2007 14:51 <[email protected]>
cc
Please respond to Subject
"Struts Users Re: Struts 2.0 form bean
Mailing List"
<[EMAIL PROTECTED]
he.org>
--- [EMAIL PROTECTED] wrote:
> In the action class i defined a attribute called
>
> public PersonalDetailForm getForm() {
> return form;
> }
>
> public void setForm(PersonalDetailForm form) {
> this.form = form;
> }
>
> PersonalDetailForm form;
>
>
> and the jsp looks like
> <s:form action="doPersonal" method="POST"
> name="form">
> <s:actionerror />
> <s:fielderror />
> <s:textfield name="name" label="Name" /> <br/>
> <s:textfield name="dob" label="Date of birth" />
How would S2 know what "name" belonged to if you
didn't say "form.name" ?
Personally I think you're going about the problem the
wrong way; I'd think less in terms of S1.
d.
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story.
Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message has been checked for viruses and spam by the Virgin Money
email scanning system powered by Messagelabs.
This e-mail is intended to be confidential to the recipient. If you receive a
copy in error, please inform the sender and then delete this message. Virgin
Money do not accept responsibility for changes made to any e-mail after
sending. Virgin Money have swept, and believe this e-mail to be free of viruses
and profanity but make no guarantees to this effect.
Virgin Money Personal Financial Service Ltd is authorised and regulated by the
Financial Services Authority. Registered in England no. 3072766. Entered on the
Financial Services Authority's Register http://www.fsa.gov.uk/register/.
Register Number 179271. The Virgin Deposit Account is a personal bank account
with The Royal Bank of Scotland.
Virgin Money Unit Trust Managers Ltd is authorised and regulated by the
Financial Services Authority. Registered in England no. 3000482. Entered on the
Financial Services Authority's Register. Register Number 171748.
Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed
representative only of Virgin Money Personal Financial Service Ltd.
Virgin Money Management Services Ltd. Registered in England no.3072772.
Virgin Money Group Ltd. Registered in England no.3087587.
All the above companies have their Registered office at Discovery House,
Whiting Road, Norwich NR4 6EJ.
All products are open only to residents of the United Kingdom.
This message has been checked for viruses and spam by the Virgin Money email
scanning system powered by Messagelabs.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]