I'm using the following piece of code for a Web Application
String OS=System.getProperty("os.name").toLowerCase();
if(OS.contains("win"))
{
request.getRequestDispatcher("/result.jsp").forward(request, response);
}
request.getRequestDispatcher("/result1.jsp").forward(request, response);
But when i run this application on windows OS it does not go to result.jsp.. It is going to result1.jsp
Am i using it in a right way?