路径是否正确? ------------------------------------------------------
           我们还年轻牛奶会有的奶牛也会有的 
             可天天在 csdn 混这些会有吗 ??

解决方案 »

  1.   

    把header.inc改为header.htm就不报错,但是页面依然不显示????是否和服务器有关??
      

  2.   

    include file是 引入的静态文本,是在翻译阶段执行的。
    你可以看看header.inc中有没有什么代码,和你的jsp有冲突的。
      

  3.   

    header.inc是静态的,只是一个导航链接
      

  4.   

    <html>
    <head>
    <title>[书的海洋购书的天堂]</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="stylesheet" href="font.css" type="text/css">
    </head><body bgcolor="#FFFFFF" text="#000000">
    <table border="0" cellspacing="2" cellpadding="0" width="100%" bgcolor="#0099CC">
      <tr>
        <td width="13%"><a href="">用户登录</a></td>
        <td width="13%"><a href="">用户注册</a></td>
        <td width="13%"><a href="">商品查询</a></td>
        <td width="13%"><a href="">商品分类</a></td>
        <td width="13%"><a href="">定单查询</a></td>
        <td width="13%"><a href="">商品管理</a></td>
        <td width="12%"><a href="">聊天室</a></td>
        <td width="13%"><a href="">论坛</a></td>
      </tr>
    </table>
      

  5.   

    应该是<%@page include file="header.inc"%>吧?font.css文件有没有问题?
    “13%“为什么多一个%??
      

  6.   

    为什麽把inc加在jsp的最顶上???
      

  7.   

    把inc加在jsp的最顶上
    不行啊!!
    没人知道吗???