TitleJSPException in edit page
Date13-May-2007 11:26:30 EEST
Version2.5.58-cvs
Submitter202.8.27.5
Bug criticalityCriticalBug
Browser versionAny
Bug statusClosedBug
PageProvider usedAny
Servlet ContainerResin 3.1
Operating SystemWindows XP
URLhttp://localhost:8080/wiki/Edit.jsp?page=Main
Java versionjdk1.6.0

Resin show error in edit page (templates/default/EditContent.jsp) as the following server log.

Compiling _jsp/_templates/_default/_editcontent__jsp.java
javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: /templates/default/EditContent.jsp:20: cannot find symbol
symbol  : variable lock
location: class _jsp._templates._default._editcontent__jsp
              out.print((lock.getLocker()));
                         ^
/templates/default/EditContent.jsp:21: cannot find symbol
symbol  : variable lock
location: class _jsp._templates._default._editcontent__jsp
              out.print((lock.getTimeLeft()));
                         ^
2 errors
 at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:90)
 at _jsp._edit__jsp._jspService(_edit__jsp.java:263)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
 at com.caucho.jsp.Page.pageservice(Page.java:586)
 at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:190)

Here is the original jsp code

<wiki:CheckLock mode="locked" id="lock">
    <div class="error">
      <fmt:message key="edit.locked">
        <fmt:param><%=lock.getLocker()%></fmt:param>
        <fmt:param><%=lock.getTimeLeft()%></fmt:param>
      </fmt:message>
    </div>
</wiki:CheckLock>

I can fixed this by changing from scriptlet to EL the following

<wiki:CheckLock mode="locked" id="lock">
<div class="error">
  <fmt:message key="edit.locked">
    <fmt:param><c:out value="${lock.locker}"/></fmt:param>
    <fmt:param><c:out value="${lock.timeLeft}"/></fmt:param>
  </fmt:message>
</div>
</wiki:CheckLock>

Thanks you, Ekkasit Takoungsakdakul


Indeed. Will be corrected in next upload. Tx. --DF

Has been fixed in 2.5.66 or thereabouts.

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-6) was last changed on 28-May-2007 00:08 by 88.211.133.30