calling a set method of form bean from a javascript function
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, February 24, 2007 04:53 AM

hello


i am trying to set an element of the actionform bean from a javascript function.
Is this possible!!!

actually i want the bean to be set whenever &lta&gt is clicked and javascript function is called on onclick



any help will be appreciated!



thanks

Re: calling a set method of form bean from a javascript function

Posted By:   Anonymous  
Posted On:   Monday, February 26, 2007 03:24 AM

first it is not possible to call any setmethod of a formbean from javascript:

what i undetstood from your question is you click the link in your jsp you want to populate one property in your formbean and not want to submit all the values again.

for that do one tricky thing

do like this

in your jsp put like this

setMyProperty



what it makes is it will only post the particular formBeanProperty and value to your same action and only that property will populate.
About | Sitemap | Contact