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.
My question is that suppose we have created one html page which contains the following line - "invoke the servlet" in href tag like this line no.1) <a href "http://localhost:8080/servlet/abcservlet">invoke the servlet</a> where: 'abcservlet' is the name of a servlet. My html page on local host works fine but if i have to host this page on internet i.e on one server then will there be any change in 'line no. 1' (i.e <a href ...> ) or not .If yes then what changes are to be made. And my second question is : where to keep html pages and images which are calling/invoking the servlets i.e is it necessary to keep these files in public_html directory of java web server. Or there is any other way out Thanx. Waiting for ur reply. Swati
From "/servlet/abcServlet" onwards it will be same whereever you deploy. But in [****]/servlet/abcServlet format, the [****] part will differ if you deploy in another server. It could be http://www.webappcabaret.com/swati/ for the [****] part where www.webappcabaret.com is the host where you deploy your appln and "swati" is the ServletContext name. regds maha anna