Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JSP
Need to display results from the Database with hyperlink functionality
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 57
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It would be something like this:
<td><a href="<%=properties.get(rs.getString(1))%>"><%=rs.getString(1)%></a></td>
and define your links in the properties file.
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you very much , i will try this and let you know.
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<td><a href="<tr> <td><%= user.getUid() %></td> <td><%= user.getFirstName() %></td> <td><%= user.getLastName() %></td> <td><%= user.getEmail() %></td> <td><%= user.getPhone() %></td> </tr>></a></td>
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
Posts: 2458
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The 'href' attribute of the HTML <a> element should point to a valid URL rather than some piece of plain HTML.
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
] [
About Bear
] [
Books by Bear
]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
hyperlink calls database
Request scope vs. Session scope.
How can a rownum help in implementing Pagination
Help with a gui requirement
Variable Number of Table Rows
More...