| Author |
problem in loading a page
|
Amos Matt
Greenhorn
Joined: Mar 30, 2007
Posts: 15
|
|
The following is the existing code ... working fine... <FRAMESET rows="10%,*" framespacing="0" border="false" frameborder="0" frameborder="no"> <frame src="<%= request.getContextPath() %>/jsp/Header.jsp" name="Header" scrolling="NO" noresize> <frameset cols="17%,*" framespacing="0" border="false" frameborder="0" frameborder="no"> <FRAME SRC="<%= request.getContextPath() %>/jsp/LeftNav.jsp" NAME="LeftNav" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no NORESIZE> <FRAMESET rows="9%,8%,*" framespacing="0" border="false" frameborder="0" frameborder="no"> <FRAME SRC="<%= request.getContextPath() %>/jsp/MainNav.jsp" NAME="Main" MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no> <FRAME SRC="<%= request.getContextPath() %>/jsp/SubNav.jsp" NAME="SubNav" SCROLLING=no> <FRAME SRC="<%= request.getContextPath() %>/jsp/BodyNav.jsp" NAME="BodyNav" NORESIZE> </FRAMESET> </FRAMESET> </FRAMESET> here i moved... the jsp page to /WEB-INF/jsp/sys/ folder. now i changed the code <frame src="<%= request.getContextPath() %>/jsp/Header.jsp" name="Header" scrolling="NO" noresize> to <frame src="<%= request.getContextPath() %>/WEB-INF/jsp/sys/Header.jsp" name="Header" scrolling="NO" noresize> ... for all jsps. It is not working... the pages are not loading. Please... somebody help me. Thanks
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Nothing under WEB-INF can be hit directly from the web. You'll either need to move your JSPs out of WEB-INF, create a JSP (not under WEB-INF) that forwards to them, or (Best Practice) create a controller servlet that forwards to your JSPs.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Amos Matt
Greenhorn
Joined: Mar 30, 2007
Posts: 15
|
|
Thanks Ben.... For security reason i dont want to take out the jsp from WEB-INF. So, please help me out in... a creating controller servlet. Thanks
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
I have an example app with a very simple controller servlet that you can use for a reference. http://simple.souther.us Look for SimpleMVC
|
 |
 |
|
|
subject: problem in loading a page
|
|
|