>
> However, I have to supply a number of additional
> properties for the business tier to process. For
> example, the property threadType is to be assigned to
> zero manually and the property parentPostID is to be
> found from another class, how do I code them in the
> form bean? Do I use get methods shown below (without
> set methods)?
>
> public int getThreadType() {
> return 0;
> }
This is fine I assume.
> public int getParentPostID() {
> return ParamUtil.getParameterInt( request, "parent"
> );
> }
This wouldn't work properly. I would make a setter for parentPostID and in
the jsp write something like:
<html:hidden name="yourformname" property="parentPostID" value="<%=
request.getParameter("parent")%>"/>
HTH,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]