• 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

URL Rewrite

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was wondering how I can rewrite a URL based on a SQL query.

What I want to do is the following. I have a requirements application running on tomcat. To access a specific project directly, users must type the following url:

http://localhost:8080/contour/perspective.req?projectID=31

However, users do not know this projectID. So, I would like to replace projectID with another value, known to the user, so that users may type the following URL, for example:

http://localhost:8080/contour/id=31098

So I need whatever way so that when users type this URL, an SQL query can retrieve the projectID from a MySQL database and rewrite the URL. How can I accomplish that?

Thanks,
 
Tell me how it all turns out. Here is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic