struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Domingo A. Rodriguez S." <domingorodrig...@yahoo.com>
Subject Re: Problem with action chaining
Date Wed, 31 Dec 2003 12:10:16 GMT

Can you post the naughty class source code and the stack trace so we can
check the problem better?

Regards,
Domingo A. Rodriguez S.

 --- kavitac@mastek.com escribió: > Hi, 
> 
>  
> 
> I have a problem with action chaining. My action tag 
> 
> <action path="/producerCreate"
> 
>         type="com.epolicy.arch.brokerage.web.agency.AgencyAction"
> 
>         name="agencyForm"
> 
>         validate="true"
> 
>         parameter="create"
> 
>         scope="request">
> 
>     <forward name="create"                  path="agencyCreate.do"/>
> 
>     <forward name="find"                      path="agencyFind.do"/>
> 
>     <forward name="success"                 path="producerCreate.page"/>
> 
> </action>
> 
>  
> 
>  
> 
> forwards control to the following:
> 
>  
> 
> <action path="/agencyCreate"
> 
>         type="com.epolicy.arch.brokerage.web.agency.AgencyCreateAction"
> 
>         name="agencyCreateForm"
> 
>         validate="true"        
> 
>         scope="session">    
> 
>     <forward name="success"                 path="producerCreate.page"/>
> 
> </action>
> 
>  
> 
> Now AgencyCreateForm extends AgencyForm and AgencyCreateAction extends
> AgencyAction. 
> 
>  
> 
> When the derived class AgencyCreateAction tries to type cast the
> AgencyCreateForm in the execute() method, it throws a type cast
> exception. This is because no instance of AgencyCreateForm is created
> and it still persists the instance of AgencyForm. 
> 
>  
> 
> Can anyone guide me as to how I can resolve this problem. 
> 
>  
> 
> Regards,
> 
> Kavita C. 
> 
> -----Original Message-----
> From: struts-user-help@jakarta.apache.org
> [mailto:struts-user-help@jakarta.apache.org] 
> Sent: Wednesday, December 31, 2003 10:19 AM
> To: Kavita Cardoz
> Subject: WELCOME to struts-user@jakarta.apache.org
> 
>  
> 
> Hi! This is the ezmlm program. I'm managing the
> 
> struts-user@jakarta.apache.org mailing list.
> 
>  
> 
> I'm working for my owner, who can be reached
> 
> at struts-user-owner@jakarta.apache.org.
> 
>  
> 
> Acknowledgment: I have added the address
> 
>  
> 
>    kavitac@mastek.com
> 
>  
> 
> to the struts-user mailing list.
> 
>  
> 
> Welcome to struts-user@jakarta.apache.org!
> 
>  
> 
> Please save this message so that you know the address you are
> 
> subscribed under, in case you later want to unsubscribe or change your
> 
> subscription address.
> 
>  
> 
>  
> 
> --- Administrative commands for the struts-user list ---
> 
>  
> 
> I can handle administrative requests automatically. Please
> 
> do not send them to the list address! Instead, send
> 
> your message to the correct command address:
> 
>  
> 
> To subscribe to the list, send a message to:
> 
>    <struts-user-subscribe@jakarta.apache.org>
> 
>  
> 
> To remove your address from the list, send a message to:
> 
>    <struts-user-unsubscribe@jakarta.apache.org>
> 
>  
> 
> Send mail to the following for info and FAQ for this list:
> 
>    <struts-user-info@jakarta.apache.org>
> 
>    <struts-user-faq@jakarta.apache.org>
> 
>  
> 
> Similar addresses exist for the digest list:
> 
>    <struts-user-digest-subscribe@jakarta.apache.org>
> 
>    <struts-user-digest-unsubscribe@jakarta.apache.org>
> 
>  
> 
> To get messages 123 through 145 (a maximum of 100 per request), mail:
> 
>    <struts-user-get.123_145@jakarta.apache.org>
> 
>  
> 
> To get an index with subject and author for messages 123-456 , mail:
> 
>    <struts-user-index.123_456@jakarta.apache.org>
> 
>  
> 
> They are always returned as sets of 100, max 2000 per request,
> 
> so you'll actually get 100-499.
> 
>  
> 
> To receive all messages with the same subject as message 12345,
> 
> send an empty message to:
> 
>    <struts-user-thread.12345@jakarta.apache.org>
> 
>  
> 
> The messages do not really need to be empty, but I will ignore
> 
> their content. Only the ADDRESS you send to is important.
> 
>  
> 
> You can start a subscription for an alternate address,
> 
> for example "john@host.domain", just add a hyphen and your
> 
> address (with '=' instead of '@') after the command word:
> 
> <struts-user-subscribe-john=host.domain@jakarta.apache.org>
> 
>  
> 
> To stop subscription for this address, mail:
> 
> <struts-user-unsubscribe-john=host.domain@jakarta.apache.org>
> 
>  
> 
> In both cases, I'll send a confirmation message to that address. When
> 
> you receive it, simply reply to it to complete your subscription.
> 
>  
> 
> If despite following these instructions, you do not get the
> 
> desired results, please contact my owner at
> 
> struts-user-owner@jakarta.apache.org. Please be patient, my owner is a
> 
> lot slower than I am ;-)
> 
>  
> 
> --- Enclosed is a copy of the request I received.
> 
>  
> 
> Return-Path: <kavitac@mastek.com>
> 
> Received: (qmail 38403 invoked from network); 31 Dec 2003 04:49:08 -0000
> 
> Received: from unknown (HELO mumbai2.ezbroadnet.com) (203.124.136.26)
> 
>   by daedalus.apache.org with SMTP; 31 Dec 2003 04:49:08 -0000
> 
> Received: from ind-spz7gwy003.mastek.com (meghdoot.mastek.com
> [203.124.144.12])
> 
>             by mumbai2.ezbroadnet.com (8.11.7p1+Sun/8.11.7) with SMTP id
> hBV4k7A06598
> 
>             for
> <struts-user-sc.1072846060.jflhhfmpebcoegbcoahg-kavitac=mastek.com@jakar
> ta.apache.org>; Wed, 31 Dec 2003 10:16:07 +0530 (IST)
> 
> Received: FROM ind-spz7gwy002.mastek.com BY ind-spz7gwy003.mastek.com ;
> Wed Dec 31 10:16:36 2003 +0500
> 
> Received: from IND-SPZ7ECL001.mastek.com (unverified) by 
> 
>     ind-spz7gwy002.mastek.com (Content Technologies SMTPRS 4.3.12) with
> ESMTP 
> 
>     id <T66d831a57fac1020316bc@ind-spz7gwy002.mastek.com> for 
> 
>  
> <struts-user-sc.1072846060.jflhhfmpebcoegbcoahg-kavitac=mastek.com@jakar
> ta.apache.org>
> 
>    ; Wed, 31 Dec 2003 10:16:36 +0530
> 
> X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
> 
> content-class: urn:content-classes:message
> 
> MIME-Version: 1.0
> 
> Content-Type: multipart/alternative; 
> 
>     boundary="----_=_NextPart_001_01C3CF59.10A528F8"
> 
> Disposition-Notification-To: <kavitac@mastek.com>
> 
> Subject: RE: confirm subscribe to struts-user@jakarta.apache.org
> 
> Date: Wed, 31 Dec 2003 10:16:33 +0530
> 
> Message-ID:
> <2D5AECC918E55C40948F8723782A648E0208D900@IND-SPZ7ECL001.mastek.com>
> 
> X-MS-Has-Attach: 
> 
> X-MS-TNEF-Correlator: 
> 
> Thread-Topic: confirm subscribe to struts-user@jakarta.apache.org
> 
> Thread-Index: AcPPWOjsISsYE5GDRbixny8C3KbkqAAACKhA
> 
> From: <kavitac@mastek.com>
> 
> To:
> <struts-user-sc.1072846060.jflhhfmpebcoegbcoahg-kavitac=mastek.com@jakar
> ta.apache.org>
> 
> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> 
>  
> 
> This is a multi-part message in MIME format.
> 
>  
> 
> ------_=_NextPart_001_01C3CF59.10A528F8
> 
> Content-Type: text/plain; charset="us-ascii"
> 
> Content-Transfer-Encoding: quoted-printable
> 
>  
> 
> =20
> 
>  
> 
>  
> 
>  
> 
> MASTEK
> 
> "Making a valuable difference"
> 
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> 
> In the US, we're called MAJESCO
> 
>  
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~=
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Opinions expressed in this e-mail are those of the individual and not
> that =
> 
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Lim=
> 
> ited does not accept any responsibility or liability for it. This e-mail
> an=
> 
> d attachments (if any) transmitted with it are confidential and/or
> privileg=
> 
> ed and solely for the use of the intended person or entity to which it
> is a=
> 
> ddressed. Any review, re-transmission, dissemination or other use of or
> tak=
> 
> ing of any action in reliance upon this information by persons or
> entities =
> 
> other than the intended recipient is prohibited. This e-mail and its
> attach=
> 
> ments have been scanned for the presence of computer viruses. It is the
> res=
> 
> ponsibility of the recipient to run the virus check on e-mails and
> attachme=
> 
> nts before opening them. If you have received this e-mail in error,
> kindly =
> 
> delete this e-mail from all computers.
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~=
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>  
> 
>  
> 
> ------_=_NextPart_001_01C3CF59.10A528F8
> 
> Content-Type: text/html; charset="us-ascii"
> 
> Content-Transfer-Encoding: quoted-printable
> 
>  
> 
> <html>
> 
>  
> 
> <head>
> 
> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html;
> charset=3Dus-ascii">
> 
>  
> 
>  
> 
> <meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
> 
>  
> 
> <style>
> 
> <!--
> 
>  /* Font Definitions */
> 
>  @font-face
> 
>             {font-family:Garamond;
> 
>             panose-1:2 2 4 4 3 3 1 1 8 3;}
> 
>  /* Style Definitions */
> 
>  p.MsoNormal, li.MsoNormal, div.MsoNormal
> 
>             {margin:0in;
> 
>             margin-bottom:.0001pt;
> 
>             font-size:12.0pt;
> 
>             font-family:"Times New Roman";}
> 
> a:link, span.MsoHyperlink
> 
>             {color:blue;
> 
>             text-decoration:underline;}
> 
> a:visited, span.MsoHyperlinkFollowed
> 
>             {color:purple;
> 
>             text-decoration:underline;}
> 
> p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
> 
>             {margin:0in;
> 
>             margin-bottom:.0001pt;
> 
>             font-size:11.0pt;
> 
>             font-family:Garamond;
> 
>             color:navy;}
> 
> @page Section1
> 
>             {size:8.5in 11.0in;
> 
>             margin:.7in 124.45pt 1.0in 124.4pt;}
> 
> div.Section1
> 
>             {page:Section1;}
> 
> -->
> 
> </style>
> 
>  
> 
> </head>
> 
>  
> 
> <body lang=3DEN-US link=3Dblue vlink=3Dpurple>
> 
>  
> 
> <div class=3DSection1>
> 
>  
> 
> <p class=3DMsoPlainText><font size=3D2 color=3Dnavy
> face=3DGaramond><span
> 
> style=3D'font-size:11.0pt'>&nbsp;</span></font></p>
> 
>  
> 
> </div>
> 
>  
> 
> <FONT SIZE=3D3><BR>
> 
> <BR>
> 
> MASTEK<BR>
> 
> "Making a valuable difference"<BR>
> 
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.<BR>
> 
> In the US, we're called MAJESCO<BR>
> 
> <BR>
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~=
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
> 
> Opinions expressed in this e-mail are those of the individual and not
> that =
> 
> of Mastek Limited, unless specifically indicated to that effect. Mastek
> Lim=
> 
> ited does not accept any responsibility or liability for it. This e-mail
> an=
> 
> d attachments (if any) transmitted with it are confidential and/or
> privileg=
> 
> ed and solely for the use of the intended person or entity to which it
> is a=
> 
> ddressed. Any review, re-transmission, dissemination or other use of or
> tak=
> 
> ing of any action in reliance upon this information by persons or
> entities =
> 
> other than the intended recipient is prohibited. This e-mail and its
> attach=
> 
> ments have been scanned for the presence of computer viruses. It is the
> res=
> 
> ponsibility of the recipient to run the virus check on e-mails and
> attachme=
> 
> nts before opening them. If you have received this e-mail in error,
> kindly =
> 
> delete this e-mail from all computers.<BR>
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~=
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
> 
> </FONT>
> 
> </body>
> 
>  
> 
> </html>
> 
>  
> 
> ------_=_NextPart_001_01C3CF59.10A528F8--
> 
> 
> 
> MASTEK
> "Making a valuable difference"
> Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCO
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Opinions expressed in this e-mail are those of the individual and not
> that of Mastek Limited, unless specifically indicated to that effect.
> Mastek Limited does not accept any responsibility or liability for it.
> This e-mail and attachments (if any) transmitted with it are
> confidential and/or privileged and solely for the use of the intended
> person or entity to which it is addressed. Any review, re-transmission,
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended
> recipient is prohibited. This e-mail and its attachments have been
> scanned for the presence of computer viruses. It is the responsibility
> of the recipient to run the virus check on e-mails and attachments
> before opening them. If you have received this e-mail in error, kindly
> delete this e-mail from all computers.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
>  

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message