유치하지만 이런것도 가끔은 써야하는 상황이 있다.
[CODE]<%<BR>String comment = “12311_#_92_#_I am not gonna be here.”;<BR><BR>String[] result = comment.split(“_#_”);<BR><BR>out.println (“<br/>Agreements : ” + result[0]);<BR>out.println (“<br/>Disagreements : ” + result[1]);<BR>out.println (“<br/>Comment : ” + result[2]);<BR><BR><BR>%>[/CODE]
JSP 소스 코드
Agreements : 12311
Disagreements : 92
Comment : I am not gonna be here.
결과