SCJP, SCWCD.
|Asking Good Questions|
Jack Weasels wrote:
But the problem I am facing is : be it 1 or 2 or 3 or 4 .htmls, their request uri's aren't being caught by the servlet
Jack Weasels wrote:
Now, If I change web.xml's url-pattern to /* instead of /test/* and provide response.sendRedirect("/test/wc/3.html"); in the doPost(), I am receiving too many redirects error for the former pattern(/*) and receiving 3.html page in the browser in the latter(/test/*) so, how does this work?
Jack Weasels wrote:Like, is there a way at all to send html file as response object in the dispatcher or there is only the following ways through which any data can be sent to client which are: PrintWriter or ServletOutputStream.
SCJP, SCWCD.
|Asking Good Questions|
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |