1.config.xml中:
<bean id="LoginAction" class="com.franlk.action.LoginAction">
<property name="commandClass">
<value>com.franlk.action.LoginInfo</value>
</property>
<property name="fail_view">
<value>loginfail</value>
</property>
<property name="
success_view">改为
successView
<value>main</value>
</property>
</bean>
2.web.xml中:
要有
<taglib>
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
如果没有引用*rt.tld 需将
<web-app xmlns="
http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="
2.4">
改为
<web-app xmlns="
http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd"
version="
2.3">
注意lib中要有jstl.jar、standar.jar两个包。