<link href = "./common/css/pageStyle.css" rel = "stylesheet" type = "text/css" />
少一点试试

解决方案 »

  1.   

    <link href = "./common/css/pageStyle.css" rel = "stylesheet" type = "text/css" >
    后边那个斜杠是做什么的?
    去掉了
      

  2.   

    bu xing .
    still thanks.
      

  3.   

    <link href = "./common/css/pageStyle.css" rel = "stylesheet" type = "text/css" >
    后边那个斜杠是做什么的?
    去掉了---------------后边的那个"/"你去掉试过了吗?
      

  4.   

    哦,知道了.
    我已经实验过了,
    <link href = "./common/css/pageStyle.css" rel = "stylesheet" type = "text/css" >
    这种方法可行.
    请检查路径以及文件名是否写错.
      

  5.   

    嗯,如果你认为多重路径下有问题,你可以把那个文件直接拿到login.jsp
    同目录下,然后<link href = "pageStyle.css" rel = "stylesheet" type = "text/css" >
    看看.你会是把这个文件写到JS里了吧>!
      

  6.   

    你不会是把这个<link>标签写到JS里了吧>!
      

  7.   

    我估计猜到了,你是不是把这个标签写到<style></style>里面了?
      

  8.   

    我现在都把他们拿到根目录下,也不行。太他妈的奇怪了。
    我用了2个filter[code]
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/tld/cemstag.tld" prefix="cemstag"%>
    <html>
    <head>
    <link href = "pageStyle.css" rel = "stylesheet" type = "text/css" >
    <title>CEMS System Login</title>
    <script language="javascript">
    function checkSubmit(){
    if(document.all["operator.id"].value=="" || document.all["operator.password"].value=="" ) {
    alert('user name or password must be inputted.');
    return ;
    }
    document.forms["LoginActionForm"].submit() ;
    }</script></head><body>
    <h2>CEMS System Login</h2>
    <p><font size = 2>By metaphy Begin from April 6,2007</font></p>
    <html:form action="/LoginAction">
    <table>
    <tr>
    <td>User ID</td>
    <td><html:text property="operator.id" size="20" maxlength="20" value="admin"/></td>
       </tr>
       <tr>
    <td>User Password</td>
    <td><html:password property="operator.password" size="20" maxlength="20" value="admin"/></td>
       </tr>
      
       <tr>
    <td> </td>
    <td><input type="button" value="Submit" name="B1" onClick="checkSubmit()">
    <input type="reset" value="Reset" name="B2"></td>
    </tr>
    </table>
    </html:form>
    <cemstag:dispError />
    <p>
    <%
    //destroy session
    session.removeAttribute(develop.domain.CemsConstant.OPERATOR_SESSION_KEY);
    %>
    </p>
    </body>
    </html>
    [/code]
    css
    body {
    background-color : #ddddff
    }/* The copyright infomation */
    p.copyright {
    font-size : 12 ;
    text-align : center ;
    }
      

  9.   

    我在我的设计器里是能看到效果的,没问题。这样写:<img src="./common/image/star3.gif" />
    似乎某个地方把context改了?
      

  10.   

    我不太明白你的客户端语言语法.但我实验了一个简单的.如下:
    ---------CSS
    <html>
    <head>
    <link href = "pageStyle.css" rel = "stylesheet" type = "text/css" >
    </head>
    <body>
    </body>
    </html>
    -------CSS
    body {
    background-color : #ddddff
    }/* The copyright infomation */
    p.copyright {
    font-size : 12 ;
    text-align : center ;
    }你试着将其它东西删除,找找吧,你实在无能为力了.
    :)
      

  11.   

    能看明白。谢谢。
    找到问题了。
    确实是filter的问题,把2个filter删除之后就没问题了。
    <%System.out.println(request.getRequestURI()) ;
     %>
    那2filter把这句话打出了3遍。再研究一下
      

  12.   

    明白了。
    http://www.javaeye.com/topic/81955filter 将css文件给过滤掉了,因此
    只要在过滤器中加入:if(requesturi.endsWith("css")   
       || requesturi.endsWith("js")   
       || requesturi.endsWith("login.jsp")   
       || requesturi.endsWith("login.action")   
       || requesturi.endsWith("Logout.action")   
       || session.getAttribute(Constants.USER_KEY) != null){   
           
    }这样的代码就可以了。