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]

Reply via email to