First, if you are invoking an action it looks for the mapping. The mapping
is for anything ending in .do (*.do to be exact in the mapping). That means
if your url is "/start.do" it tries to find the action-mapping with the name
"/start" and invokes it. The global-forward section's "forwards" are for
the outcomes (i.e. the forward.findForward("timeOut") your action returns.
Now, I was asking why your new deployment was kicking out an error that a
path "/do/start" was invoked. How are you accessing the urls for each of
those two containers/application servers? Where did this "/do/start" come
from if you are mapping the suffix (*.do) and not the prefix (/do/*) for the
Struts servlet?
Regards,
David
-----Original Message-----
From: Hehl, Thomas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 1:04 PM
To: 'Struts Users Mailing List'
Subject: RE: Websphere mapping problem
Doesn't this:
<global-forwards>
<forward name="start" path="/start.do" />
<forward name="login" path="/login.do" />
<forward name="timeOut" path="/base/login.jsp" />
<forward name="home" path="/home.do" />
<forward name="error" path="error.system" />
</global-forwards>
<!-- =================================== Action Mapping Definitions -->
<action-mappings>
<action path="/start"
type="org.apache.struts.actions.ForwardAction"
unknown="true"
parameter = "/base/login.jsp"
/>
Map the start name to start.do? The path is simply turned over to struts to
resolve "start" and so it should resolve to start.do, right?
-----Original Message-----
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 11:07 AM
To: Struts Users Mailing List
Subject: RE: Websphere mapping problem
Your error suggests your are using the wrong url. The error lists
"/do/start" but your mapped your servlet to "*.do" so it expects the path
"/start.do" What path are you trying to reach your webapp on for each
platform?
-David
-----Original Message-----
From: Hehl, Thomas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 9:59 AM
To: '[email protected]'
Subject: Websphere mapping problem
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]