Hi, please tell me how do we convert a java form bean to a value object. Also the code details. Thanks, Rashmi
Joined: Oct 16, 2003
To elaborate on my question, i have a html form bean, i want to seperate the business login in the ejb. To call a ejb method I need to send a value object that has all the fields of the html form. Please give me the code example. Thanks & Regards, Rashmi.
Hi Rashmi Reddy .... How r u.. to your problem what you do is.... From Html send all the details to Jsp/servlet Page there using getParameterNames() method retrive all the names with these name you can retive the values. So now put all these names and values in a HashMap. Now send these HashMap to Bean or EJB. I think you know how to retrive the values form HashMap.