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 2018/03/29 17:45:22 UTC
[jspwiki] 03/05: tiny code format
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 a25a2913b263df84c0185b4f612fa3f213c29821
Author: juanpablo <ju...@apache.org>
AuthorDate: Thu Mar 29 19:41:57 2018 +0200
tiny code format
---
jspwiki-war/src/main/webapp/Wiki.jsp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/jspwiki-war/src/main/webapp/Wiki.jsp b/jspwiki-war/src/main/webapp/Wiki.jsp
index 71cb38e..78201c1 100644
--- a/jspwiki-war/src/main/webapp/Wiki.jsp
+++ b/jspwiki-war/src/main/webapp/Wiki.jsp
@@ -14,7 +14,7 @@
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
- under the License.
+ under the License.
--%>
<%@ page import="org.apache.log4j.*" %>
@@ -25,14 +25,14 @@
<%@ page errorPage="/Error.jsp" %>
<%@ taglib uri="http://jspwiki.apache.org/tags" prefix="wiki" %>
<%!
- Logger log = Logger.getLogger("JSPWiki");
+ Logger log = Logger.getLogger("JSPWiki");
%>
<%
WikiEngine wiki = WikiEngine.getInstance( getServletConfig() );
// Create wiki context and check for authorization
WikiContext wikiContext = wiki.createContext( request, WikiContext.VIEW );
- if(!wiki.getAuthorizationManager().hasAccess( wikiContext, response )) return;
+ if( !wiki.getAuthorizationManager().hasAccess( wikiContext, response ) ) return;
String pagereq = wikiContext.getName();
// Redirect if request was for a special page
@@ -42,13 +42,13 @@
response.sendRedirect( redirect );
return;
}
-
+
StopWatch sw = new StopWatch();
sw.start();
WatchDog w = wiki.getCurrentWatchDog();
try {
w.enterState("Generating VIEW response for "+wikiContext.getPage(),60);
-
+
// Set the content type and include the response content
response.setContentType("text/html; charset="+wiki.getContentEncoding() );
String contentPage = wiki.getTemplateManager().findJSP( pageContext,
--
To stop receiving notification emails like this one, please contact
juanpablo@apache.org.