This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I'm trying to call a servlet from an applet. It's working at the moment, but the applet is in the web module which also contains the servlet. I would like to put the applet in my normal htdocs folder, as I'm trying to implement http tunneling. The applet must therefore be called via port 80, from a normal html page. At the moment, the applet finds the servlet address by using getCodeBase(). I'd like to just use (my website URL + /servlet/ + servletName) to form the servlet URL. However, in my local tests, I can't get my servlets to display using, eg. http://localhost/servlet/myServlet. Instead, I must use http://localhost:8080/myWebModule/myServlet What must I do to make "/servlet/" work? Am I right in thinking that it would be a mistake to hardcode the port number, as it might not always be the same? Do I need to include the name of the web module in the servlet URL? (e.g. http://localhost/servlet/myWebModule/myServlet) Needless to say, I have tried this and it didn't work... I'm testing using Eclipse with the Lomboz plug-in. Thanks for guidance! J [ March 08, 2004: Message edited by: joseph corner ]