You don't need to specify the /do (or *.do) in the html:form, since only actions can be specified here. html:form is tolerate of leaving on the extension, for backwards compatibility. But there is not a similar clause for the prefix.
The best practice is to specify the exact "path" property of the relevant ActionMapping here. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Eric Ma wrote: > > I have read articles by Ted Husted and Vic Cekvenich saying that the commonly used >*.do uri pattern in Struts not only is ugly, but also creates problem when one tries >to access these kinds of URL's through a proxy server or firewall. Therefore, I have >been trying to use the /do/* pattern. However, I ran into a lot of problem when >trying to do so with WebLogic 6.1 SP1. WebLogic seems to prepend the wrong servlet >context path in front of the uri-pattern I specify. For example, in a JSP page I have > > <html:form action="do/action1"> > > for some reason when the page is rendered in the browser the HTML tag becomes > > <form action="<my_servlet_context_path>/do/do/action1"> > > Has any one seen this kind behavior? Or has anyone used the /do/* uri-pattern >successfully with WebLogic 6.1 SP1? > > TIA, > > Eric Ma > > -- > > This e-mail may contain confidential and/or privileged information. If you are not >the intended recipient (or have received this e-mail in error) please notify the >sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or >distribution of the material in this e-mail is strictly forbidden. > > -- > 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]>

