File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes java bean , jsp page and parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "java bean , jsp page and parameters" Watch "java bean , jsp page and parameters" New topic

java bean , jsp page and parameters

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 386
Java Class

JSP PAGE - SavePage.jsp

1 How does the parameters from html form get collected in Savename.jsp ? As there is no request.getParameter() ?

2 How do these parameters het transferred to java bean user ? user java class is called by the useBean, but how is each property assigned a particular value ?

Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
If you declare property="*", the container will map all request parameters which names can be matched with a JavaBean Property setter method into the bean.

The idea is simple.

An input field of name email will invoke setEmail(String s) on the bean you use.

If you have input fields that don't have a bean setter, no worries, these are skipped, no exception is thrown.

As for how the container does it... the powerful capabilities of Reflections

JDBCSupport - An easy to use, light-weight JDBC framework -
I agree. Here's the link:
subject: java bean , jsp page and parameters
jQuery in Action, 3rd edition