Jane Eisenstein wrote:
<servlet>
<servlet-name>LogonServlet</servlet-name>
<display-name>LogonServlet</display-name>
<servlet-class>com.med.servlet.cp.LogonServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LogonServlet</servlet-name>
<url-pattern>/servlet/com.med.servlet.cp.LogonServlet</url-pattern>
</servlet-mapping>
Its struts-config.xml contains
<global-forwards>
<forward name="logonServlet"
path="/servlet/com.med.servlet.cp.LogonServlet"/>
</global-forwards>
When I try to load this servlet via this code:
<frame name="main"
src="logonServlet.do&targetAction=displayLogonPage"
scrolling="auto"
marginwidth="0"
noresize
marginheight="0">
the request reaches the ActionServlet but results in this error being
logged:
RequestProces E org.apache.struts.action.RequestProcessor Invalid path
/logonServlet was requested
What am I doing wrong?
Mixing Struts and servlets ;)
Creating a forward doesn't create an action--what is logonServlet.do? If
it isn't an action, then why would it have a .do extension? When the
request processor sees a .do (if you're set up to do extension-based
struts mappings) it'll try to fire an Action.
Also, you can't use a forward definition in a non-struts anything,
because only struts knows about forwards.
If you are just using a servlet as the contents of a frame then you
don't need to interact with struts at all.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]