how to set a value to javabean from servlet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kannan_Chandran
Posted On:   Tuesday, December 13, 2005 01:50 AM


i want to set text box value to a javabean
i tried through javascript but i could't acheive it

			

Re: how to set a value to javabean from servlet

Posted By:   Anonymous  
Posted On:   Friday, January 20, 2006 02:00 AM

To transfer a value from the client side to the server side, you need to do a form submission. On the server side you need to have a servlet that receives the form submission and does something with the value. In your case, you will be able to retrieve the value in the servlet with request.getParameter("tname"). You can assign a javabean attribute to that value, though if you do that you'll probably want to also save the javabean somewhere like the session. If you have questions on how to do that ask away :).

Jon Emerson

About | Sitemap | Contact