Question: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet(/CyberShopping) public final class CyberShopping extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse

import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet("/CyberShopping") public final class CyberShopping extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } }

Java

  • Your site only works for IE (check word "Trident" for IE or not). If not, show error page using HTML standard error code "HttpServletResponse.SC_HTTP_VERSION_NOT_SUPPORTED" and the following message "Only Chrome browser is working for this site. In 5 seconds, you will be redirected to google.com site."
  • When user is not using Chrome as above validation, you need redirect user to www.google.com page after 5 seconds.
  • When user is using Chrome, you need to send user to StartMyShopping.java servlet below.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!