To find out if a servlet request button action is coming from a forward or not, use this code below
if( instForm.isBtnClose() )
{
// check if this "CLOSE==TRUE" comes from other pages;
if( null==request.getAttribute("javax.servlet.forward.servlet_path") )
{
return mapping.findForward("close");
}
}
No comments:
Post a Comment