hey i have a java web project. and when i deploy the war in the server starting some problems to appear. http://shifter.co.il/ShiftWeb/ username:yair password:1234 when loggin the servlet include to the suitable servelt.
request.getRequestDispatcher("/AdminServlet").include(request, response);
and the AdminServlet forward to a HTML page:
RequestDispatcher dispatcher =
request.getRequestDispatcher("/templates/admin.html");
dispatcher.include(request, response);
the problem is: instead of reading the html in include it in the web its just showing the html code. here is what supposed to happen when loggin in (when i deploy the war from my computer): http://prntscr.com/k8yqyx here is what happening now (when i deloy the war from the server): http://prntscr.com/k8yrd9
any idea why its happening?
Aucun commentaire:
Enregistrer un commentaire