Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Jsp in servlet  RSS feed

 
Firoz navrang
Greenhorn
Posts: 4
  • 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
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!