aspose file tools*
The moose likes Struts and the fly likes Parameter Passing through <html:link> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Parameter Passing through <html:link> tag" Watch "Parameter Passing through <html:link> tag" New topic
Author

Parameter Passing through <html:link> tag

Steve Adam
Ranch Hand

Joined: Jan 07, 2009
Posts: 40
Hi
I want to pass a parameter through url in my <html:link action=" ... "> tag.

I have the following code inside 'while' loop which displays multiple results and each result will have a link. On clicking every link, respective parameter for that link should be passed.

Here is my code:


On the browser, my url becomes,

http://localhost:8080/KunProject/kunAction.do?parameter='<%=kunActionForm.getNameID()%>'

How can I modify <html:link> tag to retrieve the value of "kunActionForm.getNameID()" ???

Please help !!


Its not what you do, its how well you do it.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameter Passing through <html:link> tag