`
hua04104
  • 浏览: 248674 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

#{..} is not allowed in template text

    博客分类:
  • js
 
阅读更多
最近在处理jsp页面时提示错误“tomcat #{..} is not allowed in template text”;同样的jsp运行成tomcat5.0及5.5上都没有问题,一旦在tomcat6.0上运行就会出现如上问题,经过一番网络搜索,发现原来是JSP2.1规范对#{…}的兼容性问题,原来tomcat5.0及5.5用的是JSP2.0规范,而tomcat6.0则是2.1的规范。

解决方案:
step1.在页面定义字符串变量;
step2.把需要#的位置用刚才定义的变量替换;
<%
       String a = " # " ;
%>
<td style="width:20%" align="center">
     <input name="completeDate" type="text" style="width:100%" id="completeDate" class ="Wdate" onFocus="WdatePicker({isShowClear:false,readOnly:true,minDate:’%y-%M-<%=a%>{%d+1}’})"/>
</td>
分享到:
评论

相关推荐

    BURNINTEST--硬件检测工具

    Windows 98 and ME are not supported in BurnInTest version 5.3 and above. Use a version of BurnInTest prior to 5.2 for compatibility with W98 and ME. Windows 95 and Windows NT =======================...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    Now it is possible to define is the drawing take place via WMPaint or via the PaintTo direct call (if rcPaint contain non-empty rectangle then WMPaint in progress). - FIX: The TFlexPanel.FPaintCache ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    However, implementation code properly belongs in .cc files, and we do not like to have much actual code in .h files unless there is a readability or performance advantage. If an inline function ...

    数位板压力测试

    • Is the user allowed to change things that help to customize the work environment, but pre¬vented from changing things over which applications must have control? 2.2 Ease of Programming ...

    WPTools.v6.29.1.Pro

    - WPTools is configured using the file WPINC.INC, here WPREPORTER is activated and the optional WPShared, WPSPell and wPDF can be selected to be compiled into main WPTools package. - also see FAQ:...

    微软内部资料-SQL性能优化5

     If the table is a heap (in other words, it has no clustered index), the bookmark is a RID, which is an actual row locator in the form File#:Page#:Slot#. Finding Rows with a NC Index on a Heap ...

    thymeleaf-extras-springsecurity-3.0-master.zip

    Remember that Spring Security sets a special security-oriented object as expression root, which is why you would not be able to access the expectedRole variable directly in the above expression. ...

    python3.6.5参考手册 chm

    Notable changes in Python 3.6.5 What’s New In Python 3.5 Summary – Release highlights New Features PEP 492 - Coroutines with async and await syntax PEP 465 - A dedicated infix operator for matrix...

    Rad Studio Delphi C++builder XE 10.4 Patch2

    RSP-28761 [REGRESSION] E2154 Type 'T' needs finalization - not allowed in variant record RSP-28737 Compiler error when inlining new Bit Counting Standard Functions RSP-28735 Managed Records Causing ...

    acpi控制笔记本风扇转速

    exclusion and the interrupt level indication flag is not needed. Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained. The global lock ...

    jQuery完全实例.rar

    This means that every time the passed-in function is executed (which is once for every element matched) the 'this' keyword points to the specific DOM element. Additionally, the function, when ...

Global site tag (gtag.js) - Google Analytics