how do you write set a propert of a bean using a scriptlet?
hi! thanks for reading,
I am trying to set a property of a bean of mine from a request parameter and the compiler is telling me that it is incorrect
my script is
<jsp:useBean id="stringbean"
scope="session"
class="com.vbc.beans.myBean" />
<jsp:setProperty name="stringbean"
property="lastName"
value="<%=request.getParameter("lastName")%>" />
i don't know what else to do.
any help would be appreciated! :D
the parameter lastname, I already tested it. if would do
<%=request.getParameter("lastName")%>
outside of the jsp tag it will display the proper value of the parameter. i just don't know how to embed the value to a bean with the method I pasted above.