Jump to: navigation, search

Difference between revisions of "Jetty WTP Plugin/Jetty WTP Modify ContextPath"

(New page: {{Jetty}} == How to Modify Context Path? == When WTP Dynamic Web Project mywebapp was created, teh context path used is teh name of this project (mywebapp). But it's possible to change t...)
 
m
Line 1: Line 1:
 
{{Jetty}}
 
{{Jetty}}
  
== How to Modify Context Path? ==
+
== Modifying a Context Path ==
  
When WTP Dynamic Web Project mywebapp was created, teh context path used is teh name of this project (mywebapp). But it's possible to change the contextPath name. To do that, open the launch and go at Modules tab. Select the mywebapp module and click on Edit button :
+
When the WTP Dynamic Web Project mywebapp was created, the context path used the name of this project (''mywebapp''). It is possible to change the contextPath name. To change a contextPath name, complete the following steps.
 +
<ol>
 +
<li>Open the launch and go to the Modules tab.  
 +
</li>
  
 
[[Image:Jetty-wtp-context1.jpg]]
 
[[Image:Jetty-wtp-context1.jpg]]
  
Change path with webapp :
 
  
  
[[Image:Jetty-wtp-context2.jpg]]
+
<li>Select the '''mywebapp''' module and click '''Edit'''.
 +
</li>The Edit Web Module dialog box opens.
  
  
Save the launch, start the server and now you can go at http://localhost:8080/webapp/
+
 
 +
[[Image:Jetty-wtp-context2.jpg]]
 +
 
 +
<li>Change the path to''' /webapp'''.
 +
<li>Click '''OK'''.
 +
<li>Save the launch and start the server.
 +
</li> Now you can open the web application at <nowiki> http://localhost;8080/webapp/. </nowiki)

Revision as of 17:57, 18 November 2010



Modifying a Context Path

When the WTP Dynamic Web Project mywebapp was created, the context path used the name of this project (mywebapp). It is possible to change the contextPath name. To change a contextPath name, complete the following steps.

  1. Open the launch and go to the Modules tab.
  2. Jetty-wtp-context1.jpg


  3. Select the mywebapp module and click Edit.
  4. The Edit Web Module dialog box opens.


    Jetty-wtp-context2.jpg

  5. Change the path to /webapp.
  6. Click OK.
  7. Save the launch and start the server.
  8. Now you can open the web application at http://localhost;8080/webapp/. </nowiki)