Meaningless Drivel is fun!*
The moose likes IDEs, Version Control and other tools and the fly likes How do I specify the URL that <F11> uses to launch my servlet under Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How do I specify the URL that <F11> uses to launch my servlet under Tomcat?" Watch "How do I specify the URL that <F11> uses to launch my servlet under Tomcat?" New topic
Author

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

Al Koch
Greenhorn

Joined: Aug 24, 2011
Posts: 23

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I specify the URL that <F11> uses to launch my servlet under Tomcat?
 
Similar Threads
How set "launch configuration" in Eclipse?
Running Servlet on Tomcat... Help :)
Eclipse 2.0 Rocks!!
help me deploy my webapp
How to specify a query string in servlet mapping?