[Logo]
Forums Register Login
How to Jsp in servlet
Hi All,

How Servlet add JSP page for responding to the view page.

Jsp sends the request to servlet, while responding the response, servlet needs to add the JSP page for the view.

Help would be appriciate.

Thanks

Gaju
Use the RequestDispatcher ...

Good luck ...
If you would like an example of this, see our SimpleMVC example in the CodeBarn.
http://faq.javaranch.com/java/CodeBarnSimpleMvc
That new kid is a freak. Show him this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 718 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 22, 2018 04:46:30.