You really should be populating the form from within an action before you
get to the JSP.

But if you must, custom tags aside, this might work:

<%

  ActionForm form = (ActionForm)pageContext.getAttribute(formBeanName);
  BeanUtils.copyProperties(databean,form);
  pageContext.setAttribute(formBeanName,form);

%>

Do rendering here

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Peter Klassen
Sent: Tuesday, November 11, 2003 8:07 AM
To: [EMAIL PROTECTED]
Subject: init form on page


Hi u all,
would like to init a ActionForm on the Top of my JSP-Page with an given
Data-Bean.

How can i retrieve the Form? pageContext? session?

thx, Peter




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to