Closed ardygithub closed 5 years ago
⑯ 全般、sタグからspringタグに改修するときに、まず当該タグのNameはFormに存在するかを確認する必要ある。
もしFormタグに存在しなかった場合に、相応するHtmlタグに改修しなければならない
⑰ JSに改修するタグのIDを使っているかどうかを確認する必要ある。
もし使っていれば、<Formタグにidを指定する必要ある。
⇒
※<sタグがhtmlタグに解析するときに、もしID指定していなければ、Form名をNameの先頭に追加し、"."を"_"に変換して、htmlタグのIDとする。
⑱ <s:radio ⇒ <form:radiobuttons
⇒
◆改修規模:JSPファイル198件
① パッケージの変更
PJNAME\web\jsp\xxxxxx ※ xxxxxxは機能ID ⇒
PJNAME-web\src\main\webapp\WEB-INF\views\xxxxxx
② タグインポートの切替
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%> 追加
<%@ taglib prefix="s" uri="/struts-tags"%> 削除
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%> 追加
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 追加
③ タグの切替
⇒
① s:text ⇒ spring:message