当前位置: 代码迷 >> Java Web开发 >> 项目好好的,忽然就Unknown tag (s:form).不知道为什么
  详细解决方案

项目好好的,忽然就Unknown tag (s:form).不知道为什么

热度:10826   发布时间:2013-02-25 21:07:25.0
项目好好的,突然就Unknown tag (s:form).不知道为什么。
项目好好的,突然就Unknown tag (s:form).不知道为什么。

------最佳解决方案--------------------------------------------------------
他都说了 未知名的标签了。
------其他解决方案--------------------------------------------------------
如果照楼上所说的话,楼主去项目的jar包那里右击,找到build path,里面的configure build path,进去后看看jar包对不对。其实我觉得是不是你对应的jsp里面没有导入struts标签啊,<%@ taglib uri="/struts-tags" prefix="s"%>这句话有没有?
------其他解决方案--------------------------------------------------------
重新编译一下?
------其他解决方案--------------------------------------------------------
Spring中hibernate映射没配置好啊
------其他解决方案--------------------------------------------------------
structs2标签只能从action跳转过来才能编译,直接访问jsp不行.不知道是不是你的问题
------其他解决方案--------------------------------------------------------
[amigo/sshmemo/dao/User.hbm.xm] cannot be opened because it does not exist

映射文件User.hbm.xml
------其他解决方案--------------------------------------------------------
看看导入 类库没。
------其他解决方案--------------------------------------------------------
我用myeclipse10搭建的ssh web工程,运行正确,各种包都有的。

开始写JSP页面的时候,用S标签都还有提示。后来好像是报了个错,然后JSP页面也跟着找不到标签了。
------其他解决方案--------------------------------------------------------
你的包重新引过应该就行了吧,我想啊
------其他解决方案--------------------------------------------------------
我重新部署项目也不行啊。这个问题困扰我很久了啊 不知道怎么解决!
------其他解决方案--------------------------------------------------------
包没有什么不对啊,因为之前我用这些标签都没问题,也没改动,好像就是报个错,然后就这样了。
<%@ taglib uri="/struts-tags" prefix="s"%>这句话肯定有撒,不然之前怎么能正常使用。
------其他解决方案--------------------------------------------------------
报错。
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [amigo/sshmemo/dao/User.hbm.xm] cannot be opened because it does not exist


Caused by: java.io.FileNotFoundException: class path resource [amigo/sshmemo/dao/User.hbm.xm] cannot be opened because it does not exist

这2个错。。。
------其他解决方案--------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">


<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
<bean id="testImp" class="util.TestImp">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="testAction" class="action.TestAction">
<property name="testFace" ref="testImp">
</property>
  相关解决方案