• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic