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

V

vyshu

hi,
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="/existing_customer_entry.do"
paramId="theMap" paramProperty="key" paramName="mapEntry">
<bean:write name="mapEntry" property="value"/> </html:link>
</logic:iterate>

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
"/existing_customer_entry.do?theMap=id3"

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

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

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

request.getParameter("theMap");

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

any suggestions?

thanks in advance,
vysh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top