Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

usage of <html:link> tag

 
abheeshek reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am displaying some value in a table with <logic:iterate>


Here is my requirement.

what ever the values i am getting in result i want to make those as links
and when user clicks on one of the value i want to get the value in my Action class.


How should i approach


Thanks
abhee
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is the approach, not the working code !!
 
abheeshek reddy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:
This is the approach, not the working code !!



What is this LinkList i am not able to understand.
is it collection object id or just id given to list.

More over i want to make it clear that " I am using only one action class for all the left pane links and i want to use the selected value in the sql query"

may i have the struts-config.xml mapping.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
abheeshek reddy wrote:
What is this LinkList i am not able to understand.
is it collection object id or just id given to list.

Its a list containing all the links.
You have to post here what are you trying to iterate on, Is it a list of links, as I guessed previously ?

 
Rupali Bankar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<logic:iterate id="result" name="TopicListForm" >
<tr>
<td>
<a href="./action name.do?value= <bean:write name="result" property="results"/>">View</a>
</td>
</tr>
</logic:iterate>

& in ActionClass getvalue by method request.getParameter("value");
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, to avoid specifying the action suffix (although it's more code):(This is from memory--might need to check the attribtue names.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic