• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Jsp in servlet

 
Firoz navrang
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the RequestDispatcher ...

Good luck ...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you would like an example of this, see our SimpleMVC example in the CodeBarn.
http://faq.javaranch.com/java/CodeBarnSimpleMvc
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic