Author: chathura
Date: Wed Dec 5 04:30:09 2007
New Revision: 10554
Log:
Implementing error handling in the UI.
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp
trunk/registry/modules/webapps/src/main/webapp/admin/recent-activity.jsp
trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/people.jsp Wed Dec
5 04:30:09 2007
@@ -17,6 +17,11 @@
<%
UserManagementAction userManagementAction = (UserManagementAction)
request.getSession().getAttribute(UIConstants.USER_MANAGEMENT_BEAN);
+
+ String errorMessage = (String)
request.getSession().getAttribute(UIConstants.ERROR_MESSAGE);
+ if (errorMessage != null) {
+ request.getSession().setAttribute(UIConstants.ERROR_MESSAGE, null);
+ }
%>
<!-- START header content -->
<jsp:include page="header.jsp" />
@@ -24,6 +29,9 @@
<! START body content -->
<div class="content">
<h1 class="headding-user-manage">People</h1>
+<% if (errorMessage != null) { %>
+<div><%=errorMessage%></div>
+<% } %>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width:700px;" valign="top">
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/recent-activity.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/recent-activity.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/recent-activity.jsp
Wed Dec 5 04:30:09 2007
@@ -17,12 +17,20 @@
<%
RecentActivityAction recentActivity = (RecentActivityAction)
request.getSession().getAttribute(UIConstants.ACTIVITY_BEAN);
+
+ String errorMessage = (String)
request.getSession().getAttribute(UIConstants.ERROR_MESSAGE);
+ if (errorMessage != null) {
+ request.getSession().setAttribute(UIConstants.ERROR_MESSAGE, null);
+ }
%>
<jsp:include page="header.jsp" />
<! START body content -->
<div class="content">
<h1 class="headding-recent-activity">Recent activity</h1>
+ <% if (errorMessage != null) { %>
+ <div><%=errorMessage%></div>
+ <% } %>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width:700px;" valign="top">
@@ -70,7 +78,7 @@
<th>Activities</th>
</tr>
-
+
<%
Iterator i =
recentActivity.getActivity().iterator();
while (i.hasNext()) {
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/user.jsp Wed Dec
5 04:30:09 2007
@@ -8,7 +8,7 @@
<body>
<%
- UserDetailsAction userDetailsAction = (UserDetailsAction)
request.getSession().getAttribute(UIConstants.USER_BEAN);
+ UserDetailsAction userDetailsAction = (UserDetailsAction)
request.getSession().getAttribute(UIConstants.USER_BEAN);
%>
<h1><%=userDetailsAction.getUserName()%></h1>
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev