이메일 kc select 오류 해결
This commit is contained in:
parent
9823777d36
commit
2719dac780
@ -205,6 +205,7 @@ public class SelectTag extends SimpleTagSupport {
|
||||
if (codeList != null) {
|
||||
for (CmmnDetailCode code : codeList) {
|
||||
String cd = code.getCode();
|
||||
System.out.println("cd : "+ cd);
|
||||
boolean flag = true;
|
||||
// 포함하는코드가 존재한다면..
|
||||
if(CollectionUtils.isNotEmpty(includeSet)){
|
||||
@ -223,7 +224,9 @@ public class SelectTag extends SimpleTagSupport {
|
||||
}
|
||||
|
||||
if(flag){
|
||||
if (code.getCode().equals(selectedValue.trim())) {
|
||||
String trimmedSelectedValue = (selectedValue != null) ? selectedValue.trim() : null;
|
||||
// if (code.getCode().equals(selectedValue.trim()) {
|
||||
if (code.getCode().equals(trimmedSelectedValue)) {
|
||||
tag.append("\n\t\t<option value=\"" + StringUtil.escapeXml(code.getCode()) + "\" selected=\"selected\" >" + StringUtil.escapeXml(code.getCodeNm()) + "</option>");
|
||||
} else {
|
||||
tag.append("\n\t\t<option value=\"" + StringUtil.escapeXml(code.getCode()) + "\">" + StringUtil.escapeXml(code.getCodeNm()) + "</option>");
|
||||
@ -232,11 +235,10 @@ public class SelectTag extends SimpleTagSupport {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.out.println("Exception Occured!!!");
|
||||
}
|
||||
|
||||
tag.append("\n\t</select>\n");
|
||||
|
||||
out.print(tag.toString());
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user