关于struts的小问题! 楼主看看下面的连接。http://expert.csdn.net/Expert/topic/2924/2924229.xml?temp=9.070987E-02 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同意一楼的看一下你的CONFIG文件 struts-config.xml是自动生成的啊,应该没什么问题我把struts下的lib的*.jar文件都拷到tomcat下的/common/lib里,可是tomcat就不能启动啊有谁知道告诉小弟我一下啊 一个可能的原因是你引用的formbean没有保存在request或者session等对象中 我把struts下的lib的*.jar文件都拷到tomcat下的/common/lib里,可是tomcat就不能启动啊?不会吧?如果不拷到下面能不能启动呢?我想你还是应该把struts-config.xml和web.xml都再检查一下。 请问lhbf(牧野),我只看见可以把action设置为request或者session。formbean没保存在request或者session等对象中,该如何设置了。 我的struts-config.xml和web.xml是easystruts自动配置的,应该没问题struts-config.xml的代码是<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config> <data-sources /> <form-beans> <form-bean name="HelloWordForm" type="test.struts.form.HelloWordForm"> <form-property name="word" type="java.lang.String" /> </form-bean> </form-beans> <global-exceptions /> <global-forwards /> <action-mappings> <action attribute="HelloWordForm" name="HelloWordForm" path="/helloword" type="test.struts.action.HelloWordAction" validate="false"> <forward name="success" path="/HelloWord.jsp" /> </action> </action-mappings> <controller /> <message-resources parameter="test.struts.ApplicationResources" /></struts-config> 是不是因为我用的是2000Server,谁用的是xp的,有没有这样的问题啊??? 将STRUTS的API中的LIB全部COPY到PROJECT的web-inf/lib下 java.lang.NullPointerException,空指针错误 Tomcat 项目路径 配置到F:\Release\DGHIS目录下 applicationContext.xml配置依赖检查问题 页面调用自身 运行JSP出现问题,请大家帮忙 jsp特别简单的问题,帮忙啊? Socket通讯时报了这么一个错误,不知何故? 我想实现按下表单中的一个按钮后弹出一个对话框要求输入数字,确定后将数字在当前页面中显示(高手请进!) sql2000直接连接的问题,高分! jdk编译servlet时问题 jsp连接数据库如何调用存储过程?如何接收返回的数据集? 求救这个MYSQL的查询语句怎么写
看一下你的CONFIG文件
我把struts下的lib的*.jar文件都拷到tomcat下的/common/lib里,可是tomcat就不能启动啊有谁知道告诉小弟我一下啊
不会吧?如果不拷到下面能不能启动呢?我想你还是应该把struts-config.xml和web.xml都再检查一下。
struts-config.xml的代码是
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="HelloWordForm" type="test.struts.form.HelloWordForm">
<form-property name="word" type="java.lang.String" />
</form-bean>
</form-beans>
<global-exceptions />
<global-forwards />
<action-mappings>
<action
attribute="HelloWordForm"
name="HelloWordForm"
path="/helloword"
type="test.struts.action.HelloWordAction"
validate="false">
<forward name="success" path="/HelloWord.jsp" />
</action>
</action-mappings>
<controller />
<message-resources parameter="test.struts.ApplicationResources" />
</struts-config>