[My Blog]
All roads lead to JavaRanch
Originally posted by David O'Meara:
String target = "error.jsp";
You set the target, but in this case you don't call forward so nothing happens.
[My Blog]
All roads lead to JavaRanch
request is dispatched to the server ?
So, if it's not mapped to everything then it would have forwared the request to subscription.jsp file ?
for now harcoded the session objects.
it's getting the req.getPathInfo() as null. I expected it to get the result as /subscription.
[My Blog]
All roads lead to JavaRanch
I am following the MVC architecture, I just read that it's a good practice to seperate the "view"(jsp) from the "controller"(servlet) and this my first time trying the MVC design.
[My Blog]
All roads lead to JavaRanch
It's a very bad idea. That cause all requests, even those for resources like images and style sheets, to be routed to the servlet. Not good.I don't think it's a good idea to map "*" to the servlet.
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|