Is something like this legal in a Struts 2 custom component:

    <s:component template="/my/custom/component.vm">
      <s:param name="key1" value="value1"/>
      <s:param name="key2" value="value2"/>
      Some text to be wrapped in my component.
      <s.text name="someProperty" />
    </s:component>


In other words, can <s:component> act like, for example, <s:form>...</ s.form>? I'd like to create a HTML fieldset component that plays well with themes. But this doesn't result in valid HTML with the xhtml theme, for example:

<s:form ...>
        <fieldset>
        <legend>Form test</legend>

        <s:text ... />
</s.form>

If anyone's had luck using <fieldset> with a theme other than simple, I'm interested in how you accomplished that.


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

Reply via email to