无法在我的系统中配置 Struts
我已经安装了Eclipse Heloios3.6和Tomcat 6.0和jdk 1.6。
你能给出struts的库文件和struts的配置文件,即struts-config.xml和web.xml吗?
当我尝试运行 struts 时,它显示请求的资源不可用错误。
I have installed Eclipse Heloios3.6 and Tomcat 6.0 and jdk 1.6.
Can you give the library files for struts and configuration file for struts namely struts-config.xml and web.xml?
While I tried to run struts, it shows the requested resource is not available error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
假设您指的是 Struts 2,您是否查看过这里: http://struts .apache.org/2.x/docs/home.html?
web.xml 的核心部分是这样的:
然后,类路径中有一个 struts.xml,而不是 struts-config.xml(尽管您可能能够配置查找)。
Assuming you mean Struts 2, did you have a look here: http://struts.apache.org/2.x/docs/home.html?
The core part of web.xml is this:
Then there's a struts.xml in your classpath, not a struts-config.xml (although you might be able to configure the lookup).
从官方下载页面下载示例应用程序并在您的 tomcat 中运行
它不仅会给您一个运行示例,还会帮助您了解他们如何打包应用程序、哪些资源在哪些位置、所需的依赖项是什么以及什么运行应用程序所需的其他配置
Struts2 示例应用程序下载
从此处下载示例应用程序你会的获取 struts2-blank-xxx war 文件,这是一个标准的 struts2 结构,正在运行 hello world 应用程序
download sample applications from there official download page and run in your tomcat
It will not only give you a running example but also will help you to understand how they have packed there application what resources is going at what places,what are the required dependencies and what other configurations one need to run an application
Struts2 Sample Application Download
Download sample applications from here and you will get struts2-blank-x.x.x war file which is a standard struts2 structure with running hello world application
您需要的 jar 文件,首先是:
你的 struts.xml 将具有以下结构:
The jar files you need, to start with:
Your struts.xml will have this struture: