Is it accurate to say that we should never invoke a JSP file directly? It
should always be forwarded to from some servlet?
What if my first page (say, index.jsp) of my web app has some db query
results being displayed, is the right way to make it so that my first page
is a servlet and after
A common pattern is to have your welcome file be a jsp that does nothing but forward
to your first action.
-Original Message-
From: Anuj Agrawal [mailto:[EMAIL PROTECTED]]
Is it accurate to say that we should never invoke a JSP file
directly? It
should always be forwarded to
So the welcome file is a jsp that forwards to a servlet which in turn
forwards to another jsp?
Ok - in a web.xml (from Struts), i also saw:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
I guess i'd like to map ALL servlets (not just the
Also, did you really mean that the welcome jsp would forward to the first
action, and not redirect to the first action? I.e. is it jsp:forward
page=../ or c:redirect url=.. / .. The forward appears to be a better
option since the URL in the browser doesn't change.
Anuj.
-Original
Anuj == Anuj Agrawal [EMAIL PROTECTED] writes:
Anuj Also, did you really mean that the welcome jsp would forward to the first
Anuj action, and not redirect to the first action? I.e. is it jsp:forward
Anuj page=../ or c:redirect url=.. / .. The forward appears to be a better
Anuj