lishunli / nutz

Automatically exported from code.google.com/p/nutz
0 stars 0 forks source link

没有提供一个可运行的MVC示例 #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我查了很久,看了不少代码,还是无法弄懂如何搭建一个能运行
起来的HelloWorld网站.

希望你们能提供一些简单的实例,让我们这样小白好探索一下.

这是我猜测的web.xml配置:
<servlet>
    <servlet-name>Nutz</servlet-name>
    <servlet-class>org.nutz.mvc.NutServlet</servlet-class>
    <init-param>
        <param-name>mvc-by-json</param-name>
        <param-value>config.json</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>Nutz</servlet-name>
    <url-pattern>*.do</url-pattern>
</servlet-mapping>

然后config.json都不知道填什么,我只好填了{},骗过去

Original issue reported on code.google.com by wendal1985@gmail.com on 10 Oct 2009 at 11:17

GoogleCodeExporter commented 9 years ago
旧的 Mvc 将被丢弃,新的 Mvc 请看:

http://code.google.com/p/nutz/source/browse/trunk/doc/manual/mvc/mvc_overview.ma
n

http://groups.google.com/group/nutzam/browse_thread/thread/7372396f4a76e479

Original comment by zozoh...@gmail.com on 12 Oct 2009 at 2:33

GoogleCodeExporter commented 9 years ago
最关键的web.xml如何配置呢? 新的还是没有提到啊 (:

Original comment by wendal1985@gmail.com on 12 Oct 2009 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 16 Mar 2010 at 11:28

GoogleCodeExporter commented 9 years ago

Original comment by wendal1985@gmail.com on 13 May 2010 at 10:43