SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
geet rahane wrote:1.what happens if we try to write some text (out.println("hello")) after requestDispatcher.forward()...
whether exception get thrown or just the output of forwarded resource get displayed??
2.what happens if we try to write some text (out.println("hello")) after response.sendRedirect()...
whether exception get thrown or the resource get redirected succesfully??
4.During forward on ServletContext if we had used relative path in requestDispatcher and then do forward on that object...what happens in this case....
5.Is */* a valid url pattern for servlet mapping?
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
It will not compile.3.If there is tag handler class which extends TagSupport not BodyTagSupport and whose doStartTag
method returns EVAL_BODY_BUFFERED...then is that code succesfully compiled or exception get thrown???
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6
After forward if we use like if exception occurs internally at first statement, the second will not be executed.I think in both the cases, the client will get normal response (the forwarded content and redirected page) and internally an exception will also be thrown on the server but the client will have no knowledge about it.
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6
SCJP5.0, SCWCD5.0, OCEJPAD6, OCPJWSD6
what it does to the out buffer that exists before calling forward ? it ignores the entire buffer, similarly it ignores after that.
Methods in this class never throw I/O exceptions, although some of its constructors may.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Get me the mayor's office! I need to tell her about this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|