Help Required in Displaying files in a directory

Hi All,
I have to display list of files in a jsp page, the files are in a folder located at webapps\AcadTest\jsp\Courses\upload when I say
File appDir = new File("/"); it is displaying the contents of the local system
Please help me in how to display the contents of the folder located in the location \Tomcat 4.1\webapps\AcadResource\jsp\Courses\upload\myfiles
Thanks in advance

See for example Directory taglib from Coldtags suite:
http://www.servletsuite.com/jsp.htm

Similar Messages

  • Help required  to display login failed custom messages?

    Hi,
    Need Help, I have modified WPMessages.prop file(in IDM 6.1) to display custom login messages(Exp: Invalid user ID or Invalid password or Account locked),
    still I am unable to display these custom messages on user page,Whether do I need to change user login.jsp? or what else changes are required to do?

    Hi,
    Need Help, I have modified WPMessages.prop file(in IDM 6.1) to display custom login messages(Exp: Invalid user ID or Invalid password or Account locked),
    still I am unable to display these custom messages on user page,Whether do I need to change user login.jsp? or what else changes are required to do?

  • Basic help required for multiple files to be opened from Bridge to PS

    Hi
    I am attempting to shave off a few hours from my workflow and because I'm new to Bridge I'm unsure how to do this. I'm pretty sure anyone out there with a small working knowledge of Bridge or CS3 could help me.
    I am attempting to open three instances of the same RAW file into CS3 from Bridge. The three instances, although the same image, need to go through CameraRaw and change the exposure. One normally exposed, one +2 exposure and one -2 exposure. As you may have worked out I am attempting a pseudo-hdr effect with the one RAW file.
    How do I, with just one click, open the file three times, change the exposure each time, and then save the differently exposed files as tiffs?
    If it's ImageProcessor that I need to use then I'll admit I can't quite work out the rules for doing this!
    Any help gratefully received.

    Have a look at this thread.....
    http://forums.adobe.com/thread/623234?tstart=30

  • HELP Required in Copying  file on to a shared disk.

    Hi all,
    I am seriously struggling to copy a file on to a shared disk using java code. It is a web application and i am supposed to move a file from server to a shared folder on some other system. I can ping the system on to which i need to copy the file. I can manually copy the file on to that disk from the server. But i am unable to do it through Java code. It would be very help ful, if some one can help me on this with a piece of code.
    I have administrator access on the server on which application is running.
    Deepthi.

    Can't you mount the remote share into the local filesystem? Say, by mapping a network drive, or using nfs/smbfs filesystem types? Then you should be able to copy the file as if it was local.
    Brian

  • Help required - transfering music files

    Can anyone help?
    I had about 1000 songs on my laptop which I put onto my ipod - the transfer method was via real player. The transfer appeared succesful and the music is on my ipod.
    However I cant play it - and now I've deleted it from my hard drive.....the music only exists in a kind of invisible iPOD file.
    I need to take the music off my ipod (I can play it on my computer when my iPOD is connected) and put them back onto my hard drive and this time use iTUNES to transfer my music......*but is there anyway of putting my music back onto my hard drive?*

    *is there anyway of putting my music back onto my hard drive?*
    If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews and comparisons of some of them here:
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    SharePod Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide

  • Http Service : Help required in displaying result

    Hi All,
    I have created a http service and i'm trying to post the http request. the result is Successful but i'm not able to  display the result in the alert window.
    This is what I'm trying to do on the result event handler function.
    protected function postRequestResult_resultHandler(event:ResultEvent):void
         var srt:String = event.result.nodeValue;
         Alert.show(srt , "Result");
    but I'm getting an output something like [object object ]
    Please help. All I need is to do is, display the complete soap envelop ( soap header and body ) present in the result.
    Is there a way to do it ?
    Thanks and regards,
    adewrn

    Hi,
    Thanks for all your replies. I was able to solve it by making the resultFormat property of http service object as text, This returned the entire result as a string. And i was able to display it.
    Regards,
    adewrn

  • Help required with text file handling in GPIB

    Hi attached is my vi for GPIB communication with Aginelt Network Analyzer in Labview 8.
    I'm saving the data of network analyser into text file(appending all the data). I wish to make some changes into it. As can be seen there is a input which asks for number of points/segments. Supposed I give that input as 201 points(it can be 401,801,1601,51,etc.) than after every 201 points data should get appended into a new coloumn and not into 202 row. Seperate coloumn should start for the whole set of 201 points, where as currently what is happening is all the data is getting appended one below the other.
    Can anyone help around,
    Regards
    Attachments:
    finaltemp.vi ‏52 KB

    Here...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    finaltemp(80).vi ‏52 KB

  • Help required with downloading files from inside WEB-INF folder

    I am working on a web application and I have an upload script which uploads different files to a foler called 'uploads' . To stop users from accessing the folder content I have put it in the /WEB-INF/.
    In my JSP file, I used to link to the uploaded files like this before for users to download them :
    if(filesListIterator.hasNext()
    files = (FilesBean)filesListIterator.next();
    <tr><td><a target="_new" href="<%=files.getFileName()%>">"<%=files.getFileName()%></a></td></tr>
    }I need to know how to alter the above link to make it access/download files from the /WEB-INF/uploads/ while still restricting direct access to the files.
    Thanks
    Message was edited by:
    topiwal

    Anything under WEB-INF is not directly accessible via the browser/ client. You could try defining the JSP/ Servlet inside web.xml deployment descriptor and see if you can access the file from there.
    I think a better way to accomplish this would be to keep the file outside WEB-INF , and use other techniques to protect the folder that contains the file - for example password-protection, or defining a .htaccess file and serving a 403 Forbidden error.

  • Help required: N70 displays calendar entries 1 hou...

    Hi All
    I have an N70 which is around 2 months old, and using PC Suite v6.6.16 for PC connectivity.
    A major problem that I am finding is that when I synchronise my phone with the Outlook 2003 calendar on the PC, all my calendar entries appear in the phone 1 hour earlier than they should be (NB we are currently on summer time in Sydney but one would think that the phone and/or software would accommodate this).
    Has anybody else experienced similar problems, or do you have any suggestions as to how to rectify the situation? From what I can gather, the notes on the website re PC Suite v 6.7(rel 16/12/05) do not suggest they have fixed this issue.
    Many thanks in advance.
    Cheers
    Frank

    Thanks Manta. I installed PC Suite 6.70.22 today and all appears to be back to normal. Thanks for your assistance.
    Cheers
    Frank
    PS, what is the easiest way to find out what's new in each release of the software? Is there a comprehensive list of fixes/new features etc?

  • Finder not displaying all files in remote directory

    Sorry, this is a repost as I have gotten no response from my original request here: Finder not displaying all files in remote directory
    I've exported pictures from iPhoto on my iMac to a shared directory on my mac mini. When I access that directory from my iMac, I can see some but not all of the pictures. I know the pictures exported properly because I can see them all from the mac mini. I can open up a terminal window on my iMac and see all of the files; I can also open those files from the terminal.
    I'm running OSX 10.9.4 on both computers, with the mac mini also running OSX Server. I've placed a screen grab below from my iMac of what Finder sees vs what I can see from the terminal.
    Why isn't Finder displaying all of my files?

    thanks for responding
    Adding a new file to the shared folder results in me being able to see the new file from my clients regardless of where it was added from, however the "hidden" files do not suddenly pop up.
    I tried a few more experiments that had interesting results, but still didn't lead me to an answer.
    First I tried copying the files from the remote directory to a local directory; I did this in 2 different ways and had different results. Method A) I copied files from the mounted share to a local dir: "cp /Volumes/MyShare/dir/*.JPG .". Method B) I copied the files using secure copy: "scp user@server:/path/to/dir/*.JPG .".
    Method A resulted in Finder not being able to see the files in the local directory, while Method B did. This was interesting and lead me to suspect an issue with the way I am sharing the directory on the server. From Server settings I have both afp and smb checked. I tried enabling only one or the other and reconnecting; but this did not fix the problem.
    Next I tried exporting the photos from iPhoto again. Exporting them locally results in files that Finder can see. Exporting them to my server results the same bad behavior
    Getting desperate, I also tried renaming all of the files from "*.JPG" to "*.jpg" but this didn't help.
    One last experiment, I see the same behavior from both another Mac and a PC on my local network... FTP works fine.
    Any more ideas?

  • Need Help: Have to route file from directory to directory in same system

    Hi Experts,
    I need to route xml file from one directory to another and then to another one in the local system. For example, i have the file in directory A, i need to delete that file from that location and place it in B and then from B i have to move it to A again and then move it to C.
    The path will be:     A-> B -> A -> C
    where A, B, C are folder names
    How can i do that in SAP-XI in ID? Do i need to create two communication channels? Please guide me and help me out of this.

    Hi Arkesh,
    >>For example, i have the file in directory A, i need to delete that file from that location and place it in B and then from B i have to move it to A again and then move it to C.
    For doing this why you need SAP PI? you can better do this with a script or batch job.
    >>A-> B -> A -> C
    A to B will be one interface and B-->A will be another one. The file getting picked from A and getting dropped to A (in second scenrio) shoudl not have the same name else these two interfaces will go in a loop.
    A to C will be the third scenario
    each scenario will have a sender file adapter and a receiver file adapter.
    But still I didn't get the business usage or usage of PI in this case
    Regards
    Suraj

  • This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    This Adobe muse site file requires a newer version of Adobe Muse. I want to comeback to old version Adobe muse i need help to open my file thanks

    Hi,
    You may need to design the site again in older version OR may be copy and paste in place from new to old except what is new in the latest version.
    Hope that helps!
    Kind Regards,

  • Help needed in creating File Directory if not exist

    hi, All
    I am thinking about wite files to directories based on year, month, day. if the directory for that year or month or day exists already, do not create the directory, but write the file to that directory.
    For example: 2003/02/22/file.txt --2003/02/22 exist, just write file.txt
    If the directory does not exist, the program will create the direcotry and write the file into the right directory.
    For example 2003/02/22/file.txt, ---2003/02/22/ does not exist, the program will create the directoies and write file file.txt
    If anyone can provide any example or suggestion, I really appreciate!
    Thanks
    Steve

    Hi!
    Just have a look at the class "File"
    and it's method "exists()".
    Hope, that helps.
    Thoto

  • IDOC 2 File, Variable Substitution help required

    Hi guys,
    I'm doing an IDOC to file scenario. I want to make the target directory and the file name to be updated dynamically.
    I don't want to modify the pay load in any way so as to include any extra tags to represent the file name and directory parameters..
    After going through various blogs I have a slight idea that may be this can be achieved by setting these parameters in the message attributes..But i don't know how can i modify the message attribute in the receiver...
    Please can any one help me in achieving this scenario??

    use the idea based upon the blog - /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    use the code specified in your mapping and alter it to get your file name dynamic.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

  • Help required in reading a file from Shared location on Network

    Hi,
    I need help in reading a file from a shared location. Can you kindly tell me the pattern for inputting the shared location path. I am using fileUtilService>Exists
    "\\Shiva\test\shared\eForms\temp.xlsx" is the actual location of the file. How should i input the location in the INPUT variable of EXISTS.

    readResource content operation will fetch documents from Adobe Repository. Unless you checkin the required file into repository, the above error will remain.
    From a shared folder, you should able to read the files using readDocument (using FileUtils) without any issues. Perhaps, the access rights prevent the execution.
    If you are running JBoss as a windows service (turnkey will create a windows service for the JBoss instance), try the following:
    Run -> services.msc -> Right click on JBoss service for Adobe LiveCycle -> Properties
    Check the value given under logon tab. The User Account mentioned there should have appropriate access to the shared folder you are attempting read.
    Nith

Maybe you are looking for

  • Time machine no longer works with iLife

    I try to open Time Machine with iPhoto, and it no longer works. Please fix this soon.

  • Change edit wysiwyg tool bar width?

    Anyone know Exactly how to change the tool bar width on the edit pages for the wiki and blogs. I noticed the comment in /usr/share/collaboration/css/required/toolbar.css .edit_toolbar{ width:700px; /* width is actually set in wiki.js as mFinalWidth.

  • Why is Logic so Unstable?

    After working on a track for the best part of the morning, Logic decided to crash on me again... I had saved my work, but there are a few things I have lost. My question is this.. Why is logic so unstable? I have used logic since 1999 and never have

  • Plant shifting activities

    Dear Friends, Our plant has been shifted to a new location ( specifically in a new excise division). This plant has it's own excise registrration. So we have created a new plant and a new exise group and series group for this new plant. Now pl. help

  • Error in Vendor Master updation

    Hi,   When using the transaction CFM2 for Vendors, on clicking the Start activation I am getting a pop-up showing Function/Q/SAPAPO/CIF_LOC_INBOUND Text:        UPD_IN_MI_BACK1 48245BEB2A393CF8E10000000A35978EFA                X008AD_HOME   99 FAX008