我自己的MVC框架DWF的范例包。用实际的例子说明了如何使用我的DWF框架来开发网站。
源代码在线查看: testcommand.java
package dark.web.frame.example.littleo.command;
import java.io.IOException;
import javax.servlet.ServletException;
import dark.web.frame.Value;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2004
* Company: DIS
* Create Time: 2004-12-11 0:51:42
* @author darkhe
* @version 1.0
*/
public class TestCommand extends Command
{
/**
* @throws javax.servlet.ServletException
* @throws java.io.IOException
* @see dark.web.frame.FrontCommand#process()
*/
public void process() throws ServletException, IOException
{
setTarget("/test.jsp");
getRequest().setAttribute("msg", "执行到Command了");
Value v = loadValue(getRequest());
String name = v.getString("name");
}
}