CustomTag to generate and tags with absolute path

Generally we write our javascript and css styles in separate file and include them in JSPs using <script> and <style> tags. To include those resource we can use either relative URL or absolute URL. If you use absolute URL you need to include the context root name which is not a good practice. Later if […]

Read More

When to use RequestDispatcher.forward() and response.sendRedirect()?

Many people know about how RequestDispatcher.forward() and response.sendRedirect() works. RequestDispatcher.forward() is generally called Server side redirection and is used to forward to a resource within the same application. That resource could be a JSP or another Servlet. response.sendRedirect() is generally called as Client side redirection as it issues a new request from the browser. This […]

Read More