.war用什么打开? 其它的我都配置正确了我想是 可是我运行一个struts的程序出错,只是一个简单的登陆验证 type Status reportmessage Servlet action is currently unavailabledescription The requested service (Servlet action is currently unavailable) is not currently available. --------------------------------------------------------------------------------
有个问题在web-inf下web.xml这个我到是会配了
还有一个xml写法知道了但是用什么名字?
还是用什么名字都可以?我现在看到两个,有的用action_mapping.xml有的用struts-config.xml 内容是一样的定义url我想问一下是不是什么名字都可以?还是? 两个程序两个样是什么原因呢?
http://jakarta.apache.org/struts/index.html
当下来解压后
你必须将 *.tld 文件拷贝到你的 WEB-INF 目录,将 struts.jar 文件拷贝到你的 WEB-INF/lib 下。
这是resin下的。
tomcat我不知道了。
2.将jakarta-struts-1.1-rc1.zip\lib下的*.jar copy到你的web-inf下面的lib目录下
3.将jakarta-struts-1.1-rc1.zip\lib下的*.tld copy到你的web-inf目录下
4.然后在web-inf目录下建立struts-config.xml,
如果不会建立,可copy jakarta-struts-1.1-rc1.zip\webapps\struts-blank.war\WEB-INF\struts-config.xml过来,这是一个空的struts-config.xml的架子
5.修改web.xml,
如果不会修改,可copy jakarta-struts-1.1-rc1.zip\webapps\struts-blank.war\WEB-INF\web.xml过来,这是一个空的配置好Struts了的web.xml的架子6.其实jakarta-struts-1.1-rc1.zip\webapps\struts-blank.war就是一个空的Struts的例子,你可以直接用于开发
可是我运行一个struts的程序出错,只是一个简单的登陆验证
type Status reportmessage Servlet action is currently unavailabledescription The requested service (Servlet action is currently unavailable) is not currently available.
--------------------------------------------------------------------------------
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"><struts-config>
<action-mappings>
<action path="/login" type="com.javapro.struts.LoginAction"/>
<action path="/logout" type="com.javapro.struts.LogoutAction"/>
<action path="/viewSecret" type="com.javapro.struts.ViewSecretAction"/>
</action-mappings>
</struts-config>
你这样我信息不够,你将项目文件发我邮箱我帮你看好了,反正我今天不上班。
[email protected]
没有找到用户名和密码,不知道你运行过例子程序没有?另外一个例子是我在这下的
http://www.fawcette.com/china/XmlFile.aspx?ID=123&page=3
有什么好的struts教程吗?
好的Struts教程啊,Mastering Jakarta Struts啦