On Thu, Feb 06, 2003 at 09:13:05PM +0100, Rene Eigenheer wrote:
> do you have the <html:form> around ?
Yup.
In my struts-xml file I have:
<!-- Trigger form -->
<form-bean name="triggerForm" type="com.gervais.portail.forms.TriggerForm" />
<action path="/trigger/modifyAlerte"
type="com.gervais.portail.actions.TriggerAction" parameter="target"
name="triggerForm" scope="request" validate="false">
<forward name="modifyAlerte" path="/trigger/modifyAlerte.jsp">
</forward>
</action>
In the ActionForward Class I have:
public ActionForward modifyAlerte(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
<...>
TriggerForm tf = (TriggerForm)form;
tf.setSubject("Foo!");
<..>
}
My JSP (inside the /trigger/modifyAlerte.jsp form has:
<html:text property="subject" style="height: 19; width: 400;"/>
Which produces the following HTML:
<input type="text" name="subject" value="" style="height: 19;
width: 400;">
What am I doing wrong?
--
Justin F. Knotzke
[EMAIL PROTECTED]
http://www.shampoo.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]