I've tried the action with and without the initial slash and with and without the .do suffix. All those versions result in the form having the same, wrong /CarePlannerWeb action.
In case it matters, the action servlet is configured in web.xml as follows: <servlet> <servlet-name>action</servlet-name> <display-name>CarePlanner ActionServlet</display-name> <servlet-class>com.med.struts.action.CarePlannerActionServlet</servlet-c lass> <init-param> <param-name>config</param-name> <param-value> /WEB-INF/struts-config.xml, /WEB-INF/struts-config-cpadmin.xml, /WEB-INF/struts-config-cpweb.xml, /WEB-INF/struts-config-sync.xml, /WEB-INF/struts-config-utils.xml </param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> Is it practical to step through the html:form tag's execution with a debugger and see where things are going wrong? -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Monday, September 26, 2005 6:59 PM To: user@struts.apache.org Subject: Re: problem with html:form tag action property I think you need to remove the '.do' from the action (I'm using prefix rather than suffix mapping, though, so I could be wrong...). L. Jane Eisenstein wrote: > I am converting an existing jsp to use struts tags. I replaced the > original form tag that looked like this: > <form target="main" name="timeTrackingReportForm" method="post" > action="timeTrackingReport.do"> > with: > <html:form action="/timeTrackingReport.do" target="main" > focus="reportStartDate"> > > The tag generates a form tag that looks like: > <form name="timeTrackingReportForm" method="post" > action="/CarePlannerWeb" target="main"> (CarePlannerWeb is the name of > the web application) > > I don't understand why the wrong form action is being generated. The > target action is defined as follows: > <action > path="/timeTrackingReport" > parameter="targetAction" > name="timeTrackingReportForm" > scope="request" > type="com.med.struts.action.cp.timetracking.TimeTrackingReportAction" > validate="false"> > <forward name="displayReportEntry" > path="/WEB-INF/jsp/cpweb/timeTracking/timeTrackingEntry.jsp"/> > <forward name="displayReport" > path="/WEB-INF/jsp/cpweb/timeTracking/timeTrackingReport.jsp"/> > </action> > > -------------------------------------------------------------- > Jane Eisenstein > MEDecision, Inc. > phone: 610-540-0202 ext. 1285 > email: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]