Title | JSPException in edit page |
Date | 13-May-2007 11:26:30 EEST |
Version | 2.5.58-cvs |
Submitter | 202.8.27.5 |
Bug criticality | CriticalBug |
Browser version | Any |
Bug status | ClosedBug |
PageProvider used | Any |
Servlet Container | Resin 3.1 |
Operating System | Windows XP |
URL | http://localhost![]() |
Java version | jdk1.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.