jsp

 

request.getHeader("referer");

 

404

response.setStatus(HttpServletResponse.SC_NOT_FOUND);

 

publicvoid validate(FacesContext context,UIComponent component,Object object){// Do some validation// And if failed: context.getExternalContext().setResponseStatus(404); context.responseComplete();}

 

你可能感兴趣的:(jsp)