This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes add my own context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "add my own context" Watch "add my own context" New topic
Author

add my own context

El Mostafa Jaouhar
Greenhorn

Joined: Dec 29, 2003
Posts: 1
I want to have as hypertext link for my server, http://localhost:8080/mydir/servlet/myServlet
I added a context called mydir, but it doesn't work!
can you helpme!


El Mostafa JAOUHAR<br />SCJP
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
For us to help, I think you'll need to tell us a bit more about what you are using, and what you have done so far.
  • Which servlet container?
  • Have you checked that it is installed and running right for other web applications? (does it have a "demo", for example?)
  • How have you "added a context", and where have you put it?
  • Did you know that the .../servlet/... style of mapping is not a good idea and has a lot of problems?
  • How have you arranged your files and directories in your new "context"
  • Do you have a WEB-INF/web.xml file, and if so, what does it contain?
  • anything else which might be of interest?


  • Thanks.


    Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
     
    Consider Paul's rocket mass heater.
     
    subject: add my own context
     
    Similar Threads
    JBoss - servlets/jsp
    Calling "/servlet/MyServlet" from HTML form
    unable to deploy servlets in tomcat
    problem with mapping using servletrunner
    Servlet Not Working