Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Right-click on the SampleWAR project and select Properties. Go to J2EE Module Dependencies and select the checkbox next to SampleEJB.jar (it's in the J2EE Modules tab) and click OK.
    Image Removed
    Image Added

  2. Right-click on the SampleWAR project and select New -> Servlet and fill it in with the following values:
    Section
    • Java Package: sampleear
    • Class name: MyServlet




  3. Click Next.
  4. Change the URL Mapping section so the servlet serves at /sayHello url mapping and click Finish.


...