• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing out string as hyperlink

 
Ling Chung
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic