web.xmlの中に
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</jsp-config>
のようにtldファイルを定義
でもって、JSPのなかに
<%@ taglib uri="/tags/struts-html" prefix="html" %>
とか書くと、カスタムタグ<html>が使える。
で、tldファイルの中にはtagの処理??定義を書いておくと。
めんどいから省略。
<jsp-config>
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
</jsp-config>
のようにtldファイルを定義
でもって、JSPのなかに
<%@ taglib uri="/tags/struts-html" prefix="html" %>
とか書くと、カスタムタグ<html>が使える。
で、tldファイルの中にはtagの処理??定義を書いておくと。
めんどいから省略。