Struts: adding parameter to html:link element
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Khalid_Ali
Posted On:   Tuesday, February 3, 2004 09:07 PM

Hi guys, I hope some one can guide me in the right direction < I have an Action class that creates a HashMap of some results, I display these results in the jsp page creating html anchor tags There are 2 values in hashmap one is the links description and the other is the id to the resource I am thinking of gettting something like this done ' forward="showDetail"> Where I iterate thu the map object and create links. my ssincere hope for me is to get something like this from the above href="articlesPage.jsp?articleId=542632" so that I can display the artcile by using the action class I'll   More>>

Hi guys,
I hope some one can guide me in the right direction <

I have an Action class that creates a HashMap of some results,
I display these results in the jsp page creating html anchor tags

There are 2 values in hashmap one is the links description and the other is the id to the resource


I am thinking of gettting something like this done

			

' forward="showDetail">



Where I iterate thu the map object and create links.

my ssincere hope for me is to get something like this from the above

href="articlesPage.jsp?articleId=542632"


so that I can display the artcile by using the action class
I'll be very very thank full for any guidance.

Now is there any possible way to follow the same logic and get this done.    <<Less
About | Sitemap | Contact