You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by shankarr <sh...@adventnet.com> on 2004/05/26 09:09:30 UTC
LookUpDispatchAction :does not contain handler parameter named ...
Hi!
I am getting an exception which reads like this : *:does not contain
handler parameter named empfieldsaction
*
I have the following jsp.
<html:form action="StartCustomFieldCreation.do">
<input type = hidden name="module" value="Leads" >
Leads Custom Fields <html:submit property="empfieldsaction">
</html:submit>
</html:form>
<br>
My struts-config-temp.xml entry is :
<action path="/StartCustomFieldCreation"
type="com.adventnet.hrms.action.DataTypePopulateAction"
name="fieldDetailsForm"
scope="request"
parameter="empfieldsaction">
<forward name="addnewfield" path="hrms.field_datatype"/>
</action>
I use partitioned struts-config.xml file .
In the particular case, I have used struts-config-temp.xml file
StartCustomFieldCreation.do invokes a LookupDispatchAction.
PLease help.
*Richie*
Re: LookUpDispatchAction :does not contain handler parameter named ...
Posted by Riyad Kalla <rs...@email.arizona.edu>.
I agree, it drove me nuts so I switched to using MappingDispatchAction and it
turned out to be exactly what I wanted. Same idea behind the DispatchActions,
but you specify the method name in the "parameter" field... can't get more
straight forward than that ;)
On Wednesday 26 May 2004 01:04 pm, Rick Reumann wrote:
> shankarr wrote:
> > Hi!
> >
> > I am getting an exception which reads like this : *:does not contain
> > handler parameter named empfieldsaction
> > *
> > I have the following jsp.
> >
> > <html:form action="StartCustomFieldCreation.do">
> > <input type = hidden name="module" value="Leads" >
> > Leads Custom Fields <html:submit property="empfieldsaction">
> > </html:submit>
> > </html:form>
> > <br>
>
> I hate the LookupDispatchAction compared to the regular DispatchAction.
> I started out using it thinking it would be nice, but down the line it
> ends up being a pain, more so from the standpoint of being "unituitive."
> For example later on you might want to pass in a parameter through
> javascript or a url to the same LookupDispatchAction... well now you
> have to make a "button name" for it in your resources file just so you
> can get the lookupDispatchAction can work correctly. It gets annoying in
> my opinion. I understand the concept of the LookupDispatchAction and for
> simple cases it's fine. Ayway, I digress...
>
> What are you passing in for the value of empfieldsaction? You have to
> make sure that both that value is found as the key in your map in your
> LookupDispatchAction and also there is key/value for it in your
> resources file.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: LookUpDispatchAction :does not contain handler parameter named
...
Posted by Rick Reumann <st...@reumann.net>.
shankarr wrote:
> Hi!
>
> I am getting an exception which reads like this : *:does not contain
> handler parameter named empfieldsaction
> *
> I have the following jsp.
>
> <html:form action="StartCustomFieldCreation.do">
> <input type = hidden name="module" value="Leads" >
> Leads Custom Fields <html:submit property="empfieldsaction">
> </html:submit>
> </html:form>
> <br>
I hate the LookupDispatchAction compared to the regular DispatchAction.
I started out using it thinking it would be nice, but down the line it
ends up being a pain, more so from the standpoint of being "unituitive."
For example later on you might want to pass in a parameter through
javascript or a url to the same LookupDispatchAction... well now you
have to make a "button name" for it in your resources file just so you
can get the lookupDispatchAction can work correctly. It gets annoying in
my opinion. I understand the concept of the LookupDispatchAction and for
simple cases it's fine. Ayway, I digress...
What are you passing in for the value of empfieldsaction? You have to
make sure that both that value is found as the key in your map in your
LookupDispatchAction and also there is key/value for it in your
resources file.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org