*
The moose likes JSP and the fly likes Need to display results from the Database with hyperlink functionality Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Need to display results from the Database with hyperlink functionality" Watch "Need to display results from the Database with hyperlink functionality" New topic
Author

Need to display results from the Database with hyperlink functionality

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212

On to search form , clicking on a search button , we need to display results from the database.

But the Problem is that each row displayed must be a Hyperlink (Providing the facility to update by clicking on

the hyperlink record)

Please suggest any ideas how to put hyperlink for each record displayed on the page.


Thanks .
Aman Singh
Ranch Hand

Joined: Oct 30, 2008
Posts: 57
It would be something like this:



and define your links in the properties file.
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Thank you very much , i will try this and let you know.
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212


I make data print inside the Hyperlink .

Now how can keep a onclick on this row so that the appropiate row will be opened with the row displayed ??

Any ideas please suggest.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
The 'href' attribute of the HTML <a> element should point to a valid URL rather than some piece of plain HTML.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Before you begin to even think of what the JSP should do, you need to figure out what the valid HTML result needs to be.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to display results from the Database with hyperlink functionality