*/
protected void doListSubTypes(ActionMapping mapping, ActionForm form,
HttpServletRequest req, HttpServletResponse res, String s_type_id)
throws Exception {
int type_id = Integer.parseInt(s_type_id);
TypeBean tbean = DlogTypeDAO.getTypeByID(type_id);
StringBuffer xml = new StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n");
if(tbean==null)
xml.append("<type-not-found/>");
else{
List types = tbean.getSubTypes();
xml.append("<type id=\"");
xml.append(tbean.getId());
xml.append("\" name=\"");
xml.append(tbean.getName());
xml.append("\">\r\n");
xml.append("\t<subTypes>\r\n");
for(int i=0;types!=null&&i<types.size();i++){
TypeBean subType = (TypeBean)types.get(i);
xml.append("\t\t<subType id=\"");
xml.append(subType.getId());
xml.append("\" name=\">");
xml.append(subType.getName());
xml.append("\"/>\r\n");
}
xml.append("\t</subTypes>\r\n");
xml.append("</type>");
}