How Secure one folder in Webapplication of Tomcat

Hi Everybody,
Really It's very urgent
I developed one webapplication in Tomcat5.0 container.
My folder structure is like this
C:\Tomcat 5.0\webapps\Test\jsp
C:\Tomcat 5.0\webapps\Test\images
C:\Tomcat 5.0\webapps\Test\imp
By accessing in the IE i m able to aceess that folder including that documents.
Like : http://localhost:8080/Test/imp/a.doc
http://localhost:8080/Test/imp/b.doc
http://localhost:8080/Test/imp/c.doc
I don't give access to imp folder and documents inculded in that folder...
Thanks in advance..
regards
Sridhar

If you don't want people to access them over the web, you can put them under the WEB-INF folder. Anything under WEB-INF is not accessible to the casual browser, but can be retrieved using a forward/include.
Also you could look at security constraints in your web app.
You can get an idea about it here: http://www.caucho.com/resin-3.0/security/tutorial/security-basic/index.xtp

Similar Messages

  • How does one set databse parameters in Tomcat to run a servlet?

    Hi, I am trying to run a applet-servlet code, downloaded from the web. According to the installation instructions, the following is stated:
    Database Parameters. You can provide different database parameters to the servlet. These parameters are set during the administration of the servlet.
    dbDriver - name of the database driver class name (default = sun.jdbc.odbc.JdbcOdbcDriver)
    dbURL - complete database URL (default = jdbc:odbc:StudentDatabase)
    userid - user id (default = <none>)
    passwd - password (default = <none>)
    I am running TOMCAT on a Windows2000 machine. My question is how to does one set the parameters in TOMCAT. What is the default userid and password for TOMCAT.
    Any help/advise is appreciated in advance. Thanks.Regards.

    May be parameters must be set in web.xml in your war

  • I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    What is the title of the other bookmark folder that can not be deleted?
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Please report back soon.

  • How do I move up one folder while browsing Time Machine?

    When I'm viewing a folder in Time Machine's "Star Wars" view, how do I move up one folder, to view the current folder's parent folder?
    In Finder, I have several ways to do it: I could either hit CMD+Up Arrow, or CMD-click the title bar then click on the parent folder I want, or double-click the folder I want from the folder path in the bottom bar. But none of these methods work in Time Machine.

    JUst like you would in the Finder.  I use the Path button in the Finder's toolbar:
    If you don't thave the Path button in the toolbar use the Customize Toolbar menu option in any Finder window to place it in the toolbar.
    OT

  • How do I use more than one folder for screensaver on my mac

    I have 3 separate folders that I want my computer to use when it switches to the screensavers but I can only get it to use one folder. I really want it to switch choose from the 3 different folders. Someone set it up for me before so I know it does it, I just can't figure out how. Thanks!

    The presets from earlier versions of GR should all be in the same place anyhow.. so reinstalling GR5 into it's correct locvation shouldn't affect anything regarding those other presets. In fact, as far as I can recall.. GR5 should ask if you want to import older presets when you first run GR5 standalone (The app version of GR5 in your applications folder) after install....
    Then those same presets should be present in in the AU version of GR5....
    Also GR4 (So long as you updated it to the latest version via the Service Center) should also continue to work with Logic Pro anyhow.. and load when you load an older project which used that version....
    Finally, any version you may have installed elsewhere.. won't work with Logic Pro because LP uses the AU Component version that is installed by the NI installer and therefore located in your components folder...  Those other versions are more likely to be copies of the standalone version.. which LP9 doesn't use.

  • How can I import songs which are filed basis one album/compilation as one folder?

    How can I import songs which are filed basis one album/compilation as one folder?
    i can drag and drop one folder which is a proper album into itunes under playlist. if i drag and drop two proper albums into itunes it is also ok but if itunes does not know my own compliations and i drag and rop my 3000 folders in one shot into itunes i get only one playlist containing all songs.
    pleased to hear if anybody know how i can avoid to do 3000 times drag and drop a folder into itunes.
    rgds, alexander

    Before you begin the import, edit the properties of the tracks to set the Album Artist to Various Artists and Part of a Compilation to Yes.
    For more info. see Grouping tracks into albums.
    tt2

  • How do I move pictures from one folder to another folder?

    How are photos moved from one folder to another?  Second question:  How can a folder be renamed?

    In PSE11 Organizer, your managed folders(folders from which you have imported your media) are shown in your left panel under "My Folders". There is a small icon next to this label 'My folders" which on mouse hover says: "Show folder hierarchy". Click on this one to see the folder tree. Now expand teh tree to a folder from where you want to move files from. Also expand the folder tree such that your destinatio folder is also visible. Just click on source folder so that you see the media to be moved. Select and drag them to the destination folder icon.
    Also if you want to move your media to an unmanged folder(which does not have any media imported into EO yet), you need to right click teh parent folder and select "show all sub folders" to view that folder. And then you can move your media in the same way.
    Hope that helps!
    Regards,
    vaishali

  • How can I set up multiple email accounts in one folder in Thunderbird?

    Hello; first time poster here.
    I own a business that has several email accounts. I am trying to create a folder (titled my business name), then set up all of the email accounts for my business so they all are in that one folder. I have tried for two days to figure this out and can't seem to do it.
    I have been using Outlook, but it has too many whistles and bells and is way to slow, so I thought I'd give TB a try.
    Can anyone explain IF this is possible, and if so, how can I do it?
    Thanks in advance for any and all assistance.
    Andrew

    http://kb.mozillazine.org/Global_Inbox

  • How can I keep every single photo from saving to "collections""my photo stream""camera role" and just use one folder? And why do I have to delete the same pictures 4 times? In "collections""myphotostream"camera role""deleted photos" I need ONE FOLDER

    im sick of deleting the same picture 4 separate times, I want to limit everything to one folder and only have to delete one time, how? Why does this have to be so complicated

    Photos you take on your camera are in the Camera Roll and are like the film in a camera.
    Photo Stream is an independent stream of photos from all devices that are logged onto the same iCloud account and that have Photo Stream turned on. Photo Stream photos are kept in the cloud for 30 days or up to 1000 photos, whichever comes first, so unless you have a particular photo you just don't want to stay out there for 30 days, you don't really need to delete Photo Stream Photos. They are temporary. Your device will continue to keep your Photo Stream photos from prior to the 30 day limit, but if you switch Photo Stream off in iCloud and then right back on, the only photos that will re-display in Photo Stream on that device are the ones that remain within the 30 Day/1000 photo parameter.
    Collections is simply a single place which shows all of the photos that you have on your device. You do not need to delete photos from Collections. It is just a single place where you can see the contents of all of your albums.
    Photos in albums that you have created on the device itself are tied to the photos in your Camera Roll, so if you delete them from the Camera Roll, it will tell you that it will also be deleted from an album.
    Albums that you have sync'd from your computer should be removed the same way you got them there - by hooking the device up to a the computer you did the sync with, and un-selecting the album from the Photo profile screen.
    So, really, there are only two places that you need to delete photos - Camera Roll and Photo Stream.
    Cheers,
    GB

  • How can i sync more than one folder from My Pictures to my iphone 4?, how can i sync more than one folder from My Pictures to my iphone 4?

    Hi,
    how can I sync more than one folder of pics from My Pictures on my computer to my iphone?

    http://support.apple.com/kb/HT4236

  • I tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help

    i tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help
    and on a second problem.  I need to know for sure that my contacts are backed up on my computer

    Create a parent folder on your computer to store the named folders of photos that you want transferred to your iPhone. Under the Photos tab for your iPhone sync preferences with iTunes, select the parent folder. All named folders of photos within will be transferred to your iPhone as separate folders or albums.
    Regarding your 2nd question, this should be easy. Your contacts should be available on your computer with or without an iPhone or any cell phone, which can be lost or stolen.
    Although contacts are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, not a good idea to depend on this either since the iPhone backup includes a significant amount of other data. Contacts are designed to be synced with a supported address book app on your computer. With Windoze, this can be with Outlook 2003, 2007, or 2010 along with syncing calendar events and notes, or with the address book app used by Outlook Express with XP and by Windows Mail with Vista and Windows 7 called Windows Contacts for syncing contacts only.

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • How to copy paste a office document from one folder to another using J2SE

    HI!
    How can i copy a document file(.rtf,.docx.pdf) from one folder to another folder by executing Java code?
    Help needed

    Hi! You can use my api com.gmail.ronilloang.util.FileUtil for copying files. You can download it at my homepage [RA (TM) i-Software|http://ang.ronillo.estares.googlepages.com/]

  • How do I copy a photo from one folder to another one in Aperture

    I'm old and feeble      I cannot figure out how to copy a photo from one folder to another folder   and my 13 year old grandson can't figure it out either, so I feel better about it
    thanks
    canonmick

    Um ... that doesn't seem ... like a useful workflow.  When you say "folder" do you mean a Folder in Aperture (shown on the Library tab of the Inspector) or a folder in Finder?  They are not at all the same thing.
    Aperture is an image manager, with the requisite file management built-in.  Finder is a file manager.
    If you provide a full description of what are doing, and what you are trying to do, someone here can set your straight.
    Fwiw, IME, the learning curve if very long and uphill, but gentle.  What's unusual (esp. for Apple products) is that the landmass of Aperture is separated from the rest of your computer knowledge by a moat.  What I mean is, the first leap is the hardest.  After that, you'll be on firm ground, ready to explore.

  • HAVE BEEN UNABLE TO RETRIEVE MY OLD LIBRARY OF PHOTOS, ALBUMS AND PROJECTS SINCE DOWNLOADING AN APERTURE 3 SOFTWARE UPDATE TWO DAYS AGO.  THE NEW LIBRARY ONLY HAS A FEW NEW PHOTOS IN ONE FOLDER  PLEASE ADVISE AS HOW TO RETRIEVE OLD APERTURE LIBRARY WITH

    HAVE BEEN UNABLE TO RETRIEVE MY OLD LIBRARY OF PHOTOS, ALBUMS AND PROJECTS SINCE DOWNLOADING AN APERTURE 3 SOFTWARE UPDATE TWO DAYS AGO.  THE NEW LIBRARY ONLY HAS A FEW NEW PHOTOS IN ONE FOLDER
    PLEASE ADVISE AS HOW TO RETRIEVE OLD APERTURE LIBRARY WITH ALL MY PHOTOS, ALBUMS AND PROJECTS

    Find the old Aperture library in the Finder and double click it to launch Aperture with that library set to the default.
    And check your caps look key.  It appears to be stuck.

Maybe you are looking for