View Javadoc
1 /* 2 * Scope: a generic MVC framework. 3 * Copyright (c) 2000-2002, Steve Meyfroidt 4 * All rights reserved. 5 * Email: smeyfroi@users.sourceforge.net 6 * 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 12 * Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 15 * Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 17 * documentation and/or other materials provided with the distribution. 18 * 19 * Neither the name "Scope" nor the names of its contributors 20 * may be used to endorse or promote products derived from this software 21 * without specific prior written permission. 22 * 23 * 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR 28 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 29 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 30 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 31 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 33 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 34 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35 * 36 * 37 * $Id: ServletTestPage.java,v 1.1 2002/08/05 13:17:17 ludovicc Exp $ 38 */ 39 40 package test.view.servlet; 41 42 import java.io.ByteArrayOutputStream; 43 import java.io.OutputStream; 44 import java.io.StringWriter; 45 import java.io.Writer; 46 import org.scopemvc.view.servlet.Page; 47 import org.scopemvc.view.servlet.ServletView; 48 49 /*** 50 * @author <A HREF="mailto:smeyfroi@users.sourceforge.net">Steve Meyfroidt</A> 51 * @version $Revision: 1.1 $ $Date: 2002/08/05 13:17:17 $ 52 */ 53 54 final class ServletTestPage extends Page { 55 public ServletTestPage(String inID) { 56 super(inID); 57 } 58 public void streamView(Writer writer) throws Exception { 59 writer.write(getID()); 60 } 61 private String type; 62 public String getContentType() { 63 return type; 64 } 65 public void setContentType(String inType) { 66 type = inType; 67 } 68 public void populateBoundModelProperty(String inPropertyID, String inValue) throws Exception { 69 // noop 70 } 71 }

This page was automatically generated by Maven