首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

求教,自己写了一个structs2的helloworld,可总是出有关问题

2013-10-21 
求教,自己写了一个structs2的helloworld,可总是出问题。这是我工程的详情,在浏览器输入http://127.0.0.1:80

求教,自己写了一个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>


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

热点排行