• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in loading a page

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic