• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Hyperlinks!  RSS feed

 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to create a site that lists links to shared documents and automatically updates the list everytime a file is added to the shared document directory. I can use listfiles() to get all of the files in the directory, but I don't know how to create hyperlinks to the files and post them to the webpage with JSP. Any suggestions?
Thanks in Advance!
 
Irene Loos
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may store id, name of the document, and it's location in the database. Then in your jsp simply read it to collection, iterate, and display like that:

[ July 01, 2003: Message edited by: Irene Loos ]
[ July 01, 2003: Message edited by: Irene Loos ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!