<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="mybean12" class="web.mybean1" scope="session"/>
<jsp:setProperty name="mybean12" property="*"/>
<html>
<head>
<title>index</title>
</head>
<f:view>
  <body bgcolor="#ffffff">
  ${mybean12.name}    /////////////正确!
<c:set var="var1" value="aaa"/> ////正确
<c:out value="${var1}"/>            ////complier错误!!
    <c:if test="${mybean12.name=='税务局'}" > asdasdasd</c:if>          ////complier错误!!
<body>
</f:view>
</html>
 
提示:
this attribute dose not support request time values

解决方案 »

  1.   

    查看你的SERVLET版本..然后可以适当屏蔽掉一些EL表达式,DEBUG看看是哪个表达式的问题1) When using a jsp:include within the f:view tags, must include f:subview in the included file (or around the jsp:include tag).2) In the include file, cannot have any HTML. All HTML tags must be wrapped in f:verbatim tags.3) Within main f:view tags however, it is not necessary to wrap everything in f:verbatim tags (it's not bad either). Just HTML that appears as children to other JSF components (i.e. t:newspaperTable). 
      

  2.   

    首先谢谢楼上!
    开发环境:servlet2.4,jsp2.0,jsf1.1+jtsl1.1,weblogic9.0,jb2006  没有任何问题的!
    我加上 f:verbatim ,没有变化!!
    仅留下:
    <c:set var="var1" value="aaa"/> ////正确
    <c:out value="${var1}"/>            ////complier错误!!总提示:
    this attribute dose not support request time values!!
    恳求大师帮忙,我已3天了!!谢谢!
      

  3.   

    <c:set var="var1" value="aaa"></c:set>
    <c:out value="${var1}"></c:out>在我的电脑上运行正常,会不会是其他问题造成的