This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Hyperlink Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Hyperlink Question" Watch "Hyperlink Question" New topic
Author

Hyperlink Question

nash avin
Ranch Hand

Joined: Nov 13, 2003
Posts: 96
Hi,
I was wondering why this below code dosent show anything on the web browser.Kindly let me know.



I want to get a link on each value coming from the database by this

Help would be greatly appreciated.

AS
[ July 15, 2004: Message edited by: Bear Bibeault ]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Looks good to me. Of course, you've only given us two lines to look at ... but oh well. Maybe you're using a different version of JSP that doesn't allow you to put expressions inside tags (like JSP documents in JSP 2.0).


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Or maybe rs.getString(1) is empty or null, so you can't see the link on the webpage even though your code is working correctly.
nash avin
Ranch Hand

Joined: Nov 13, 2003
Posts: 96
Thanks for the reply.The rs.getString(1) is not empty because it works when it is used all by itself



I also observed that this below code gives SQL Exception



Error:::

Error SQL: java.sql.SQLException: No data found


The complete code is given below,




Hope that you will help me out.Help would be appreciated.

Thanks
AS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hyperlink Question
 
Similar Threads
req.getParameterValues returning null
PreparedStatement
JSP Syntax Problem
form handling in jsp
Multiple forms in a single JSP page