wood burning stoves 2.0*
The moose likes Servlets and the fly likes Database URL problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Database URL problem" Watch "Database URL problem" New topic
Author

Database URL problem

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Hi,
I'm getting some stuff from a database and one of the fields is a website address. I want it to open a blank (target="_blank") when the user clicks on it. Problem is that I have a problem putting the target=_blank thingy. here is the stuff from the db..
<code>
<td><b>Website Address:</b><a href="<%=website%>"> <%=website%></a>
</code>
So where do I put the target="_blank here>
Thanks for your help in advance.
[This message has been edited by ernest fakudze (edited November 09, 2001).]


In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

target is an attribute of the <a > tag. So it goes right beside the href attribute.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database URL problem
 
Similar Threads
Trouble connecting to MS Access via ODBC
HTML Parser for Java
Getting distinct Values from XML using XPath
Navigation Problem - URL not updated
SOS, "IO exception: The Network Adaptor could not establish the connection." ?