On 11/10/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
1. Can I use struts tags (eg <html:select>) without wrapping them in an 
<html:form> (I'm pretty sure the answer is no).

2. Can I wrap my tags in <html:form> but somehow not output <form> to the 
resultant HTML.

I was hoping for a render="false" or similar. eg:

<html:form action="/myAction" render="false">
        <html:select property="year">
                <html:options collection="years" />
        </html:select>
</html:form>

Any other suggestions welcome.

Officially... http://struts.apache.org/1.x/struts-taglib/tlddoc/html/select.html

"This tag is only valid when nested inside a form tag body."

What happens if you leave off <html:form> and use the 'name' attribute
of the select tag?  If the form bean (or some other bean) is in scope,
it might work.  I'd also review the code for the select tag and see
what else it expects to get from the enclosing form tag.

'name' - The attribute name of the bean whose properties are consulted
to determine which option should be pre-selected when rendering this
input field. If not specified, the bean associated with the enclosing
<html:form> tag is utilized.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to