• Post Reply Bookmark Topic Watch Topic
  • New Topic

hyperlink the data from database

 
nasha shaharan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the anchor tag.
 
nasha shaharan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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?
 
Hemant Thard
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

does this solve your problem.
 
nasha shaharan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bad gateway.

anybody else? please help, thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!