File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Writing out string as hyperlink Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Writing out string as hyperlink" Watch "Writing out string as hyperlink" New topic
Author

Writing out string as hyperlink

Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39
Hello,

i have a class called Link, it represents a link to another website to be displayed in my application. The Link class has two attributes, name and location. Name represents the name of the link and location represents the url.

I have a form that contains all the links, i do an iterate over them. i write out the name using bean write. How can i write the String location in a way that it will represent a hyperlink. I tried :
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4725

There is no reason to use html:link here.

Use the regular anchor tags from html so you can put the bean tags wherever you want.


A good workman is known by his tools.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Writing out string as hyperlink
 
Similar Threads
html:link tag ------- urgent
Problem showing html:link in jsp
assign string to an extern page !!!!!!
Problem with html:link paramName and paramId
Help with html:link