Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How set "launch configuration" in Eclipse?(Need to launch servlet with a URL containing a Query String.)
How set "launch configuration" in Eclipse? [message #718635] Wed, 24 August 2011 18:27
AlKoch Mising name is currently offline AlKoch Mising name
Messages: 7
Registered: August 2011
Junior Member
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.
Previous Topic:Debug Session Bean
Next Topic:Can't set modifier to Method declaration
Goto Forum:
  


Current Time: Wed Aug 20 12:50:22 EDT 2014

Powered by FUDForum. Page generated in 0.01549 seconds