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
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