title: Not getting the style on main page when I try to log-out from another page?
body: <p>I've developed a simple struts2 web application.
  In that there are two pages <strong>index.jsp</strong> and <strong>page1.jsp</strong> which are within a folder named as <strong>Page</strong></p>
  
  <p>I used the following jar files</p>
  
  <pre><code> antlr.jar
   commons-beanutils.jar
   commons-digester.jar
   commons-fileupload.jar
   commons-logging.jar
   commons-logging-1.0.4.jar
   commons-validator.jar
   freemarker-2.3.8.jar
   jakarta-oro.jar
   jsf-api.jar
   jsf-impl.jar
   jstl-1.2.jar
   ognl-2.6.11.jar
   struts.jar
   struts2-core-2.0.11.2.jar
   xwork-2.0.5.jar
  </code></pre>
  
  <p><strong>struts.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE struts PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
     "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;
  &lt;struts&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
  &lt;constant name="struts.custom.i18n.resources" value="ApplicationResources" /&gt;
     &lt;package name="helloworld" extends="struts-default"&gt;
  
        &lt;action name="log1" class="com.loginAction"&gt;
              &lt;result name="success"&gt;/index.jsp&lt;/result&gt;
        &lt;/action&gt;
     &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"&gt;
    &lt;display-name&gt;Struts2_Sample&lt;/display-name&gt;
  
     &lt;filter&gt;
        &lt;filter-name&gt;struts2&lt;/filter-name&gt;
        &lt;filter-class&gt;
           org.apache.struts2.dispatcher.FilterDispatcher
        &lt;/filter-class&gt;
     &lt;/filter&gt;
  
     &lt;filter-mapping&gt;
        &lt;filter-name&gt;struts2&lt;/filter-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
     &lt;/filter-mapping&gt;
  
  
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>index.jsp</strong></p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;link rel="stylesheet" href="css/style.css" type="text/css" media="screen"&gt;
  &lt;body&gt;
  &lt;s:a href="Page/page1.jsp"&gt;LOGIN&lt;/s:a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Page/page1.jsp</strong></p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
      pageEncoding="ISO-8859-1"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;link rel="stylesheet" href="css/style.css" type="text/css" media="screen"&gt;
  &lt;body&gt;
  &lt;s:form action="log1" method="post"&gt;
    &lt;s:textfield name="name" label="USERNAME"&gt;&lt;/s:textfield&gt;
     &lt;s:password name="pass" label="PASSWORD"&gt;&lt;/s:password&gt;
    &lt;s:submit method="execute" label="LOGIN"&gt;&lt;/s:submit&gt;
  &lt;/s:form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>style.css</strong></p>
  
  <pre><code>body 
  {
  background:olive;
  }
  </code></pre>
  
  <p><strong>loginAction.java</strong></p>
  
  <pre><code>package com;
  import com.opensymphony.xwork2.ActionSupport;
  public class loginAction extends ActionSupport {
  
      public String execute() {
           return SUCCESS;        
      }
  }
  </code></pre>
  
  <p>The following picture shows the directory structure of the my application.
  <a href="http://www.sendspace.com/file/zm46c1" rel="nofollow">http://www.sendspace.com/file/zm46c1</a></p>
  
  <p>when I run the application, it will direct to <strong>index.jsp</strong> page with a <strong>LOGIN</strong> hyperlink appears in that. This page has an olive background color which I defined within a <strong>style.css</strong>. Now when I click that it will then direct to <strong>page1.jsp</strong> showing two text-fields and a submit button. </p>
  
  <p><strong>THE PROBLEM:</strong></p>
  
  <p>When I click the submit button it will direct to the previous <strong>index.jsp</strong> but without any background color. Even when I click that, it shows an error page.<br> </p>
  
  <p>The following pictures attachment show all my web pages of my application.
  <a href="http://www.sendspace.com/file/djnqvo" rel="nofollow">http://www.sendspace.com/file/djnqvo</a></p>
  
  <p>when I click the LOGIN hyperlink I'd get the error page.</p>
  
  <p><strong>Can anyone tell me why I'm getting like this.</strong></p>
  
  <p><strong>Is there any solution for this problem.</strong></p>