public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException, CommunicationException, NamingException
{
String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
AccountFacadeHome accountFacadeHome = (AccountFacadeHome)CVUtility.getHomeObject("com.centraview.account.accountfacade.AccountFacadeHome","AccountFacade");
try
{
InvoiceForm invoiceForm = (InvoiceForm)form;
invoiceForm.convertItemLines();
HttpSession session = request.getSession(true);
UserObject userobjectd = (UserObject)session.getAttribute( "userobject" );
int individualID = userobjectd.getIndividualID();
session.setAttribute("highlightmodule", "account");
request.setAttribute(AccountConstantKeys.TYPEOFSUBMODULE, AccountConstantKeys.INVOICE);
request.setAttribute("body",AccountConstantKeys.EDIT );
// for getting data from EJB
AccountFacade remote =(AccountFacade)accountFacadeHome.create();
remote.setDataSource(dataSource);
Vector taxJurisdiction = remote.getTaxJurisdiction();
if(request.getParameter(AccountConstantKeys.TYPEOFOPERATION) != null)
if (request.getParameter(AccountConstantKeys.TYPEOFOPERATION).equals("ShowInvoice"))