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" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@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 <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: href
Date: Fri, 3 Feb 2006 10:18:57 -0800

On 2/3/06, fea jabi <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to