I am integrating Struts into an application containing servlets. I would
like to invoke these from Struts components, but am having a problem
getting this configured. My application's web.xml contains:
 
 <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?

--------------------------------------------------------------
Jane Eisenstein
MEDecision, Inc.
phone: 610-540-0202 ext. 1285
email:  [EMAIL PROTECTED]

 

Reply via email to