HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException, CommunicationException, NamingException
{
String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
SupportFacadeHome supportFacade = (SupportFacadeHome) CVUtility
.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome",
"SupportFacade");
try
{
HttpSession session = request.getSession();
UserObject userObject = (UserObject) session.getAttribute("userobject");
int individualID = userObject.getIndividualID();
CategoryVO categoryVO = new CategoryVO();
CategoryForm catForm = (CategoryForm) form;
int catid;
String typeOfOperation = (String) request.getParameter(Constants.TYPEOFOPERATION);
catid = Integer.parseInt(request.getParameter("rowId"));
if ((typeOfOperation != null)
&& typeOfOperation.equalsIgnoreCase(SupportConstantKeys.DUPLICATE)) {
categoryVO.setOwner(individualID);
}
categoryVO.setCatid(catid);
SupportFacade remote = (SupportFacade) supportFacade.create();
remote.setDataSource(dataSource);
if ((String) catForm.getCategoryname() != null)
{
categoryVO.setTitle((String) catForm.getCategoryname());