读书人

求教自己写了一个structs2的hellowo

发布时间: 2013-10-21 17:00:48 作者: rapoo

求教,自己写了一个structs2的helloworld,可总是出问题。
求教,自己写了一个structs2的helloworld,可总是出有关问题求教,自己写了一个structs2的helloworld,可总是出有关问题求教,自己写了一个structs2的helloworld,可总是出有关问题求教,自己写了一个structs2的helloworld,可总是出有关问题求教,自己写了一个structs2的helloworld,可总是出有关问题
这是我工程的详情,在浏览器输入http://127.0.0.1:8080/Struts2_0100_Introduction/hell
就出现最后一张图片的情况,求解释。
[解决办法]
web.xml中加入你配置的struts.xml吧
[解决办法]
struts相关的包放放错地方了吧?放在web-inf/lib这个目录试下。
[解决办法]

引用:
Quote: 引用:

struts.xml中没有配class,怎么跳转呢


引用:
struts.xml中没有配class,怎么跳转呢

可网上教程都是我这样配置的啊,配class啥意思





<action name="HelloWorld" class="example.HelloWorld"> <result>/example/HelloWorld.jsp</result>
</action>








[解决办法]
<action name="HelloWorld" class="example.HelloWorld">
<result>/example/HelloWorld.jsp</result>
</action>


可以先下个简单的例子看看

读书人网 >J2EE开发

热点推荐