RE: initialize java form bean

2007-03-15 Thread Lim Hock-Chai
Ok.  Thanks.  Will try it out tonight. 

-Original Message-
From: Harring Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 14, 2007 4:26 PM
To: Struts Users Mailing List
Subject: Re: initialize java form bean

Try

Value you want

Make sure your action has the method that match accessors for the
attribute.
In the case above, you need
  public String  setNameOfAttribute(String va){  }

Hope this helps.

Harring

On 3/14/07, Lim Hock-Chai <[EMAIL PROTECTED]> wrote:
>
> is there a way to set a property of a java form bean from 
> struts-config.xml?
>
> I try to use set-property and it is not working.
>



--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become
so.
You must undertake something so great that you cannot accomplish it
unaided."

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



Re: initialize java form bean

2007-03-14 Thread Dave Newton
--- Lim Hock-Chai <[EMAIL PROTECTED]>
wrote:
> is there a way to set a property of a java form bean
> from struts-config.xml?
>  
> I try to use set-property and it is not working.

Which version of Struts (I'm assuming Struts 1, but
which version?) What did you try already?

d.



 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

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



Re: initialize java form bean

2007-03-14 Thread Harring Figueiredo

Try
   
   Value you want

Make sure your action has the method that match accessors for the attribute.
In the case above, you need
 public String  setNameOfAttribute(String va){
}

Hope this helps.

Harring

On 3/14/07, Lim Hock-Chai <[EMAIL PROTECTED]> wrote:


is there a way to set a property of a java form bean from
struts-config.xml?

I try to use set-property and it is not working.





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."