You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roland Berger <ro...@plenum-systems.ch> on 2001/11/08 18:14:12 UTC
Nested struts tags?
Hi all
I'd like to do the following:
<html:text property="fanum" size="16" maxlength="50"
<logic:notEqual name="editMode" value="true">
disabled="true"
</logic:notEqual>
/>
If variable editMode ist not equal true, then the text tag should be
disabled. But nested tags are not allowed in struts. Does somebody know a
work around?
Thanks
Roland
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Nested struts tags?
Posted by David Noll <li...@noll.org>.
You need to do something like this:
<logic:equal name="editMode" value="true">
<html:text property="fanum" size="16" maxlength="50">
</logic:equal >
<logic:notEqual name="editMode" value="true">
<html:text property="fanum" size="16" maxlength="50" disabled="true">
</logic:notEqual>
It's slightly longer, and the repetition of the html:text tag is a little
horsy, but to my eye it's more readable, not to mention that it actually
compiles and executes. Based on your question, you might be interested in
Niall Pemberton's if/then/else tags
(http://husted.com/struts/resources/logic-niallp.htm).
Cheers,
David
-----Original Message-----
From: Roland Berger [mailto:roland.berger@plenum-systems.ch]
Sent: Thursday, November 08, 2001 12:14 PM
To: Struts Mailinglist
Subject: Nested struts tags?
Hi all
I'd like to do the following:
<html:text property="fanum" size="16" maxlength="50"
<logic:notEqual name="editMode" value="true">
disabled="true"
</logic:notEqual>
/>
If variable editMode ist not equal true, then the text tag should be
disabled. But nested tags are not allowed in struts. Does somebody know a
work around?
Thanks
Roland
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>