struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Thiel" <thiel.oli...@gmx.de>
Subject logic:notMatch - TagLib
Date Sun, 08 Feb 2004 18:39:27 GMT
Hi  @all,
 
 
I iterate over a HashMap (mapped) to create my (register) form. 
 
<logic:iterate id="field" name="mapped">
<input type="text" name="field(<bean:write name="field" property="key"
/>)"  value="<bean:write name="field" property="value" />">
</logic:iterate>
 
Now I want some of the input fields to be text and some
to be password. 
 
<logic:iterate id="field" name="mapped">
<logic:match name="field" value="password">
<input type="password" name="field(<bean:write name="field"
property="key" />)"  value="<bean:write name="field" property="value"
/>">
</logic:match>
<logic:match name="field" value="conf_pwd">
<input type="password" name="field(<bean:write name="field"
property="key" />)"  value="<bean:write name="field" property="value"
/>">
</logic:match>
<logic:notMatch name="field" value="password" value="conf_pwd">
<input type="text" name="field(<bean:write name="field" property="key"
/>)"  value="<bean:write name="field" property="value" />">
</logic:notMatch>
</logic:iterate>
 
But this does not work! It prints out an two input field for password!
One of type text and one of type password!
Is their a better/correct way to archive this? Or an other tag I can
use?
 
 
Thanks 
Oliver

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message