Questions tagged [web-inf]

WEB-INF is the name of a folder found in Java web applications. It is used to store deployment information such as the web.xml, required library files and compiled class files. It is normally not accessible from web. Any files which you want to put on war but do not want to make to public then web-inf is the place where you can keep those files.

185 questions
3
votes
1 answer

How to put JSP in WEB-INF correct?

I'm using MVC and want to put my JSP pages in WEB-INF to avoid direct access to it. I have an index.jsp page and other pages in jsp folder in Web Content and it works. It looks like this: -Web Content -index.jsp -jsp --main_read.jsp --... By the…
And
  • 343
  • 1
  • 5
  • 15
3
votes
1 answer

Can we change the name of WEB-INF

may i know if i can change the name of WEB-INF folder in any tomcat webapp. If no, then why as there is context.xml file in tomcat conf folder which contain the path of watchedresource. I tried renaming it but it doesn't work. Can you please tell me…
R. Rahul
  • 1,166
  • 3
  • 16
  • 40
3
votes
1 answer

How can I read files in my WEB-INF directory?

I'm running Java web application using Tomcat and I want to read a Properties file that's located in my WEB-INF directory. How can I get an InputStream to this Properties file so I can read it?
DyreSchlock
  • 867
  • 3
  • 13
  • 24
3
votes
1 answer

How to load StringTemplateGroups from the WEB-INF directory of a web archive

this question is somewhat related to this question: StackOverflow: Howto load a resource from WEB-INF directory of a web archive I want to use StringTemplate and want to load my templates via a StringTemplateGroup. Until know I use the method shown…
ThE_-_BliZZarD
  • 722
  • 2
  • 12
  • 26
3
votes
2 answers

Error moving JSP file into WEB-INF directory with Stripes

I have the following Stripes ActionBean: package myapp; import net.sourceforge.stripes.action.*; public class WelcomeActionBean extends MyAppActionBean { @DefaultHandler public Resolution view() { return new…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
3
votes
1 answer

Git and web-inf

So I have pushed my first project to github but the web-inf folder has not pushed. From reading a bit on google it seems that this is due to git.ignore and it is common practice to not push/pull web-inf. However in my project it contains a web.xml…
lpoulter
  • 158
  • 9
3
votes
1 answer

Grails WEB-INF accessible from Deployed app

In grails application, one can access the WEB-INF contents including all the .gsp content as well as .class file when deployed. I am using grails 2.3.5 and deploying the war in the tomcat 7. You can access the files using…
zdesam
  • 2,936
  • 3
  • 25
  • 32
3
votes
2 answers

RequestDispatcher.forward() to resource under "/WEB-INF" doesn't work in WebSphere

In one of my servlets, I invoke RequestDispatcher.forward() call to a static resource somewhere under WEB-INF folder: request .getRequestDispatcher( "/WEB-INF/some/path/image.gif" ) .forward( request, response ); Navigating to this…
Anton
  • 1,560
  • 18
  • 29
3
votes
1 answer

Google App Engine WEB-INF and META-INF

When you create a new Web Application Project using the Google-Eclipse plugin, it creates an entire project directory structure for you, including: src/ META-INF/ jdoconfig.xml persistence.xml war/ WEB-INF/ lib/ …
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
3
votes
1 answer

Prevent direct access to composite components by placing them inside /WEB-INF

I'm trying to define some composite components in my web application. According to the tutorials i read, i have to place the xhtml files inside a resource folder located in webcontent. This solution is problematic, given that it would make those…
3
votes
1 answer

How to distribute libraries used within my Jython war?

I've read the answers to the related questions about managing used libraries in a Jython application: How can I install various Python libraries in Jython? Best method for managing Jython packages But I don't want to put those libraries in a…
user323094
  • 3,643
  • 4
  • 21
  • 30
3
votes
3 answers

My webapplication works fine when testing it in IDE, but doesnt work on webserver (tomcat)

I`ve created my first webapplication. I set up my webserver (tomcat+apache2) and tried to deploy the app on it. When I tested the app it worked fine with my test environment, but when created the war and deployed it the following error (exception)…
heiningair
  • 441
  • 1
  • 6
  • 23
2
votes
1 answer

where .jsp files put in web project

I have an issue where to put view (.jsp) file in the web applications.little bit confuse it may be inside the WEB-INF folder or out side the WEB-INF folder. Lot of spring projects view(.jsp) files are stored inside the WEB-INF folder by creating sub…
Amila
  • 243
  • 1
  • 10
  • 24
2
votes
1 answer

Tomcat6 ignores web-inf/lib

Brief: Tomcat6 can't recognize my ojdbc14.jar in WebRoot/WEB-INF/lib. I suppose I don't need to configure anything, just putting the .jar file in there and it should work. Details: I've created a web application and put ojdbc14.jar in WEB-INF/lib…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
2
votes
1 answer

How to solve a JAR conflict in Tomcat web app required for a plugin that has a dependency on a class already in WEB-INF/lib?

I built a plugin for a web app that uses tomcat. The plugin is registered as a servlet bean. Now I want to use rabbitmq with the latest amqp client lib. Which has a dependency on classes in slf4j-api-1.7.25.jar. Unfortunately the web app has also…
mbr
  • 303
  • 1
  • 4
  • 14
1 2
3
12 13