Difference between Include, Forward and sendRedirect in
Servlet?
Answer Posted / abilash
include: will include another file in our current file
forward: will forward the current request to the forwarding page
sendRediect: will call the next page but it won't send the
same request to the new page but forward will send the same
request to the new page
| Is This Answer Correct ? | 96 Yes | 13 No |
Post New Answer View All Answers
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What is cgi?
What are the different methods involved in the process of session management in servlets?
How can we achieve transport layer security for our web application?
What is the purpose of inter-servlet communication?
What is the use of attribute in servlets?
How to rectify errors in java servlet while compilation?
How can the referrer and the target urls be used in servlet?
How do we share data using 'getservletcontext ()?
What is Servlet API used for connecting database?
Why filter is used in servlet?
What is servlet initializer?
What are the different methods involved in generic servlet?
Why do we have servlet listeners?
What is servlet configuration?