你应该运行build.cmd不是.sh,而且你必须已经安装了apache的ant其实如果你只是初步使用,可以下载编译好的包

解决方案 »

  1.   

    我怀疑我下载的已经是编译好的包了呵呵
    有个问题在web-inf下web.xml这个我到是会配了
    还有一个xml写法知道了但是用什么名字?
    还是用什么名字都可以?我现在看到两个,有的用action_mapping.xml有的用struts-config.xml 内容是一样的定义url我想问一下是不是什么名字都可以?还是? 两个程序两个样是什么原因呢?
      

  2.   

    我昨天在resin下装的。
    http://jakarta.apache.org/struts/index.html
    当下来解压后
    你必须将 *.tld 文件拷贝到你的 WEB-INF 目录,将 struts.jar 文件拷贝到你的 WEB-INF/lib 下。
    这是resin下的。
    tomcat我不知道了。
      

  3.   

    1.下载已经编译好的jakarta-struts-1.1-rc1.zip
    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的例子,你可以直接用于开发
      

  4.   

    .war用什么打开? 其它的我都配置正确了我想是
    可是我运行一个struts的程序出错,只是一个简单的登陆验证
    type Status reportmessage Servlet action is currently unavailabledescription The requested service (Servlet action is currently unavailable) is not currently available.
    --------------------------------------------------------------------------------
      

  5.   

    struts-config.xml内容如下<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC
      "-//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>
      

  6.   

    if you account for this problem . i will be give you 
      

  7.   

    to biggie(飞碟) 
    你这样我信息不够,你将项目文件发我邮箱我帮你看好了,反正我今天不上班。
    [email protected]
      

  8.   

    GFox(小狐) 十分感谢,我打开了,struts-example例子也需要登陆可是在源文件中找,
    没有找到用户名和密码,不知道你运行过例子程序没有?另外一个例子是我在这下的
    http://www.fawcette.com/china/XmlFile.aspx?ID=123&page=3
      

  9.   

    我找到了原来在database.xml 里呵呵,
    有什么好的struts教程吗?
      

  10.   

    嗯,你搞定就OK了:)
    好的Struts教程啊,Mastering Jakarta Struts啦
      

  11.   

    http://jakarta.apache.org/struts/doc-1.0.2/api/index.html我想把这个API doc下载下来,不过网站好像没有提示下载?你有吗?发给我一份,马上结贴呵呵。
      

  12.   

    我没有,不过用不着啊,你想要api doc的话,自己用javadoc生成一个不就行了?:)