Justin Ashworth wrote:
> Actually, that's what I tried at first but then I realized that I would
> need a default form, and I would have to define that "dummy" form. To
> me, this seemed more like a kludge than a solution. Is there a way to
> keep that form tag in there without having to define a dummy form?
If I understand you correctly, you're trying to acomplish something like
this:
// conditional is true
<form action="action">
Some text
<input type="text" name="somename">
</form>
and if your conditional is false you want to have this:
Some text
<input type="text" name="somename">
Well, in the latter case you have an invalid html, since no input elements
could exist outside the form element.
You might want to minimize the form's scope, e.g.
Some text
<c:if...>
<html:form...>
<html:text .../>
</html:form>
</c:if>
But maybe I don't understand you completelly :-)
>
>> -----Original Message-----
>> From: Miller, Jason [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, February 06, 2003 4:50 PM
>> To: 'Struts Users Mailing List'
>> Subject: RE: Conditional forms
>>
>>
>> would it work to just leave the form tag in there at all
>> times and simply be conditional regarding the fields? The
>> empty form shouldn't cause any problems that I can see.
>>
--
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]