JSP Page That Uses StringBean
63
JSP
www.corewebprogramming.com
Associating Bean Properties
with Request (Form) Parameters
If property is a String, you can do
<%= request.getParameter("...") %>
/>
Scripting expressions let you convert types,
but you have to use Java syntax
The
param
attribute indicates that:
Value should come from specified request param
Simple automatic type conversion performed
Using "
*
" for the property attribute indicates
that:
Value should come from request parameter whose name
matches property name
Simple type conversion should be performed
64
JSP
www.corewebprogramming.com
32