Tamas Szabo wrote:
Isn't there a struts tag which for a given action path it gives me the
name of the associated form?

No there isn't, though it'd be trivial to write. What you can do, though, is something like this:

  <bean:define id="formTag" name="org.apache.struts.taglib.html.FORM"/>
  <bean:define id="formName" name="formTag" property="beanName"/>

Note that's untested (and probably wrong!), but it really is just a couple lines of code to do this. That gives you the scripting variable name of the form bean for an enclosing <html:form/> tag, by the way; it won't do anything useful outside a form tag.

L.


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

Reply via email to