Forcing Eclipse webapp home page when debugging
-
This is really more of an Eclipse question than a programming question. I am a newbe Eclipse user and am working with a Java web application that I am debugging. Having annoying problem where browser debug window always defaults to webapp directory but I want it to go to webapp\specificPage. What I have been doing is pulling the drop down and selecting from the history the page I want. The page I am selecting does not change. After doing this for a while it gets old. Would like to be able to force the in-eclipse-browser debug window to a specific page every time. Kind of a dumb question, I'm sure there is a magic setting for this but at this point I have not found it. This is for Eclipse Helios. Thanks, for reading, kmg365
-
This is really more of an Eclipse question than a programming question. I am a newbe Eclipse user and am working with a Java web application that I am debugging. Having annoying problem where browser debug window always defaults to webapp directory but I want it to go to webapp\specificPage. What I have been doing is pulling the drop down and selecting from the history the page I want. The page I am selecting does not change. After doing this for a while it gets old. Would like to be able to force the in-eclipse-browser debug window to a specific page every time. Kind of a dumb question, I'm sure there is a magic setting for this but at this point I have not found it. This is for Eclipse Helios. Thanks, for reading, kmg365
-
be able to force the eclipse browser window to a specific page every time. set web.xml like
... yourPage.html yourPage.jsp yourPage.htm
Thanks so much for your reply. However I need the browser for eclipse to go to the http://localhost:8080/RestExample/helloworld url. That is I was looking for a way to force browser to append "/helloworld" to the end of the path. When I adapt the above to;
RestExample
helloworld/index.html
helloworld/index.htm
helloworld/index.jsp
helloworld/default.html
helloworld/default.htm
helloworld/default.jspJerseyTest
com.sun.jersey.spi.container.servlet.ServletContainer1
JerseyTest
/*It makes no difference. Thanks.
-
Thanks so much for your reply. However I need the browser for eclipse to go to the http://localhost:8080/RestExample/helloworld url. That is I was looking for a way to force browser to append "/helloworld" to the end of the path. When I adapt the above to;
RestExample
helloworld/index.html
helloworld/index.htm
helloworld/index.jsp
helloworld/default.html
helloworld/default.htm
helloworld/default.jspJerseyTest
com.sun.jersey.spi.container.servlet.ServletContainer1
JerseyTest
/*It makes no difference. Thanks.
I see,you develop a JAX-RS using jersey. you miss a piece of code. For example
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app\_2\_5.xsd"><context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <display-name>JAX-RS REST Servlet</display-name> <servlet-name>JAX-RS REST Servlet</servlet-name> <servlet-class> com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.packages</param-name> <param-value>services</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>JAX-RS REST Servlet</servlet-name> <url-pattern>/services/\*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
</web-app>
This project Integrated Spring. browser for eclipse to go to the http://localhost:8080/RestExample/services/helloworld url