*sigh*  Never mind.  After posting I thought of a different approach,
and in spite of Cocoon's documentation I found a solution:

Index: src/org/dspace/app/xmlui/PageNotFoundTransformer.java
===================================================================
--- src/org/dspace/app/xmlui/PageNotFoundTransformer.java (revision 149)
+++ src/org/dspace/app/xmlui/PageNotFoundTransformer.java (working copy)
@@ -44,9 +44,12 @@
 import java.io.Serializable;
 import java.sql.SQLException;
 
+import javax.servlet.http.HttpServletResponse;
+
 import org.apache.cocoon.caching.CacheableProcessingComponent;
 import org.apache.cocoon.environment.ObjectModelHelper;
 import org.apache.cocoon.environment.Request;
+import org.apache.cocoon.environment.http.HttpEnvironment;
 import org.apache.cocoon.util.HashUtil;
 import org.apache.excalibur.source.SourceValidity;
 import org.apache.excalibur.source.impl.validity.NOPValidity;
@@ -197,6 +200,10 @@
             notFound.addPara(T_para1); 
             
             notFound.addPara().addXref(contextPath,T_go_home);
+
+           HttpServletResponse response = (HttpServletResponse)objectModel
+                .get(HttpEnvironment.HTTP_RESPONSE_OBJECT);
+           response.setStatus(HttpServletResponse.SC_NOT_FOUND);
         }
     }

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgpDS9gz5RVGv.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to