We can put our file say one.txt in txt folder available in tomcat->webapp folder. Now we can access this file in browser using url as below:
http://localhost:8080/txt/one.txt
I am new in glassfish server. Can anybody please tell me how to do same thing in glssfish server as in tomcat server?
By definition a ROOT application is the application that is available under the root url (e.g. http://locahost:8080/) of the server.
The only thing you have to do is to define an application that should be deployed under the root context. How to do this within glassfish can be found here.