Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

links in JSP

Status
Not open for further replies.

Khanjan

Programmer
Feb 24, 2004
41
0
0
NL
Hi everyone,

I have a table where i can store all mine links. When i am asking to show all of these links on my page, i get all of them to see.

But when i am clicking on the links , i cant go to that website. How should i handle this problem?

Here is the code , i use:
<%
db.DBConnectie data = new db.DBConnectie("afghan","fahim","fahim");
data.connect();
String query = "SELECT * FROM LINK Where linkid =2";
ResultSet columns = data.selectQuery(query);
while(columns.next()) {
String linkids = columns.getString("linkid");
String linknaams = columns.getString("linknaam");
String urls = columns.getString("url");
String type = columns.getString("linktype");

%>

......


<td>
<%=linknaams%><br>
<a href="<%=urls%>"><%=urls%></a> </td>

this does not works by click on url
 
Hi,

May be the URL is not correct. can you copy the output of the page where in you see the links.

Cheers
Venu
 
Hi,

The URL what you are storing in the DB might be wrong. Make sure you are storing the correct URL.


Cheers,
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top