continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r447481 - in /maven/continuum/branches/continuum-acegi/continuum-webapp/src/main: java/org/apache/maven/continuum/web/action/ScheduleAction.java resources/xwork.xml
Date Mon, 18 Sep 2006 17:40:35 GMT
Author: carlos
Date: Mon Sep 18 10:40:34 2006
New Revision: 447481

URL: http://svn.apache.org/viewvc?view=rev&rev=447481
Log:
Don't use extra page for errors

Modified:
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
    maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java?view=diff&rev=447481&r1=447480&r2=447481
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ScheduleAction.java
Mon Sep 18 10:40:34 2006
@@ -101,6 +101,8 @@
     {
         if ( ( "".equals( name ) ) || ( name == null ) ) 
         {
+            getLogger().error( "Can't create schedule. No schedule name was supplied." );
+            addActionError( "buildDefinition.noname.save.error.message");
             return ERROR;
         }
         else

Modified: maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml?view=diff&rev=447481&r1=447480&r2=447481
==============================================================================
--- maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
(original)
+++ maven/continuum/branches/continuum-acegi/continuum-webapp/src/main/resources/xwork.xml
Mon Sep 18 10:40:34 2006
@@ -1,4 +1,4 @@
-  <!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
+<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd">
 
 <xwork>
   <include file="webwork-default.xml"/>
@@ -244,7 +244,7 @@
 
     <action name="saveSchedule" class="schedule" method="save">
       <result name="success" type="chain">schedules</result>
-	    <result name="error">saveScheduleError.jsp</result>
+      <result name="error" type="chain">schedule</result>
     </action>
     <action name="removeSchedule" class="schedule" method="remove">
       <result name="confirm">confirmScheduleRemoval.jsp</result>



Mime
View raw message