aspose file tools*
The moose likes Struts and the fly likes usage of <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 "usage of <html:link> tag" Watch "usage of <html:link> tag" New topic
Author

usage of <html:link> tag

abheeshek reddy
Ranch Hand

Joined: Nov 28, 2008
Posts: 41

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

Joined: Feb 19, 2008
Posts: 2902
    
    1


This is the approach, not the working code !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
abheeshek reddy
Ranch Hand

Joined: Nov 28, 2008
Posts: 41
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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

Joined: Mar 04, 2009
Posts: 3

<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

Joined: Sep 29, 2008
Posts: 12617

Or, to avoid specifying the action suffix (although it's more code):(This is from memory--might need to check the attribtue names.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: usage of <html:link> tag