> -----Urspr�ngliche Nachricht-----
> Von:  Pierre M�tras [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 30. November 2000 17:51
> An:   [EMAIL PROTECTED]
> Betreff:      Re: Preprocessing for a jsp
> 
> Hi Andre,
> 
> > Looks like i made some wrong configuration in the xml-files, because i
> get
> > a java.lang.ClassCastException when the servlet is called.
> 
> We need a little more information to help, because a Cast exception can
> occurs almost everywhere...
> Which version of Struts are you using? And give us an extract of your
> configuration file, with the stack dump.
> 
> Pierre M�tras
        [Andre Wittenburg]  
First of all, thanks for the quick reply.
By the time I use the nightly build from 2000-11-26. The extract from
struts-config.xml 
and web.xml follows.

Andre

struts-config.xml:
   <action 
        input="/dummy/index.jsp"
        name="fooForm"
        path="/dummy/First"
        scope="session"
        type="com.foo.MyAction">
      <forward name="success" path="/dummy/Second.jsp"/>
      <forward name="failure" path="/dummy/index.jsp"/>
    </action>

web.xml:

 <servlet>
    <servlet-name>myAction</servlet-name>
     <servlet-class>com.foo.MyAction</servlet-class>
    <init-param>
      <param-name>application</param-name>
      <param-value>com.foo.ApplicationResources</param-value>
    </init-param>
  </servlet>

  <servlet-mapping>
    <servlet-name>myAction</servlet-name>
    <url-pattern>*.ma</url-pattern>
  </servlet-mapping>

Reply via email to