portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/screens Home.java
Date Wed, 25 Apr 2001 00:10:11 GMT
taylor      01/04/24 17:10:11

  Modified:    src/java/org/apache/jetspeed/modules/screens Home.java
  Log:
  cleaned up the error message displayed when a psml resource is not found
  
  Revision  Changes    Path
  1.14      +10 -5     jakarta-jetspeed/src/java/org/apache/jetspeed/modules/screens/Home.java
  
  Index: Home.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/screens/Home.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Home.java	2001/03/30 09:14:18	1.13
  +++ Home.java	2001/04/25 00:10:10	1.14
  @@ -68,7 +68,7 @@
   import org.apache.jetspeed.daemon.*;
   import org.apache.jetspeed.portal.*;
   import org.apache.jetspeed.portal.factory.*;
  -import org.apache.jetspeed.util.*;
  +//import org.apache.jetspeed.util.*;
   import org.apache.jetspeed.profiler.*;
   
   import org.apache.jetspeed.services.profiler.ProfileManager;
  @@ -85,7 +85,10 @@
   
   //Turbine support
   import org.apache.turbine.modules.*;
  -import org.apache.turbine.util.*;
  +//import org.apache.turbine.util.*;
  +import org.apache.turbine.util.RunData;
  +import org.apache.turbine.util.StringUtils;
  +import org.apache.turbine.util.Log;
   
   import org.apache.jetspeed.services.resources.JetspeedResources;
   
  @@ -94,7 +97,7 @@
   
   @author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
   @author <a href="mailto:tom@PIsoftware.com">Tom Adams</a>
  -@version $Id: Home.java,v 1.13 2001/03/30 09:14:18 shesmer Exp $
  +@version $Id: Home.java,v 1.14 2001/04/25 00:10:10 taylor Exp $
   */
   public class Home extends BaseJetspeedScreen {
       
  @@ -190,11 +193,13 @@
           } catch ( Throwable t ) {
   
               Log.error( t );
  -
  +            root.addElement(new H2("Error Generating Jetspeed Screen:"));
  +            root.addElement(new H3(t.toString()));
  +            rundata.setMessage(t.toString());
  +            rundata.setStackTrace(StringUtils.stackTrace(t), t);
               ByteArrayOutputStream ostr = new ByteArrayOutputStream();
               t.printStackTrace( new PrintWriter(ostr,true) );
               root.addElement( ostr.toString() );
  -
           }
   
           // time in millis, sugested by Thomas Schaeck (schaeck@de.ibm.com)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message