public void processNotDocument(ItsNatAttachedClientEvent event)
{
ItsNatServletResponse response = event.getItsNatServletResponse();
if (event.getPhase() == ItsNatAttachedClientEvent.REQUEST)
{
ItsNatServlet servlet = response.getItsNatServlet();
ServletRequest servRequest = event.getItsNatServletRequest().getServletRequest();
@SuppressWarnings("unchecked")
Map<String,String[]> newParams = new HashMap<String,String[]>(servRequest.getParameterMap());
newParams.remove("itsnat_action"); // Removes: itsnat_action=attach_doc
newParams.put("itsnat_doc_name",new String[]{"feashow.ext.core.misc.remCtrlDocNotFound"});
servRequest = servlet.createServletRequest(servRequest, newParams);
servlet.processRequest(servRequest,response.getServletResponse());
}
else // ItsNatAttachedClientEvent.REFRESH
{
response.addCodeToSend("if (confirm('Session is expired. Close Window?')) window.close();");
}