ACCESSING a file out of the web contex in JSP

hi
i'm a new JSP developer ius eclipse 3.2 environment and tomcat 5.
i wanna include an html file from somewhere outside of the web directory (for exapmle "c:\test.html")with <jsp:include> ; but i cant!what shold I do?

If you're going to be using a FileReader, piping the request through a servlet using FileIinputStream -> response.getOutputStream() seems the best option
Putting it in a servlet means that you only send the contents of the file, without any of the extra carriage returns that can be included in a JSP.

Similar Messages

  • How can I access my iCloud account on the web from my phone

    how can I access my iCloud account on the web from my phone
    iPhone 5 iOS 8.3
    I have iCloud turned on, location services on, find my phone works but when I try to access iCloud via Safari on the phone it takes me to a page Apple.com,
    iCloud then three options
    set up iCloud on my phone (i have)
    Install Find my phone, it is installed and it works from my MBP
    or install find my friends, I don't need that I have no friends.
    my calendars and contacts and bookmarks and all are all sync'd and working on the phone, but i thought if I typed in iCloud.com on the phone in Safari I would go to my iCloud web page that looks like this on my Mac.
    Is that NOT how iCloud should/would look on my phone via Safari?
    This is maybe a dumb question after 3+ year of iPhone'ing
    thank you for clarifying or helping me to understand
    jojoguitar_mmn_usa

    I've been playing with a Galaxy here at work and here's what I've found so far - please feel free to jump in and suggest alternative methods to configure or access the various icloud components.
    So the original Q: Can you access your icloud account on Android?
    Not entirely: the website can't be used from an android browser (not properly - even with Dolphin HD and posing as different browsers it won't load correctly.  So Find my iphone is out, so is the address book or looking at your e-mail or calendar just in a browser window
    I was able to setup my e-mail using the IMAP settings published here:
    http://support.apple.com/kb/HT4864
    Be sure to setup the account manually - and note if you have trouble using SSL try TLS (that worked for me)
    Address book is a no go so you'll have to use iTunes to sync all your contacts over to Gmail - if you still have an iPad it means managing contacts in two places though .  Same goes for your calendar - transfer it to Gmail and forget about iCloud's calendar.  Nice instructions here: http://howto.cnet.com/8301-11310_39-20064060-285/how-to-switch-from-iphone-to-an droid/
    iWork is an Apple proprietary bit so don't expect much there.
    So in my case, if I'm really going to make the switch to a Galaxy from my iPhone it really means I'm going to have to switch to using google as the backend.  The timing to swap over to a galaxy/android phone is not the greatest - given that I'd have to give up my Apple addiction (syncing photos and itunes and losing access to my device tracking).  Plus I still have an iPad and a mac and like living in the Apple ecosystem.  I think I'll wait and see what the new iPhone looks like before I commit

  • Unable to pickup/pull Oracle(.fmx files) forms in the web site.

    Hi all
    We want to migrate from oracle 9i t0 10g. every thing is working fine, web page, forms, reports individually. But when oracle forms(.fmx) files included in the web page ,unable to pull/pickup the oracle forms files in the web page.
    I really appreciate your support
    Chaitanya

    I'm with Andreas on this one - what exactly are you trying to accomplish? I see you are new to the Oracle Forums so I recommend you take a look at the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    Following these guidelines will make your posts more meaningful and help us help you! ;-)
    I "think" you simply want instructions on how to take your Forms 6i application and migrate it to a web deployed Forms 10g application. Is this right? If so, there is a lot of things you need to do.
    <ul>
    <li>First: Must have a Database server, Application Server and a Forms Services Server. These can all be on the same server or seperate
    <li>Second: Your Forms 6i binaries (.fmb) must be converted to Forms 10g binaries (check out Using the Oracle Forms Migration Assistant
    <li>Third: Your Forms 10g binaries will need to be compiled on your new server (mentioned first).
    </ul>
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How do I access my external drive over the web with my iPhone. The drive is attached to my Time Machine.

    How do I access my external drive over the web with my iPhone. The drive is attached to my Time Machine. I am new to Apple and am trying to get all my stuff working together.

    This is not a supported feature of iPhone or Time Capsule.

  • Access to MySql Database in the Web Service

    Hi all,
    In my j2me web service project, i want to access to MySql database in the web service and
    my installation is
    Tomcat 5.0 for Java WSDP,
    Java Web Services Developer Pack 1.5,
    MySql Server 5.0 and environment variables are adjusted...
    server.xml where is in "C:\tomcat50-jwsdp\conf" is adjusted like this
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <Realm className="org.apache.catalina.realm.JDBCRealm"
         debug="99"
         driverName="com.mysql.jdbc.Driver"
         connectionURL="jdbc:mysql://localhost:3306/erendb"
         connectionName="root"
         connectionPassword=""
    />
    but i have not access to MySql database in the web service yet...
    please help...

    Hi Luis,
    If you see closely, the productID is actually a concatenation of the areaID and the productID. The reasoning here is that a product can be in multiple nodes of the product catalog and one would need to specify the product on a particular node for the direct URL to work.
    On a client site, we came up with a better solution by creating a new FM to retrieve the specific areaID and productID for a product. This FM could be called by extending the webshop. Then a .NET program was written to re-direct a shortened form of the URL to the long URL and therefore the specific product in the product catalog. Eg.: http://yyyyy.com/b2c/b2c/product would be automatically redirected to http://yyyyy.com/b2c/b2c/init.do?shop=<shop name>&areaID=<area Guid>&productID=<product Guid>, something similar to the concept behind "tinyurl.com". A point to remember here is that this would work only for the B2C webshop.
    Hope this helps.
    Cheers,
    Ashok.

  • Error while accessing a file located in the server from JSP

              Hi
              I am having problem while accessing the file located in the server from a JSP
              page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              The same code is working if the jsp placd under defaultwebApp directory and not
              working if i create a war and deploy the same.
              I am using weblogic server 7.0 trail version.I am setting the context path also.
              Can any help me in this regard.
              Thank And Regards
              Anand Mohan
              

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • IOS iCloud access is a real flaw. There should be a way to access my iCloud stuff on the web from my portables

    iOS iCloud access is a real flaw. There should be a way ic an use my mobile devices to access my iCloud content on the web. The push probably works if you are on a fits network, but ia m in a rural community and use my iPad as a laptop when I am working .Apple please fix this. It is unnecessary.
    I miss steve. He was such a fascist for good design

    What iCloud content are you trying to access that is not already on the iPad? Maybe I am misunderstanding your statement, but all of your iCloud content is already on the iPad. Why do you need to access your iCloud.com account on the web?

  • I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then onl

    I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then only delete a small amount at one time?

    See
    Deleting backups via the Finder on Lion 10.7.x or later:
    http://pondini.org/TM/12.html
    Hold option (alt) while emptying the Trash.
    See also
    http://pondini.org/TM/E6.html
    Message was edited by: WZZZ

  • Can't drag files out of the dock folders/stacks

    On Mavericks I'm able to drag files out of the folders/stacks I have on the Dock (Downloads, Documents, etc.) just as you would anywhere on OSX. But, for some reason my mom (Mavericks) and my fiancee (Mountain Lion) can't. I've tried checkin the permissions for those folders (in Get Info) and they have read/write permissions. This only happens in list view, not in fan, grid or automatic. Is there some hidden setting or something else that would allow them to be able to drag files?

    For downloads, go to your user folder downloads and remove them there. Same for Applications. To remove alias from the Dock hold down the command key while dragging them from the Dock.
    If that does't work, go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. Then try a Dock reset.
    Try doing a Dock restart using the following Terminal command:
    killall Dock
    Log out/in and test. If that doesn’t work, you need to look in your user Library/Applications Support/Dock for the .db. Use the Finder “Go To Folder” command. Enter ~/Library/Applications Support/Dock.  Move the .db to your desktop.
    Then try a dock reset.
    Applications/Utilities/Terminal enter the command
    killall Dock
    Log out/in test. If it works okay, delete the .db from the desktop.
    If the Dock is the same, return the .db to where you got them from, overwriting the newer ones.

  • How can I get settings files out of the Library folder?

    I had to do a clean reinstall (erase & reinstall) to clear up some problems on my Mac. Unfortunately, when you do this, your settings, customizations, bookmarks etc. aren't transferred over as they do when you upgrade in the normal way.
    For example, dashboard widgets are in each user's <home folder>/Library/Widgets folder.
    I could restore some of these settings by dragging the settings files from the old System Folder to the new one. Unfortunately, Apple is making this harder by hiding the Library folder in the user folder, both on the Mac and on the backup drive.
    There is a command to enter in Terminal to show your Library folder, but this only seemed to work on the Mac and not on my backup drive.
    How can I get key settings files out of the Library folder on my backup drive when the Library folder is hidden?
    Thanks

    Open the enclosing folder, choose Go to Folder from the Finder's Go menu, and provide Library as the path.
    (80699)

  • How do I access my files saved in the cloud

    Once I filled/edited files on acrobat, I am unable to print or save, but it shows that it's automatically saved in the Cloud.  How do I access my files saved in the Cloud and how can I print the edited files?

    Welcome to the Apple Community.
    How did you store them in the cloud (back up or photo stream) and where do you want to view these photos.

  • I took the system file out of the system folder on os 9.2 can't boot to put file back in machine also has osx 10.2 but won't let me boot to either need os 9 compatible boot disk I think?

    I took the system file out of the system folder on os 9.2 can't boot to put file back in machine also has osx 10.2 but won't let me boot to either need os 9 compatible boot disk I think?

    If the OS X 10.2 on the hard drive is/was bootable, try this -
    Restart or boot, then immediately press the X key, keep it held down until you know the machine has started to boot using OS X. This is a hardware instruction to the Mac to boot using the first usable instance of OS X it finds.
    Once booted to OS X, you should be able to move OS 9's System file into OS 9's System Folder.
    Note - in general, unless you know for sure what you are doing and that the results are desired, do not relocate or rename files in OS 9's System Folder or in OS X's System or Library folders.

  • Can I access my files stored in the hard disk connected to airport extreme when I am away? how?

    Can I access my files stored in the hard disk connected to airport extreme when i am away? How?

    You can't technically. iPads cannot directly read HDDs like a computer can. 
    You will need an app liie FileBrowser to do this. Of course all file operations will be done through the App itself.
    https://itunes.apple.com/us/app/filebrowser-access-files-on/id364738545?mt=8

  • Getting files out of the Hard Drive

    My laptop's motherboard fried out a couple of days ago, and the repairist said that it's beyond repair. I was wondering if there was a way to get some of the files out of the hard drive, if it's possible, with an adapter designed for hard drives of something?
    Laptop: TOSHIBA Satellite A205-S5831
    Graphics Engine: Mobile Intel® Graphics Media Accelerator X3100
    OS: Windows Vista Home Premium [32-bit]
    Memory: 1GB PC5300 DDR2 667MHz SDRAM
    Hard Drive Model
    HDD Model: TOSHIBA MK1637GSX [160GB]
    Solved!
    Go to Solution.

    Satellite A205-S5831 
    If the hard disk is still good, sure. Just place it in an enclosure and plug that into the USB port of another computer.
    To remove the hard drive, see the first two steps here.
    -Jerry

  • Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer? Then can i access these files only on the time capsule without connecting it?

    igonneau wrote:
    Can i get the time capsule to automatically back up my file from my Mac Book Air but have certain files which are only stored on the time capsule and not the computer?
    You can, but how are you going to back up those other files?  When (not if) your Time Capsule fails, you risk losing them.  See #Q3 in Using Time Machine with a Time Capsule for details.
    Then can i access these files only on the time capsule without connecting it?
    Not sure what you mean.  You have to connect a computer, either via Ethernet cable or wirelessly, to read or write to the disk. 

Maybe you are looking for

  • Can I connect more than one Macbook to the same Apple TV?

    As per the title. My friend and I live together and want to connect our seperate Macbooks to the same Apple TV. Is this possible? If so, how?

  • MT940 Swift Bank EBRS Issue for Check transactions

    Hi SAP Gurus, I have configured EBRS for my client. We are receiving the Bank statement in MT940 SWIFT Format. In the same bank is giving The Check number for clearing open items from bank sub account my doubt is how to clear the open items on the ba

  • Initial setup without a mouse?

    Got my iMac back from repair.  I have a wired keyboard and a wireless magic mouse. I'm stuck during initial setup because the mouse isn't recognized and the keyboard can't finish the setup.  For example, it won't let me use the Return key to select m

  • Transaction handling in Siebel

    Hi Can I implement transaction handling in Siebel? If yes, how can I implement it? Thanks Gana

  • InDesign 10 Won't Save

    Has anyone else experienced this serious bug, where InDesign 2014 won't save, save-as or otherwise? I just lost 2 hours of work because of this. Right before this begins, I notice that the cursor will not honor the selected tool, showing only the bla