Web tier: servlets, JSP, Web frameworks: form values in JSP without request.getParameter("xyz")

  1. Hi all,

    I would like to know if there is any way (without using request.getParameter() method) I can get the values of the form fields in a JSP when the JSP is invoked by submitting the form.

  2. Hi,

    It is possible by using JavaBeans.
    It is easy topic, just try it out.

  3. use jsp:useBean action tag with intospect="yes".
    the form element names and bean class set Method Names must match as
    <input type=text name='empName'>
    the bean method must be
    public void setEmpName(String str){}