Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Forcing Eclipse webapp home page when debugging

Forcing Eclipse webapp home page when debugging

Scheduled Pinned Locked Moved Java
javadebugginghelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kmg365
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • K 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

      H Offline
      H Offline
      hbwhypw
      wrote on last edited by
      #2

      be able to force the eclipse browser window to a specific page every time. set web.xml like

      ...
      
      	yourPage.html
      	yourPage.jsp
      	yourPage.htm
      
      K 1 Reply Last reply
      0
      • H hbwhypw

        be able to force the eclipse browser window to a specific page every time. set web.xml like

        ...
        
        	yourPage.html
        	yourPage.jsp
        	yourPage.htm
        
        K Offline
        K Offline
        kmg365
        wrote on last edited by
        #3

        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.jsp

        JerseyTest
        com.sun.jersey.spi.container.servlet.ServletContainer

        1
        

        JerseyTest
        /*

        It makes no difference. Thanks.

        H 1 Reply Last reply
        0
        • K kmg365

          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.jsp

          JerseyTest
          com.sun.jersey.spi.container.servlet.ServletContainer

          1
          

          JerseyTest
          /*

          It makes no difference. Thanks.

          H Offline
          H Offline
          hbwhypw
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups