File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Database URL problem" Watch "Database URL problem" New topic

Database URL problem

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
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..
<td><b>Website Address:</b><a href="<%=website%>"> <%=website%></a>
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:
subject: Database URL problem
It's not a secret anymore!