java吧 关注:1,221,463贴子:12,676,386
  • 0回复贴,共1

跪求大神。。struts2中tag的问题

只看楼主收藏回复

严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /Longin2.jsp(38,2) No tag "form" defined in tag library imported with prefix "sx"
解决方法:
1.项目中引入struts2-dojo-plugin-2.1.6.jar。
2.jsp中加入如下内容
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/ struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
3.<head>中加入下列
<head>
<s:head theme="xhtml"/>
<sx:head parseContent="true"/>
</head>
4.页面中使用<sx:datetimepicker name="birthday" value="%{date}" displayFormat="yy-MM-dd" />
上面方法是我百度到的,,用了还是不能解决。。


IP属地:福建1楼2012-12-18 10:36回复