My bad. You are right its deprecated. Thanks


-----Original Message-----
From: Alok Pota [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 12:28 PM
To: Struts Users Mailing List
Subject: RE: Newbie struts-blank question.


I'm using the perform method with the following signature.

perform(ActionMapping mapping, ActionForm form, HttpServletRequest
request,HttpServletResponse response)


Two perform methods that use ActionServlet as one of their arguments have
been deprecated. The one I am using has
not been deprecated.



-----Original Message-----
From: Khalid K. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 12:23 PM
To: Struts Users Mailing List
Subject: Re: Newbie struts-blank question.


what version of Struts are you using?
I believe the "perform" method is deprecated in 1.1-b*
checkout the javadocs

http://jakarta.apache.org/struts/

Khalid


----- Original Message -----
From: "Alok Pota" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 10:17 AM
Subject: Newbie struts-blank question.


> I have a simple application built on top of the struts-blank template. The
> app consist of a simple jsp, action class, action form class trilogy to
get
> my hands wet.
>
> I noticed that for some reason, the perform(..) method of the action class
> never gets called.
>
>
> So I decided to extend ActionServlet and put System.out.println in the
> code..
>
> public class TestActionServlet extends ActionServlet {
>
> protected Action processActionCreate(ActionMapping mapping,
> HttpServletRequest request) {
>         Action act = super.processActionCreate(mapping, request);
>         System.out.println("Action identified >>>>>>>>>>>>>>>>>>>>>"+act);
>         return act;
>     }
>
>     public void doGet(HttpServletRequest request, HttpServletResponse
> response)
>          throws IOException, ServletException {
>
>          System.out.println("doGEt called <<<<<<<<<<<<<<<<<<<<<<<<<<<< ");
>          super.doGet(request, response);
>
>     }
>
> }
>
>
> Looking at the console print out I found that
> processActionCreate(ActionMapping mapping, HttpServletRequest request) {
> never gets called.
>
> I double checked the URL that I am calling the URL is
> http://localhost:80/app/submit.do and following are my XML files...
>
> ==================================
> struts-config.xml
> ==================================
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE struts-config PUBLIC
>           "-//Apache Software Foundation//DTD Struts Configuration
1.0//EN"
>           "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> <struts-config>
>   <!-- ========== Form Bean Definitions
> =================================== -->
>   <form-beans>
>     <form-bean name="submitForm" type="SubmitForm"/>
>   </form-beans>
>   <!-- ========== Action Mapping Definitions
> ============================== -->
>   <action-mappings>
>      <action  path="/submit"
>               type="SubmitAction"
>               name="submitForm"
>               input="/submit.jsp"
>               scope="request">
>     <forward name="success" path="/submit.jsp"/>
>     <forward name="failure" path="/submit.jsp"/>
>     </action>
>   </action-mappings>
> </struts-config>
>
> ==========================
> web.xml
> ==========================
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
>
>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>
>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> <web-app>
>   <!-- Standard Action Servlet Configuration (with debugging) -->
>
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>TestActionServlet</servlet-class>
>     <init-param>
>       <param-name>application</param-name>
>       <param-value>ApplicationResources</param-value>
>     </init-param>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml</param-value>
>     </init-param>
>     <init-param>
>       <param-name>debug</param-name>
>       <param-value>2</param-value>
>     </init-param>
>     <init-param>
>       <param-name>detail</param-name>
>       <param-value>2</param-value>
>     </init-param>
>     <init-param>
>       <param-name>validate</param-name>
>       <param-value>true</param-value>
>     </init-param>
>     <load-on-startup>2</load-on-startup>
>   </servlet>
>
>   <!-- Standard Action Servlet Mapping -->
>
>   <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>*.do</url-pattern>
>   </servlet-mapping>
>
>   <!-- Struts Tag Library Descriptors -->
>
>   <taglib>
>     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>   </taglib>
>
>   <taglib>
>     <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>   </taglib>
> </web-app>
>
>
> >From whatever little knowldege of Struts I have, I believe the that .do
> suffix should be stripped by struts and the
> /submit action be translated to instantiate (if necessary) the
SubmitAction
> class. However, this class never gets
> instantiated.
>
> -Pls advice
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to