aspose file tools*
The moose likes Servlets and the fly likes instead of  http://IP:portno/Dir/servlet / how can i use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "instead of  http://IP:portno/Dir/servlet / how can i use"something.com"" Watch "instead of  http://IP:portno/Dir/servlet / how can i use"something.com"" New topic
Author

instead of http://IP:portno/Dir/servlet / how can i use"something.com"

susanth puthanveedu
Greenhorn

Joined: Apr 03, 2006
Posts: 6
hi all

Here in my web application each time after the deployment i have to type the "http://IP ortno/Dir/servlet/someServlet".instead of this is there any way to give a domain name as the substitute to this.(for my application i am using ecipse and tomacat server)

thanks in advance
susanth
abhijit Ohal
Ranch Hand

Joined: Mar 10, 2006
Posts: 64
For this u need a virtual Directory in that put your application code.

also make entry in C:\WINDOWS\system32\drivers\etc\hosts.txt
eg.
ip addtess abcd.net

then hit abcd.net via IIS it get redirected to your application
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you want to publish your app (make it available on the internet), you'll need to register a domain name and either have the registrar point that domain to your IP or pay for commercial hosting if you don't have a static IP number.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: instead of http://IP:portno/Dir/servlet / how can i use"something.com"
 
Similar Threads
unable to log ...
servlet problem
Problem running servlets in weblogic
Servlets not running on web server
Using a jar inside my application