I have created a new web project in netbeans and I am using glassfish server 3.x
the project name is myProject
how can I get my project name to display in the address bar of my browser when I click run. ie instead of
I want it to display,
the problem is that when I try to deploy a different application to glassfish I get an error that there is already an application deployed at that place of deployment. I wish there was an error message ti report but as yall can see this is just something I am overlooking. please help soon. thenks
are you using the javaee libraries and glassfish server?
You've got to do some mapping.
I am writing stuff like that now and I found that after Tomcat 4 you need to add some extra stuff to the web.xml file when writing the app.
look at this one.
if you call localhost:8080/Servlet1, this calls a goodie by the name of test and the goodie by the name of test is actually a servlet class called Servlet1
if you call localhost:8080/dogfood, this calls a goodie by the name of test and the goodie by the name of test is actually a servlet class called Servlet1
url-patterns leads to servlet-name which leads to servlet-class.