我的jsp网站部署到另一台机器的时候类似于${mseesge}之类的标签都无效了(直接显示出来)是什么原因呢 (系统未作任何改动)

解决方案 »

  1.   

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    是这个吧  原来就有 没有动过啊
      

  2.   

    <%@ page ELIgnore="false"%>
      

  3.   

    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    这句话只对<c:XXX />的标签起作用,你所说的那个是${mseesge}
      

  4.   

    <%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <html>
    <head>
      <base href="<%=basePath%>">
    <title>党员管理系统</title>
    <script src="frame/bottom_frame/marquee.js"></script>
    <link rel="stylesheet" href="./style/6/style.css">
    <link rel="shortcut icon" href="./images/icon.ico">
    <script language="JavaScript">
    //-------------------- 防止出错 ---------------------------
    function killErrors()
    {
      return true;
    }
    window.onerror = killErrors;
    //------------------- 窗口最大化 --------------------------
    self.moveTo(0,0); 
    self.resizeTo(screen.availWidth,screen.availHeight); 
    self.focus(); 
    // 状态栏显示文字
    //window.defaultStatus=""; 
    // <!--屏蔽鼠标右键开始-->
    if (window.Event)
      document.captureEvents(Event.MOUSEUP);function nocontextmenu()
    {
     event.cancelBubble = true
     event.returnValue = false; return false;
    }
    function norightclick(e)
    {
     if (window.Event)
     {
      if (e.which == 2 || e.which == 3)
       return false;
     }
     else
      if (event.button == 2 || event.button == 3)
      {
       event.cancelBubble = true
       event.returnValue = false;
       return false;
      }
    }
    document.oncontextmenu = nocontextmenu;  // for IE5+
    document.onmousedown = norightclick;     // for all others
    // <!--屏蔽鼠标右键结束-->
    </script>
    <style type="text/css">
    <!--
    body {
    background-image: url();
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    }
    -->
    </style></head>
    <body class="bodycolor">
    <!-- 图片预载入,防止瞬间显示红叉图片 -->
    <img src="../style/6/images/logo.jpg" style="display='none'" />
    <img src="../style/6/images/---logo.jpg" style="display='none'" />
    <form name="form1" method="post" action="loginServlet">
    <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="middle">
        <table width="581" height="311" border="0" align="center" cellpadding="0" cellspacing="0" class="small">
        <tr>
          <td id="LOGOIMG" align="right" valign="top" background="style/6/images/logo.jpg" >
      <!-- 如果定制图标不存在替换为默认的 -->
      <img src="/style/6/images/logo.jpg" onError="LOGOIMG.background='style/6/images/---logo.jpg'" style="display='none'" >
      <br><br><br><br><br><br><br>
      
               <table width="400"  border="0" cellspacing="8" cellpadding="0" class="small">
               <tr><td width="80" align="right"><b><font color=red>${message }</font></b></td></tr>
              <tr>
                <td width="80" align="right"><b><font color=#0077b2>用户名:</font></b></td>
                <td align="left">
                <input name="adminaccount" type="text" class="SmallInput" size="12" maxlength="30" value="${param.adminaccount }">
                </td>
              </tr>
              <tr>
                <td width="80" align="right"><b><font color=#0077b2>密 码:</font></b></td>
                <td align="left"><input name="adminpwd" type="password" class="SmallInput" value="" size="12" maxlength="30"></td>
              </tr>
              <tr>
                <td width="80" align="right"><b><font color=#0077b2>管理员类型:</font></b></td>
                <td align="left"><input type="radio" name="admintype" value="1" checked="checked"/><font color=#0077b2>二级管理员</font>
    <input type="radio" name="admintype" value="0"/><font color=#0077b2>一级管理员</font></td>
              </tr>
            </table>
            <table width="385"  border="0" cellspacing="8" cellpadding="0">
              <tr>
                <td height="32" align="left"><input type="image" border="0" name="Submit2" src="./style/6/images/login_button_01.gif" width="70" height="22" alt="登陆">
                  &nbsp;&nbsp;&nbsp;<a href="login.jsp" target="_self"><img border="0" name="imageField2" src="./style/6/images/login_button_02.gif" width="70" height="22" alt="重填"></a></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
      

  5.   

     <input name="adminaccount" type="text" class="SmallInput" size="12" maxlength="30" value="${param.adminaccount }"> 这里的${param.adminaccount }"> 不好使
      

  6.   

    这是EL表达式吧,只要是JSP文件都能用的,<c:  >这些是JSTL标签要引入包的