Hi,
I'm learning the
JSP. After i studied some important concepts in JSP. I have a doubt. Why i have to use
Java Beans in JSP? For Example
i'm filling the form and i can get the value of the form fields by using the easy expression or normal method. But when it's going to beans first i have to set the property and then i can get the value. Why this much complexity? Or i misunderstood the concept?? or is any necessary we have to use this??
Exp Method : <%= request.getParameter("fieldname") %>
Beans Method : <jsp:useBeans type="" class="" id="">
<jsp:setProperty name="" property="" param="" />
</jsp:useBeans>
<jsp:getProperty name="" property="" />