• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

hyperlink the data from database

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all!

i have a problem. i'm making a dynamic web project where we can key in info about employees and displaying info about the employee. I'm using jsp and servlets and the database using postgresql.

now i'm stuck at the part where i need to retrieve the names of the employees and set it as a clickable hyperlink. when we click on the names (retrieved from database)...will lead to a page about his/her profile - info about name, department, position..etc

can anybody tell me how to go about that? i'll give my code if you'd like, but i had just done the retrieving info and put it in a table. which is not practical if theres a lot of data.

thanks in advance and i hope i made it clear
 
Ranch Hand
Posts: 477
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use the anchor tag.
 
nasha shaharan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank for the pointer.
but that seems to be hard-coded. i need to know how to display all the names from the database and make them clickable like a hyperlink. how can i do that?
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

does this solve your problem.
 
nasha shaharan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bad gateway.

anybody else? please help, thanks.
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic