calling a jsp from a servlet
Posted on 2007-04-03
Well I have a servlet (servlet/CommandDo) and also an jsp file (dataEntry.jsp) well this jsp call it self to update some html select controls values (country--->state--citiy).
after some validation process I call the jsp file from the servlet usign the dispatcher method (/dataEntry.jsp or /myapplication/dataEntry.jsp) but I clearly notice that I'm out of the context cause I don't get the styles of the CSS wich path is relative and when I want to update the controt values (I select a country and the jsp call itsefl to update the state control by submitting the form and the location is "dataEntry.jsp") I get an error cause It says that I'm still at the servlet context " servlet/dataEntry.jsp not found" and they are right!!! What should I do ??? (I've already tried with the response.sendRedirect() method)