• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp's in a subdirectory of WEB_INF  RSS feed

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am porting an old app from jboss to weblogics 11g using Jdeveloper (oracle)
it has most of it's JPS's in a subdirectory of WEB-INF.

for some reason JSP's in a subdirectory of WEB-INF are not callable

http://localhost:7001/WEB-INF/jsps/foo.jsp
slos having a jsp that does <JSP:INCLUDE page="WEB-INF/jsps/foo.jsp"/> failes.

the JSP page will work if I move it out of WEB-INF.

Anyone have an idea on why it works in jboss but not WLS. I know I had done this years ago, I think on WLS8.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for some reason JSP's in a subdirectory of WEB-INF are not callable

http://localhost:7001/WEB-INF/jsps/foo.jsp

Correct: Nothing that's inside of WEB-INF will be served directly to a client. If JBoss once did this then that would have been a rather severe bug.
 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wouldn't you know it "google starts showing up what I was looking" after someone answers my question.
valid point. to all the articles on why and what the correct behavior is.

now the questions are:
why does jboss 4 not follow the "behavior"?
Do newer versions of jboss follow the behavior?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inside WEB-INF is the correct place for most JSPs because they should not be directly addressable via URL. Rather, they should be forwarded to by their respective page controller servlets.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!