You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anand M S <an...@hotmail.com> on 2003/04/21 21:16:29 UTC

Dispatch action & input param

hi all,

I'm using dispatcch action class to combine two actions and calling action 
with the following URL

<html:form action="/jsp/fellowProfile.do?method=loadFellowProfile">, when I 
call this URL it's going to 'input' but not the action, this is the case 
with validation frame work, if I don't use validation then it works fine. 
can any body help me out??

Here is the config file

<action-mappings>
<action path="/jsp/fellowProfile"
  type="gov.nsf.apps.grfp.action.FellowProfileAction"
  				name="updateProfileForm"
  				input="/jsp/test.jsp"
  				scope="request"
  				parameter="method">

<forward name="loadProfileSuccess" path="/jsp/update_my_profile.jsp"/>
<forward name="updateProfileSuccess" path="/jsp/confirmation.jsp"/>
</action>
</action-mappings>





>From: "David Graham" <dg...@hotmail.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: struts-user@jakarta.apache.org
>Subject: Re: Struts Studio
>Date: Mon, 21 Apr 2003 13:05:58 -0600
>
>That's all that needs to be done.  Only committers can commit patches 
>uploaded to bugzilla.
>
>David
>
>
>
>>From: Igor Shabalov <ig...@exadel.com>
>>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>To: Struts Users Mailing List <st...@jakarta.apache.org>
>>Subject: Re: Struts Studio
>>Date: Mon, 21 Apr 2003 11:56:37 -0700
>>
>>
>>Thanks to Mohan Kishore â?? he has created the patch couple of weeks ago. 
>>See
>>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18725
>>I donâ??t know how to submit it. May be you can help?
>>
>>Thank you,
>>Igor.
>>http://www.exadel.com/products_strutsstudio.htm
>>
>>On Mon, 21 Apr 2003 13:54:48 -0400, James Mitchell <jm...@apache.org> 
>>wrote:
>>
>>>It would help if you submitted a patch (ok, we are lazy too ;)
>>>
>>>--
>>>James Mitchell
>>>Software Developer/Struts Evangelist
>>>http://www.open-tools.org
>>>
>>>
>>>
>>>----- Original Message -----
>>>From: "Igor Shabalov" <ig...@exadel.com>
>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>Sent: Monday, April 21, 2003 1:55 PM
>>>Subject: Re: Struts Studio
>>>
>>>
>>>>Thank you, David! Your opinion is very important for us.
>>>>
>>>>BTW, do anybody who reads this list knows why Struts Studio is still not
>>>>enlisted on Struts Resources page? Is something wrong with Struts Studio
>>>>itself or I need to do something special?
>>>>
>>>>Best,
>>>>Igor.
>>>>http://www.exadel.com/products_strutsstudio.htm
>>>>
>>>>
>>>>On Mon, 21 Apr 2003 11:32:26 -0600, David Graham 
>>>><dg...@hotmail.com>
>>>>wrote:
>>>>
>>>> >> Because we already had IDE. We just built new module.
>>>> >> Plugin for Eclipse should be available soon.
>>>> >
>>>> > Cool!  I'll check that out when it's released.
>>>> >
>>>> >>
>>>> >> >  I'm not going to give up my general
>>>> >> > purpose IDE for a Struts specific one.
>>>> >>
>>>> >> That is the problem. We can not make plugins for all existing IDEs.
>>>> >> Would you give up Netbeans or IDEA or JBuilder to use plugin for
>>>> >> Eclipse?
>>>> >> Would you consider installing new IDE just to try some plugin?
>>>> >
>>>> > It would be very difficult to convince me to not use Eclipse.
>>>> >
>>>> > David
>>>> >
>>>> > _________________________________________________________________
>>>> > Protect your PC - get McAfee.com VirusScan Online
>>>> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>>> >
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>>--
>>>>Igor Shabalov
>>>>Director of Engineering
>>>>Exadel Inc.
>>>>http://www.exadel.com
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>>--
>>Igor Shabalov
>>Director of Engineering
>>Exadel Inc.
>>http://www.exadel.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>
>
>_________________________________________________________________
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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


Re: Dispatch action & input param

Posted by Ian Hunter <ih...@hunterweb.net>.
Sounds like the validation is choking on some field.  What validation error
is being stored in ActionErrors?  Are you validating the "method" property
of the form or something like that?

Also, don't use "xxxx.do?param=value" for your action attribute -- that
won't work in two cases:

1)  if .do isn't the url mapping for struts (in the future, or if you decide
to change it)
2)  if the user doesn't allow cookies for session tracking

Anyway, it's cleaner to do this:

<html:form action "fellowProfile">
<html:hidden property="method" value="loadFellowProfile"/>
...


Does that make sense?

----- Original Message -----
From: "Anand M S" <an...@hotmail.com>
To: <st...@jakarta.apache.org>
Sent: Monday, April 21, 2003 3:16 PM
Subject: Dispatch action & input param



hi all,

I'm using dispatcch action class to combine two actions and calling action
with the following URL

<html:form action="/jsp/fellowProfile.do?method=loadFellowProfile">, when I
call this URL it's going to 'input' but not the action, this is the case
with validation frame work, if I don't use validation then it works fine.
can any body help me out??

Here is the config file

<action-mappings>
<action path="/jsp/fellowProfile"
  type="gov.nsf.apps.grfp.action.FellowProfileAction"
  name="updateProfileForm"
  input="/jsp/test.jsp"
  scope="request"
  parameter="method">

<forward name="loadProfileSuccess" path="/jsp/update_my_profile.jsp"/>
<forward name="updateProfileSuccess" path="/jsp/confirmation.jsp"/>
</action>
</action-mappings>



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