To open a file where the filename is dynamic ......

String logfile=request.getParameter("value");
out.println(logfile);
FileInputStream fs1 = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/Backend/History/");
                                DataInputStream in1 = new DataInputStream(fs1);
                                while (in1.available() !=0)
                                String str=in1.readLine();
                                out.println(str+"<br>");
                                }I have to display the available number of logfiles in a directory in a JSP page and once the logfile is clicked i need to show its contents.Once the logfile is clicked the filename is passed as a parameter to another JSP page the code shown above.In the above code i have the filename .And the File is available in the History Directory.I dont know what to put after the History .How to open the file that is mentioned by the value which is dynamic ????????
Any one could Please Help???????????????

>
String logfile=request.getParameter("value");
FileInputStream fs1 = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/Backend/History/" + logfile);?

Similar Messages

  • Relinking where the filename has changed but tape name is the same, can it be done?

    Should it be possible to relink to media based on matching tape name?
    So i have X files in a folder, each has a unique tape name. Then some of those files are regenerated with different filenames but the tape name remains the same. I was naively assuming that the relocate dialogue, if you had tape name checked and nothing else would then match the files name for name and find them automatically.
    That doesn't seem to be the case.
    So am i wrong? Or is there a way of relinking several hundred files where the filename may change - how can i get premiere to relink to a file other than exact filename match?
    thanks
    Paul

    Hi Fuzzy!
    I did look at that but it's a large extra step that wouldn't be ideal. The idea is that i need a timeline just changing as files are updated in the background, i don't want to have an extra workflow step in there. I can probably arrange it so the filenames don't change (not ideal) but the key is that the linking dialogue appears to suggest that i should be able to relink using tape name but it just doesn't appear to work.
    If i relink one of the files then i'd expect PPro to go off any find any other missing ones based on the tape name, but nope...
    thanks anyway
    cheers
    Paul

  • How to open a file, change the name and write file

    Hi,
    I want to open an existing .dat-file in Labview, manipulate the data and save this data into a new file with a different file name.
    Though the name should be different I would like to use the old name and add something to it.
    (In my programm the .dat file containes the date and time the data was
    measured and I would like to keep this information in the filename.)
    For example: the original title is file1.dat now I want to save it as file1_manipulated.dat
    Is that possible? What is the best and easiest way to do it?
    Thanks a lot
    Chris

    Hi Mike,
    thanks for your help.
    This will give me my path in string format. But to open a new file and then write my data into it, I need a path format (see right side of png)
    Is that right?
    I attached a png, so you hopefully get an idea where this is going. (I know this won´t work yet)
    I open a file and this filename depends on the date and time the data was recorded. So I can´t work with a stringconstant.
    Sorry for this beginner questions - this stuff is absolutly new to me.
    Thanks in advance
    Chris
    Attachments:
    newfile.png ‏11 KB

  • "There was an error opening this document. The filename, directory name, or volume label syntax is i

    "There was an error opening this document. The filename, directory name, or volume label syntax is incorrect."
    I tried different versions, no avail.
    I think it has to do with the password somehow, but I do not know. I can copy the files from the web folder to my desktop and they open fine (after entering the password AGAIN), but I can not open them directly form the web folder - it does not ask for the password again, just pops up the error.
    Adobe's support really upset me (insert explicative here) by keeping me on the phone for 20 min, collecting all sorts of information about me (not the problem) with some lady who barely spoke English, just to tell me to go to the website. No surprise they need to charge for tech support, customer service is doing everything but "service". I hate companies that do this. I am thinking of using another PDF reader, I have heard good things about them. Check
    http://en.wikipedia.org/wiki/List_of_PDF_software
    Has anyone ever been able to find a fix? I can not find anything on this site.

    Howdy, Moritz!
    Thanks for the suggestion, but this is not an issue of filename and language conflicts, at least in my environment. I highly doubt that's the root cause of this issue.
    The PDF files in my tests have all had very simple names, such as 123.pdf and test.pdf, as well as more complicated names with spaces in them. Nothing about the files contains anything outside of the English language, including the content and filenames.
    From everything I've been able to determine, this is a WebDAV-related security issue that affects programs like Acrobat Reader. I know for a fact that MS's KB892211 WebDAV patch doesn't create the issue, however MS's update to that 892211 patch DOES create the issue. As I've outlined earlier in this thread, my extensive testing has proven this more than once.
    At this point, I haven't been able to accurately uninstall the update to 892211 after the update has been installed. And, as far as I can tell, the update to 892211 comes down from MS as a Office and/or Windows Update component. So, everyone has it, the uninstaller doesn't work, and there's no documentation detailing what registry entries are being changed when the update to 892211 is installed.
    My ultimate goal is to bring a test machine to the point just before the update to 892211 goes on, fire up the Registry, Process, and File monitors on my test box, and install the 892211 update. This should give me an accurate picture of what I need to restore in order to rid the machine of the update to 892211.
    Until Microsoft officially fixes the issue, I am not totally sure how this will be resolved. I've ceased my work on the issue for now since copying the PDF file from the WebDAV share to the user's desktop gets the user what they wanted in the first place - the ability to open the PDF file!
    Maybe, once some other projects slow down a bit, I might get back to creating a solution, but it's going to be a "hack" no matter which way you slice it. I'd much rather MS spend their time creating the solution. If I have to do it, my fee to MS will be quite HIGH! :*)
    George B.

  • Where can I find the file where the static mapping allocations of the DHCP server are stored?

    In our company we are using DHCP to assign static ip addresses to our clients.
    Now we are forced to change the ip address range. To prevent changing each allocation
    of mac-address to ip-address manually with the admin tool i would like to change the allocation
    in the file where the allocations are saved. The reason ist that i just have to use copy & paste for all
    the allocations.
    So how is the file named and where can I find the file where
    the static mapping allocations of the DHCP server are stored? Is it just an ASCII file?
    Must i note anything when i change the file manually?

    From man bootpd:
    BOOTP/DHCP STATIC BINDINGS
         Static IP address to ethernet address bindings are stored in the /etc/bootptab file and in Open Directory.  Bindings specified in the /etc/bootptab file take precedence over those in Open Directory.
         See bootptab(5) for more information about the /etc/bootptab file.
         For Open Directory, bootpd looks at the /Computers records for the following properties:
    /etc/bootptab is a standard text file, while the records in Open Directory can be manipulated either through the command line, or via Workgroup Manager.

  • Cannot open pdf files while the Reader instance is running

    Today I suddenly noticed that if I try to open pdf file while the Reader instance is already running (even if it has no pdf files open), the cursor just blinks one or two times without any further activities. So the only way to open files now is by closing the previous instance and starting the new one. I think this problem started to appear after upgrading to 11.0.3. I am using Windows 7 32 bit.

    I narrowed the problem: it happens if the file is in a directory which is a join point on the NTFS file system (i.e. a link to another directory), where the link source is in turn a join point itself (i.e. we have a two-level NTFS directory link). As this is rare, it could be not a problem of the particular version of the Reader, it just probably happened by coincidence that after upgrading the first directory I accessed was of this kind.

  • How to open a file with the same name?

    Hi, now I practicing making web pages where I put sample codes in one directory and I copy them to edit.
    The probrem is, I couldn't open one file while I'm opening another file with the same name.
    Is it possible to open  a file with the same name in Dreamweaver?

    That could be a very error prone practice.
    May I suggest you take advantage of DW "Snippets" feature instead.
    Simply save any blocks of code you will reuse regularly as snippets,
    and give each one a descriptive name you like.
    Then you can simply place your cursor in code view where you wish the code,
    and click insert on the selected item from the snippet panel.

  • I am trying to import developed images from LightRoom 5 in o Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 Photoshop 6 for further editing.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, or you do not have necessary access permissions or another program is using the file.  Use the 'Properties' command in the Windows Explorer to unlock the file. How do I fix this?  I would greatly appreciate it if you would respond with terms and procedures that a computer ignorant user, such as me, will understand.   Thanks.

    Have you tried restoring the Preferences yet?

  • Is there a way to open Excell file from the server and display in the UI and save it back on to the

    Hello there,
    Is there a way to open Excell file from the server and display in the UI and save it back on to the server? (like showing xell file as a datagrid - add rows, columns etc.)

    Hi Mike,
    Welcome you to the forum.
    You may try:
    SELECT * FROM MyDBNameHere.dbo.OUSR T0
    Thanks,
    Gordon

  • The problem i am having is when i go to open a file from the menu bar that as "FILE" is blackcolor

    the problem i am having is when i go to open a file from the menu bar that as "FILE" is all black in color and i cant see what i'm picking how do i change that so i can see what i'm picking

    Is that Photoshop?  Depending on the version you could try to change the Color Theme (Edit | Preferences | General | Appearance).
    If that does not help, you may have a better chance to get a useful answer if you ask in the Photoshop or Photoshop Elements forum.

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another progra

    I am trying to import developed images from LightRoom 5 into Photoshop 6.  I am receiving this message and the images will not open.....'Could not open scratch file because the file is locked, you do not have necessary access permissions or another program is using the file.  Use the 'properties' command in the Windows Explorer to unlock the file'.  This has not happened before.  How do I change this?

    Could not open a scratch file because the file is locked or you do not have the necessary access privileges. (…) | Mylen…
    Mylenium

  • What can I do to rectify the situation in which Firefox will not open pdf files in the browser, even though I have already used all the help suggestions to no avail?

    I have tried everything Mozilla has suggested. Still when I click on a pdf, I get the message that the browser cannot open a pdf. I have gone through the help protocol, and it does not work.
    I have uninstalled Firefox and reinstalled it, and still not able to open pdf files within the browser.
    What else do I do, except go to IE or Chrome and just leave Firefox completely???

    A possible cause is the presence of a PDF plugin from an older Adobe Reader plugin in the plugins folder in the Firefox program folder.
    See [[Troubleshooting plugins]]
    See also:<br />
    http://kb2.adobe.com/cps/405/kb405461.html - The Adobe Acrobat/Reader cannot be used to view PDF files in a browser<br />
    http://kb2.adobe.com/cps/836/cpsid_83688.html - I can’t view a PDF document in my web browser<br />

  • I open a file - playback - the audio is there - doesn't appear in timeline, but I hear it, after 1 edit, the audio disappears.  I have to reboot to get it back then it happens again.  All suggeswtions welcome.  Thank you, Randy

    I open a file - playback - the audio is there - doesn't appear in timeline, but I hear it, after 1 edit, the audio disappears.  I have to reboot to get it back then it happens again.  All suggeswtions welcome.  Thank you, Randy

    Is your Premiere Elements 12/12.1 running on a Windows 7, 8, or 8.1 64 bit computer or a Mac computer?
    What is the brand/model/settings of the camera recording your video?
    Windows 7 64 bit PC 
    Footage taken from DVD through Adobe Premiere Elements
    Are you sure about the Frame Width and Frame Height that you gave 720 x 484? Did you mean 720 x 480?
    Yes, my err.  720X480
    For the Frame Rate, was it really 29.97 frames per second and you rounded it off to 29 frames per second? Or,
    is the frame rate really 29 frames per second?
    If the properties that you just posted are representative of your source file, what project preset did you or the
    project set for the project preset? If you are not sure, please tell us the readings for Editing Mode, Timebase, Frame Size,
    and Pixel Aspect Ratio under Edit Menu/Project Settings/General.
    Still having problems - haven't been able to edit project. 
    Thank you for your help.
    Randy Klein

  • How to open KM file in the same window

    When we open KM file by /irj/go/km/docs/... link it is previewed in a new Internet Explorer window.
    We changed Targed property to Self for iView navigation in LayoutSet render but the image file is still opend in new Window.
    How to workaround this?

    We changed Target Window Type property value of ResourceRenderer of Navigation iView  to Self.
    When an authenticated user  tries to open KM file it is opened in the same window if file URL include /irj/servlet/prt/prtroot....
    If file URL contain /irj/go/km/docs/.. it is opened in new window.
    When an anonymous user  tries to open KM file it is opened in a new (popup) window.
    We need that anonymous user can open km files in the same window.
    How to work around this?
    We use light framework.

Maybe you are looking for

  • Error while submitting the Invoice

    Hello Everyone, We are using SRM 5.0 with Extended classic scenario. I am having a problem while submitting the Invoice. I keep getting errors saying I need to enter a quantity for a line item that has already been billed in full.  When I enter a qua

  • Web Photo Gallery Wish List

    My website uses the coppermine photo gallery package It requires me to optimize my images for the web using a photo-editing program (Photoshop) and upload them to my server. Then there is a web interface I use post the photos to my gallery. This work

  • Offsetting account number determinatitons

    Hi everyone, I'm working on FI-CO module on a 4.6C SAP release. I would like to how how it is possible to customize which offsetting account the system should select when posting CO documents. Actually when posting a CO document the systems automatic

  • Want to delete toolbar

    Hi, I have a toolbar that i want to delete but cant. I went to my control panel and went to add and remove. the program was not there. how do i get rid of the toolbar. Thank you. Debbie Lemmon

  • My daughter dropped her ipod and the screen is cracked??!!  help

    My Daughter dropped her ipod and her screen is cracked!  can this be replaced?