File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

subfolder and context problem

 
luca invernizzi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I just started programming in jsp.
I have a problem about the jsp file.
In my application there are now more than 100 jsp files and they are all in the root folder (the web folder, use tomcat). It's going to become problematic way among all these files.
Now I would like to create subfolders to divide those 100 files based on their operational function.
Starting to move, I realized that become wrong all calls between the various jsp pages and such as loading images from the folder /img (now I have to set ../img because the page is in a subdirectory).

Is there a way to tell all these pages to refer to the parent folder as if they were there (change all the references is too long and difficult)?
Does anyone have any suggestions for me?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JspFaq. It outlines how to create URLs for images and other resources that do not depend upon the address of the current page.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic