Setting values of struts forms

Hi all,I want to set values of a struts form.this is not working namely:<html:text property="duur"/><html:errors property="duur" value="<%toets.getDuur();%>"/>how can I set the values .....anyone?thnx in advance
[278 byte] By [mol-mola] at [2007-10-3 2:29:50]
# 1

An html:errors tag does not have a value attribute.

Also you should be using the <%= expr %> tag to evaluate expressions.

If you are wanting to specify the value of a textfield then

<html;text property="duur" value="<%= toets.getDuur() %>"/>

<html:errors property="duur"/>

However the better way in your Action is to set the values in the FormBean, and then forward to the page to display. It should pick up the values from the form bean automatically.

Cheers,

evnafets

evnafetsa at 2007-7-14 19:28:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...