CodesJava

Easy learning with example program codes

eclipse maven servlet hello world

Eclipse maven servlet hello world:

Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together.

Steps to create maven java web project in eclipse:

  1. In eclipse, click
Read More

error handling page in servlet

We have to use the error-page element in web.xml to specify the invocation of servlets in response to certain exceptions or HTTP status codes.
How to configure Read More

Can we call a jsp from the servlet?

Yes, we can call a jsp from the servlet using RequestDispatcher interface for example:

RequestDispatcher rd=request.getRequestDispatcher("/login.jsp");  
rd.forward(request,response
Read More

What is servlet collaboration?

Servlet collaboration is a way of communication between two servlets. Servlet collaboration can be achieved by 3 ways.

  1. RequestDispatchers include() and forward() method .
  2. Using sendRedirect()method of
Read More
Sign Up/ Sign In
Ask a Question


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki