This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Writing out string as hyperlink" Watch "Writing out string as hyperlink" New topic

Writing out string as hyperlink

Ling Chung
Ranch Hand

Joined: Mar 29, 2004
Posts: 39

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

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.
I agree. Here's the link:
subject: Writing out string as hyperlink
It's not a secret anymore!