You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2020/03/29 09:39:27 UTC
[jspwiki] 27/36: fix JSP compilation problems
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 91a3f767583705ecc530efae5a8162419e145b99
Author: juanpablo <ju...@apache.org>
AuthorDate: Sat Mar 28 16:35:47 2020 +0100
fix JSP compilation problems
---
jspwiki-war/src/main/webapp/templates/default/AJAXCategories.jsp | 2 +-
jspwiki-war/src/main/webapp/templates/default/AJAXPreview.jsp | 2 +-
jspwiki-war/src/main/webapp/templates/default/AJAXSearch.jsp | 2 +-
jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/jspwiki-war/src/main/webapp/templates/default/AJAXCategories.jsp b/jspwiki-war/src/main/webapp/templates/default/AJAXCategories.jsp
index 603e032..ff986fa 100644
--- a/jspwiki-war/src/main/webapp/templates/default/AJAXCategories.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/AJAXCategories.jsp
@@ -31,7 +31,7 @@
%>
<%
// Copied from a top-level jsp -- which would be a better place to put this
- Context wikiContext = Wiki.context().find( wiki, request, ContextEnum.PAGE_VIEW.getRequestContext() );
+ Context wikiContext = Wiki.context().create( wiki, request, ContextEnum.PAGE_VIEW.getRequestContext() );
if( !wiki.getManager( AuthorizationManager.class ).hasAccess( wikiContext, response ) ) return;
String pagereq = wikiContext.getPage().getName();
diff --git a/jspwiki-war/src/main/webapp/templates/default/AJAXPreview.jsp b/jspwiki-war/src/main/webapp/templates/default/AJAXPreview.jsp
index abaf5c2..4f46b98 100644
--- a/jspwiki-war/src/main/webapp/templates/default/AJAXPreview.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/AJAXPreview.jsp
@@ -36,7 +36,7 @@
%>
<%
// Copied from a top-level jsp -- which would be a better place to put this
- Context wikiContext = Wiki.context().find( wiki, request, ContextEnum.PAGE_VIEW.getRequestContext() );
+ Context wikiContext = Wiki.context().create( wiki, request, ContextEnum.PAGE_VIEW.getRequestContext() );
if( !wiki.getManager( AuthorizationManager.class ).hasAccess( wikiContext, response ) ) return;
response.setContentType("text/html; charset="+wiki.getContentEncoding() );
diff --git a/jspwiki-war/src/main/webapp/templates/default/AJAXSearch.jsp b/jspwiki-war/src/main/webapp/templates/default/AJAXSearch.jsp
index 057874f..903deee 100644
--- a/jspwiki-war/src/main/webapp/templates/default/AJAXSearch.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/AJAXSearch.jsp
@@ -49,7 +49,7 @@
/* ********************* actual start ********************* */
/* FIXME: too much hackin on this level -- should better happen in toplevel jsp's */
- Context wikiContext = Wiki.context().find( wiki, request, ContextEnum.WIKI_FIND.getRequestContext() );
+ Context wikiContext = Wiki.context().create( wiki, request, ContextEnum.WIKI_FIND.getRequestContext() );
if(!wiki.getManager( AuthorizationManager.class ).hasAccess( wikiContext, response ) ) return;
String query = request.getParameter( "query");
diff --git a/jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp b/jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp
index 2288970..9614286 100644
--- a/jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/AttachmentTab.jsp
@@ -153,7 +153,7 @@
</wiki:Permission>
</td>
- <c:set var="changenote" value="<%= (String)att.getAttribute( WikiPage.CHANGENOTE ) %>" />
+ <c:set var="changenote" value="<%= (String)att.getAttribute( Page.CHANGENOTE ) %>" />
<td class="changenote"><c:out value="${changenote}"/></td>
</tr>