Can you add the struts-config.xml mapping? 

-----Original Message-----
From: Eric Jain [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 01, 2003 5:47 PM
To: struts-user
Subject: html:form action attribute not set correctly

I'm having some problems with a form not setting its action attribute as
expected. For example

  <html:form action="/search" method="get">
    ...
  </html:form>

generates

  <form name="search-form" method="get" action="/application">
    ...
  </form>

rather than

  <form name="search-form" method="get" action="/application/search">
    ...
  </form>

or

  <form name="search-form" method="get" action="search">
    ...
  </form>

'/search' is a correctly configured action, if randomly changed to something
else there is a 'cannot retrieve action mapping' message, as expected, and
besides '/application/search' works perfectly if accessed directly.

What am I doing wrong?


--
Eric Jain


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


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

Reply via email to