Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to retrive the prameters of the url while using <html:link> in struts?

Thread Tools

How to retrive the prameters of the url while using <html:link> in struts?

Posts: n/a
To start with,i will first explain my situation.
I am iterating a map and printing the values as links using the
<html:link> tag.
this is my code,
<bean:define name="usersession" property="theMap" id="myMap" />
<logic:iterate id="mapEntry" name="myMap" >
<html:link page="/"
paramId="theMap" paramProperty="key" paramName="mapEntry">
<bean:write name="mapEntry" property="value"/> </html:link>

when the user click on the link i need to pass the value of the "key"
attribute to my action servlet.
Here the key attribute is passed through the url as

I am using the page attribute.I hav configured my struts-config.xml as

<action path="/existing_customer_entry" name="CustomeridForm"
<forward name="customer_entry" path="/pages/customer_entry.jsp"/>

and in the action servlet "CustomeridAction" i am trying to retrive
the value of the "theMap" as


but its not giving the desired result.i think the action servlet
itself is not called here.

any suggestions?

thanks in advance,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
retrive TTL using JNDI DNS service provider for SRV records Suresh Java 0 06-02-2006 12:43 PM
Passing prameters Kishore ASP General 1 02-10-2005 02:14 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
using Command to set Parameters and Recordset to retrive the Query Bruno Alexandre ASP General 5 03-03-2004 04:41 PM