• 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

How do I specify the URL that <F11> uses to launch my servlet under Tomcat?

 
Ranch Hand
Posts: 72
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am running Eclipse Indigo with the Sysdeo plugin against Tomcat. My servlet is running fine but I'd like to specify the URL submitted to to Tomcat to launch the servlet. Currently, when I press <F11> something (Eclipse? Sysdeo?) launches Tomcat and starts my servlet with http://localhost/MainClassName/run/*; I can see this in the address bar of the native browser. However, what I need to launch with is (append the "?p=123")" http://localhost/MainClassName/run?p=123.

As I understand it, a <servlet-mapping> entry in web.xml tells Tomcat what servlet to launch when it receives a particular URL (like http://localhost/MainClassName/run/*) but that isn't quite what I need. I need to have a different URL be used (http://localhost/MainClassName/run?p=123).

I don't know if this is controlled by a setting in Eclipse or in Sysdeo (or something else). Can someone tell me how to do this (or suggest another place to post this question)?

Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic