Can anyone suggest me how to transfer some value from jsp page to any java bean.
my requirement is i want to enter some values in a jsp page and after submitting this page values will be stored in the bean. i have a servlet also. so where i have to handle the values ? i dont want to use "request.getParameter()" also. so is there any way to store the values ??
Either you do it yourself or let frameworks like Struts, Spring MVC do it for you. Eventually request.getParameter() is called to get submitted values from HTML/JSP pages.
So if you don't want to do it yourself, look for web framework like struts and SpringMVC which will make your life easier.
posted 7 years ago
Thanks for your suggestion but unfortunately i am not using any framework. its a jsp/servlet based application. so how i have to do it in this scenario? yes i have to handle it manually. can someone suggest how to do it?
You don't "transfer a value" from a JSP page. A JSP is simply a template from which an HTML page is created and sent to the browser. Data is then submitted from the HTML page back to the server. On the server this data is read with the getParameter() family of methods.
If you do not understand what JSP is, I suggest this article.