这是我自己开发的一个MVC框架
源代码在线查看: unknownform.java
package dark.web.frame.form;
import java.io.IOException;
import javax.servlet.ServletException;
import dark.web.frame.Message;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2004
* Company: DIS
* Create Time: 2004-12-12 1:43:18
* @author darkhe
* @version 1.0
*/
public class UnknownForm extends AbstractForm
{
/**
* @return
* @throws ServletException
* @throws IOException
* @see dark.web.frame.AbstractForm#validate()
*/
public Message validate() throws ServletException, IOException
{
setInput("/unknown.jsp");
getRequest().setAttribute("Message", "Don't specify FORM parameter");
Message m = new Message();
m.setMessage("Message", "Don't specify FORM parameter");
return m;
}
}