url mapping to jsps

12 views
Skip to first unread message

rocity

unread,
Nov 29, 2010, 1:08:34 PM11/29/10
to Jaxcent
i have an index.jsp that makes calls to other JSPs, like header.jsp,
footer.jsp, etc. These jsps in turn return html to display their
respective portions of the page. i'm trying to integrate the clock
example in the header.jsp, but it's not working. when i navigate to
the jaxcentservlet21 area, it says that the jaxcent servlet is
configured ok.

i've made sure that header.jsp has a <p id="clock"></p> tag, and can
confirm this html is returned. my belief is that the url mapping is
incorrect. can i put in a wildcard for the url mapping, since i want
the mapping to occur on every page? if not, how do i map to JSPs, do i
use header.jsp or index.jsp.

any help is greatly appreciated, thanks.

Mukesh

unread,
Nov 29, 2010, 6:49:49 PM11/29/10
to Jaxcent
If the JSPs are "included", you should map the just main JSPs. You
can't map "header.jsp", because the browser is not going to see that.
Reply all
Reply to author
Forward
0 new messages