aspose file tools*
The moose likes Struts and the fly likes Writing out string as hyperlink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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: 4727

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.
 
 
subject: Writing out string as hyperlink