I want to make a jsp page which checks some condition and if it is not true it should send error response 404 to server.. so that the tomcat server should think that the page is not available...
is it possible to do in jsp..???
I want to make a jsp page which checks some condition and if it is not true it should send error response 404 to server.. so that the tomcat server should think that the page is not available...
is it possible to do in jsp..???
Have you tried response.sendError(HttpServletResponse.SC_NOT_FOUND)
no i haven't tried it yet... will try it and let you know ..
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.