- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
String ID = httpServletRequest.getParameter("id");
ChannelData data = new ChannelData();
int pointPos = ID.indexOf(';');
while(pointPos >= 0) {
String CurrentID = ID.substring(0, pointPos);
data.setId(new Integer(CurrentID));
ChannelData channel = (ChannelData) channelDao.Get(Integer.valueOf(CurrentID));
channelService.delete(data);
ID = ID.substring(pointPos + 1, ID.length());
pointPos = ID.indexOf(';');
}
if(ID.length() > 0) {
ChannelData channel = (ChannelData) channelDao.Get(Integer.valueOf(ID));
data.setId(new Integer(ID));
channelService.delete(data);
}