Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in loading a page

 
Amos Matt
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Amos Matt
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic