How set "launch configuration" in Eclipse? [message #718635] |
Wed, 24 August 2011 22:27 |
Eclipse User |
|
|
|
Hello,
I am running Eclipse Indigo against Tomcat. My servlet is running fine but I'd like to specify a "launch configuration" so that the starting URL submitted to to Tomcat has a Query String.
My web.xml specifies:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.domainname.projectname.MainClassName</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/run/*</url-pattern>
</servlet-mapping>
When I run the servlet in Eclipse (<F11>) I see the URL of the native browser comes up as:
http: // localhost / MainClassName / run/*
However, what I need to launch with is (append the "?p=123")"
http: // localhost / MainClassName / run?p=123
I've experimented with<url-pattern> in web.xml. In addition, I have also tried using the Project's Properties' Run/Debug Settings. Either these are not the right way to do this or I am using them wrong.
Can someone tell me how to get Eclipse to launch with the URL above?
Thank you.
|
|
|
Powered by
FUDForum. Page generated in 0.04284 seconds