You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by hu...@apache.org on 2007/02/23 13:03:37 UTC
svn commit: r510919 -
/struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html
Author: husted
Date: Fri Feb 23 04:03:36 2007
New Revision: 510919
URL: http://svn.apache.org/viewvc?view=rev&rev=510919
Log:
WW-1705 Encode example URL in MailReader tour.
Modified:
struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html
Modified: struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html
URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html?view=diff&rev=510919&r1=510918&r2=510919
==============================================================================
--- struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html (original)
+++ struts/struts2/branches/STRUTS_2_0_X/apps/mailreader/src/main/webapp/tour.html Fri Feb 23 04:03:36 2007
@@ -820,7 +820,7 @@
</p>
<hr/>
-<pre><code><#if (actionErrors?exists && actionErrors?size > 0)>
+<pre><code><#if (actionErrors?exists && actionErrors?size > 0)>
<ul>
<#list actionErrors as error>
<li><span class="errorMessage">${error}</span></li>
@@ -837,7 +837,7 @@
</p>
<hr/>
-<pre><code><#if (actionErrors?exists && actionErrors?size > 0)>
+<pre><code><#if (actionErrors?exists && actionErrors?size > 0)>
<strong><table></strong>
<#list actionErrors as error>
<strong><tr><td></strong><span class="errorMessage">${error}</span><strong></td></tr></strong>
@@ -1064,7 +1064,7 @@
<pre><code>public User <strong>findUser</strong>(String username, String password)
throws <strong>ExpiredPasswordException</strong> {
User user = <strong>getDatabase().findUser(username)</strong>;
- if ((user != null) && !user.getPassword().equals(password)) {
+ if ((user != null) && !user.getPassword().equals(password)) {
user = null;
}
if (user == null) {
@@ -1427,7 +1427,7 @@
public String <strong>intercept</strong>(ActionInvocation actionInvocation) throws Exception {
Map session = actionInvocation.getInvocationContext().getSession();
User user = (User) session.get(Constants.USER_KEY);
- boolean isAuthenticated = (null!=user) && (null!=user.getDatabase());
+ boolean isAuthenticated = (null!=user) && (null!=user.getDatabase());
if (<strong>isAuthenticated</strong>) {
return actionInvocation.invoke();
}