I have:

<html:form action="/search" method="get">
  <html:text property="query"/>
  <html:hidden property="dataset" value="a"/>
<html:form>

which generates:

<form name="form" action="/test/search" method="get">
  <input type="text" name="query">
  <input type="hidden" name="dataset" value="a">
</form>

This works, but I would like to avoid exposing the action URL and return
this instead:

<form name="form" action="/test/a/" method="get">
  <input type="text" name="query">
</form>

There is a servlet filter that will internally forward '/test/a/' to
'/test/search?dataset=a'.

An obvious solution would be:

<form action="/test/a/" method="get">
  <html:text property="query"/>
<form>

Unfortunately this does not work as the html:text tag looks for a scoped
attribute that is set by the html:form tag.

Is there an alternative to html:form, that sets the same attributes,
but does not print anything?

<html:action action="/search">
  <form action="/test/a/" method="get">
    <html:text property="query"/>
  <form>
</html:action>

Or could the generated action URL be overridden somehow?

<html:form action="/search" url="/test/a/" method="get">
  <html:text property="query"/>
<html:form>

There must be a way...



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



Reply via email to