This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi I am trying to redirect/forward from jsp file to another jsp file but it ended up in error. Using request dispatcher my code are RequestDispatcher listpg=getServletContext().getRequestDispatcher("/updlist.jsp"); listpg.forward(req,res); I also tried res.sendRedirect("updlist.jsp"); but still cannot. I put the execution code in an if block. Can someone point out the reason. thanks.
Hero, Why are u creating trouble for yourself. Totally remove that RequestDispatcher part and use <jsp:forward page="xyz" /> in your if loop. It will work 100%. If it doesnt means it hasnt entered ur if statement.