Author: michiel
Date: 2009-09-09 14:28:33 +0200 (Wed, 09 Sep 2009)
New Revision: 38529
Modified:
mmbase/branches/MMBase-1_7/applications/taglib/src/org/mmbase/bridge/jsp/taglib/CloudTag.java
Log:
include message
Modified:
mmbase/branches/MMBase-1_7/applications/taglib/src/org/mmbase/bridge/jsp/taglib/CloudTag.java
===================================================================
---
mmbase/branches/MMBase-1_7/applications/taglib/src/org/mmbase/bridge/jsp/taglib/CloudTag.java
2009-09-09 12:28:13 UTC (rev 38528)
+++
mmbase/branches/MMBase-1_7/applications/taglib/src/org/mmbase/bridge/jsp/taglib/CloudTag.java
2009-09-09 12:28:33 UTC (rev 38529)
@@ -381,9 +381,9 @@
private int denyHTTP(String message) throws JspTagException {
log.debug("sending deny");
if (response.isCommitted()) {
- throw new JspTagException("Response is commited already, cannot
send a deny");
+ throw new JspTagException("Response is commited already, cannot
send a deny");
}
-
+
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
if (getRealm() == null) {
@@ -595,13 +595,13 @@
cloud = (Cloud) c;
if (cloud != null) {
if (cloud.getUser().isValid()) {
- if (log.isDebugEnabled()) {
+ if (log.isDebugEnabled()) {
log.debug("Created/found a session. Cloud in it is of:
" + cloud.getUser());
- }
+ }
} else {
- if (log.isDebugEnabled()) {
+ if (log.isDebugEnabled()) {
log.debug("Found invalid cloud in session of '" +
cloud.getUser() + "'. Discarding.");
- }
+ }
cloud = null;
}
} else {
@@ -877,7 +877,7 @@
/*
- if (1 == 0) {
+ if (1 == 0) {
// XXXXX hmm, should test this in freeze
// making relative urls'.
@@ -939,9 +939,9 @@
rd.forward(request, response);
return SKIP_BODY;
} catch (javax.servlet.ServletException ioe) {
- throw new TaglibException("error sending redirect", ioe);
+ throw new TaglibException("error sending redirect " +
ioe.getMessage(), ioe);
} catch (java.io.IOException ioe) {
- throw new TaglibException("error sending redirect", ioe);
+ throw new TaglibException("error sending redirect" +
ioe.getMessage(), ioe);
}
}
@@ -1136,7 +1136,7 @@
}
if (checkAnonymous()) { // check if requested, and create
if (cloud == null) { // could not be created!
- // what can we do now?
+ // what can we do now?
return SKIP_BODY;
} else {
// yes, found
@@ -1165,7 +1165,7 @@
}
return SKIP_BODY;
}
- if (checkLogoutMethod()) {
+ if (checkLogoutMethod()) {
return evalBody();
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs