0 Replies Latest reply on Sep 20, 2004 11:09 PM by Stepan Polyak

    Need help with *.css

    Stepan Polyak Newbie

      Hi everybody.
      I need your help on how to use *.css for servlet generated responses.
      Here is a piece of my web.xml

      <servlet-name>AdminWeb</servlet-name>
      <display-name>Admin Servlet</display-name>
      <servlet-class>is.admin.AdminServlet</servlet-class>
      <load-on-startup>1</load-on-startup>

      <servlet-mapping>
      <servlet-name>AdminWeb</servlet-name>
      <url-pattern>/servlet/adminweb</url-pattern>
      </servlet-mapping>

      in my index.jsp I wrote:
      <LINK REL=STYLESHEET
      HREF="styles/common.css"
      TYPE="text/css">

      So, when I browse http://localhost:8080/AdminWeb I see the page loaded correctly, using common.css.

      Now from this page I call servlet and page is generated( at http://localhost:8080/AdminWeb/servlet/adminweb?connect=connect). That page is not able to see common.css and I have no clue as how to point my link to styles/common.css.

      Your response is highly appreciated.
      Thank you.