You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/02/03 16:46:10 UTC
href
Have an a link in my JSP. When user presses the link I would like to delete
that row in the LookupDispatchAction.
I tried to do this using the below code.
But getting error
javax.servlet.ServletException: Request[/DispatchCust] does not contain
handler parameter named 'method'. This may be caused by whitespace in the
label text.
can I use the <bean:message> for this?
Or is there a better way to do this?
need to pass the row attribute
<a href="DispatchCust.do?row=${row}">
<bean:message key="delete" property="method"/>
</a>
Thanks.
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: href
Posted by fea jabi <zy...@hotmail.com>.
Got it working finally by using the actual String of the link directly in
the url instead of trying to get from resource bundle.
Used method=Delete directly in the url instead of method=delete.
i.e
<a href="DispatchCust.do?method=Delete&row=${row}">
<bean:message key="delete" property="method"/>
</a>
Thanks.
>From: "fea jabi" <zy...@hotmail.com>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: user@struts.apache.org
>Subject: Re: href
>Date: Fri, 03 Feb 2006 14:07:24 -0500
>
>thanks for responding
>
>now gave
><a href="DispatchCust.do?method=delete&row=${row}">
> <bean:message key="delete" property="method"/>
></a>
>
>My lookupaction does have the mapkey
>
> protected Map getKeyMethodMap() {
> Map map = new HashMap();
> map.put("btn.save", "save");
> map.put("btn.return", "returnDep");
> map.put("delete", "deleteCust");
> return map;
> }
>
>but Now getting the below error.
>
>missing resource 'delete' in key method map
>
>What else is missing?
>
>Thanks.
>
>
>
>
>>From: Michael Jouravlev <jm...@gmail.com>
>>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>>To: Struts Users Mailing List <us...@struts.apache.org>
>>Subject: Re: href
>>Date: Fri, 3 Feb 2006 10:18:57 -0800
>>
>>On 2/3/06, fea jabi <zy...@hotmail.com> wrote:
>> > Have an a link in my JSP. When user presses the link I would like to
>>delete
>> > that row in the LookupDispatchAction.
>> >
>> > I tried to do this using the below code.
>> >
>> > But getting error
>> > javax.servlet.ServletException: Request[/DispatchCust] does not contain
>> > handler parameter named 'method'. This may be caused by whitespace in
>>the
>> > label text.
>> >
>> > can I use the <bean:message> for this?
>> >
>> > Or is there a better way to do this?
>> >
>> > need to pass the row attribute
>> >
>> >
>> > <a href="DispatchCust.do?row=${row}">
>> > <bean:message key="delete" property="method"/>
>> > </a>
>> >
>> > Thanks.
>>
>>Try this: <a href="DispatchCust.do?method=delete&row=${row}">...</a>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today - it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: href
Posted by fea jabi <zy...@hotmail.com>.
can anyone helpme with this please?
Thanks.
>From: "fea jabi" <zy...@hotmail.com>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: user@struts.apache.org
>Subject: Re: href
>Date: Fri, 03 Feb 2006 14:07:24 -0500
>
>thanks for responding
>
>now gave
><a href="DispatchCust.do?method=delete&row=${row}">
> <bean:message key="delete" property="method"/>
></a>
>
>My lookupaction does have the mapkey
>
> protected Map getKeyMethodMap() {
> Map map = new HashMap();
> map.put("btn.save", "save");
> map.put("btn.return", "returnDep");
> map.put("delete", "deleteCust");
> return map;
> }
>
>but Now getting the below error.
>
>missing resource 'delete' in key method map
>
>What else is missing?
>
>Thanks.
>
>
>
>
>>From: Michael Jouravlev <jm...@gmail.com>
>>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>>To: Struts Users Mailing List <us...@struts.apache.org>
>>Subject: Re: href
>>Date: Fri, 3 Feb 2006 10:18:57 -0800
>>
>>On 2/3/06, fea jabi <zy...@hotmail.com> wrote:
>> > Have an a link in my JSP. When user presses the link I would like to
>>delete
>> > that row in the LookupDispatchAction.
>> >
>> > I tried to do this using the below code.
>> >
>> > But getting error
>> > javax.servlet.ServletException: Request[/DispatchCust] does not contain
>> > handler parameter named 'method'. This may be caused by whitespace in
>>the
>> > label text.
>> >
>> > can I use the <bean:message> for this?
>> >
>> > Or is there a better way to do this?
>> >
>> > need to pass the row attribute
>> >
>> >
>> > <a href="DispatchCust.do?row=${row}">
>> > <bean:message key="delete" property="method"/>
>> > </a>
>> >
>> > Thanks.
>>
>>Try this: <a href="DispatchCust.do?method=delete&row=${row}">...</a>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today - it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: href
Posted by fea jabi <zy...@hotmail.com>.
thanks for responding
now gave
<a href="DispatchCust.do?method=delete&row=${row}">
<bean:message key="delete" property="method"/>
</a>
My lookupaction does have the mapkey
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("btn.save", "save");
map.put("btn.return", "returnDep");
map.put("delete", "deleteCust");
return map;
}
but Now getting the below error.
missing resource 'delete' in key method map
What else is missing?
Thanks.
>From: Michael Jouravlev <jm...@gmail.com>
>Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
>To: Struts Users Mailing List <us...@struts.apache.org>
>Subject: Re: href
>Date: Fri, 3 Feb 2006 10:18:57 -0800
>
>On 2/3/06, fea jabi <zy...@hotmail.com> wrote:
> > Have an a link in my JSP. When user presses the link I would like to
>delete
> > that row in the LookupDispatchAction.
> >
> > I tried to do this using the below code.
> >
> > But getting error
> > javax.servlet.ServletException: Request[/DispatchCust] does not contain
> > handler parameter named 'method'. This may be caused by whitespace in
>the
> > label text.
> >
> > can I use the <bean:message> for this?
> >
> > Or is there a better way to do this?
> >
> > need to pass the row attribute
> >
> >
> > <a href="DispatchCust.do?row=${row}">
> > <bean:message key="delete" property="method"/>
> > </a>
> >
> > Thanks.
>
>Try this: <a href="DispatchCust.do?method=delete&row=${row}">...</a>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: href
Posted by Michael Jouravlev <jm...@gmail.com>.
On 2/3/06, fea jabi <zy...@hotmail.com> wrote:
> Have an a link in my JSP. When user presses the link I would like to delete
> that row in the LookupDispatchAction.
>
> I tried to do this using the below code.
>
> But getting error
> javax.servlet.ServletException: Request[/DispatchCust] does not contain
> handler parameter named 'method'. This may be caused by whitespace in the
> label text.
>
> can I use the <bean:message> for this?
>
> Or is there a better way to do this?
>
> need to pass the row attribute
>
>
> <a href="DispatchCust.do?row=${row}">
> <bean:message key="delete" property="method"/>
> </a>
>
> Thanks.
Try this: <a href="DispatchCust.do?method=delete&row=${row}">...</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org