有包没有倒入
大楖是标筌库没有也可能是JMV有问题
因为是ERROR这几天高手都在火车上
过几天再问
大楖是标筌库没有也可能是JMV有问题
因为是ERROR这几天高手都在火车上
过几天再问
解决方案 »
- 有趣的火狐
- 求助,调用webservice 出现java.lang.VerifyError问题,麻烦大家花点时间看看了
- 关于java ping程序统计icmp报文 __大家来共同研究,学习 与进步:)
- 在用struts框架编写程序时遇到的问题,请高手帮忙解答!
- 请教一个问题,如何用struts上传图片文件,提供一点信息,非常感谢
- 如果把struts的data source和hibernate联系起来
- 工作流:求XPDL解析器的C#版本或Java版本
- 50分 求功能最全的log4j配置文件
- 今天高兴,大散分
- 请教一下,http协议
- 难度:Throwable.printStackTrace()是怎么实现的?
- tomcat 5.0连接池配置问题 在线等 救急
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"><web-app>
<display-name>Struts Example Application</display-name> <!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list> <!-- Application Tag Library Descriptor -->
<taglib>
<taglib-uri>/WEB-INF/app.tld</taglib-uri>
<taglib-location>/WEB-INF/app.tld</taglib-location>
</taglib> <!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib> <taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib> <taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib></web-app>
jbuild???
再配一次jbuild
试试
一定是你的struts包没有倒全
一共要下二个压缩包
十几个class
你再看看别人的再试试
我出过这东东
就是这么解决的
.;D:\j2sdk1.4.2_04\lib;D:\j2sdk1.4.2_04\lib\dt.jar;D:\j2sdk1.4.2_04\lib\tools.jar;D:\j2sdk1.4.2_04\lib\dt.jar;D:\j2sdk1.4.2_04\lib\servlet.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet.jar
其中和`servlet.jar有关的都是我后来加的,也不行
应该是漏了什么标签库
2、将标准的 struts 库加到自己的工程中
3、重新编译
4、恭喜你,成功了
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
struts.jar
多余的删除5、...
Renders an HTML <html> element with language attributes extracted from the user's current Locale object, if there is one.
Attribute Name Description
lang Since: Struts 1.2Renders a lang attribute with the locale stored in the user's session. If not found in the session, the language from the Accept-Language HTTP header is used. If still not found, the default language for the server is used. (RT EXPR)
locale DEPRECATED: Creating a session is undesirable for apps that don't support them. Use the lang attribute to acheive the same functionality without creating a session. Set to true in order to store a Locale in the session based on the current request's Accept-Language header (if any) if none has currently been set. This attribute will create a session if one does not already exist. The lang attribute is rendered with the appropriate language code.(RT EXPR)
xhtml Since: Struts 1.1Set to true in order to render xml:lang and xmlns attributes on the generated html element. This also causes all other html tags to render as xhtml. (RT EXPR)
你的这个好象和我的这个不是一回事啊
我试了你的方法,结果还是一样,邪了,我拷的Struts的例子都不行
我试了你的方法,结果还是一样,邪了,我拷的Struts的例子都不行
.....
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
</web-app>2、你的JSP引入taglib有问题,应当与web.xml里面的名称才对,eg:
/tags/struts-bean<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
而不是你写的全路径的格式,你试试看。
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>在web.xml中<taglib-uri>给出标签库的逻辑名称。这通常看起来像是一个文件路径,但其实不是。JSP在导入标签库时将引用这个URI。
我的web.xml里是:
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
JSP里:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
这个是一致的,是没有问题的,我现在怀疑是我的Tomcat或者是系统出了问题,因为同样的东西在公司的机器上就一切正常.我把Tomcat都从D盘改装到E盘还是一样,而且admin的页面都是进不去,后台报出了:
2005-3-19 22:47:24 org.apache.catalina.authenticator.FormAuthenticator authenticate
警告: Unexpected error forwarding to login page
javax.servlet.ServletException: Error instantiating servlet class admin.login_jsp
这在以前都是好的.
不好使,我都换了一个分区了,还是一样
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
改为
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">