Create a new directory in server with JSP

Hi,
How can I create a directory in server with JSP.
File dir = new File("a");
dir.mkdir();
does not work. what do I do?
best regards,

Hi
Check the following things.
1. What is the path where you are creating the directory.
2. Do you permissions to create file in that directory.
3. do a delete on that filename if that exists just to be sure. isdeleted = filedir.delete(). Check the boolean flag isdeleted too.
Thanx and Regards
Aruneesh

Similar Messages

  • Problem creating a new Glassfish 4 server with Oracle Tools for Kepler

    Hello,
    I installed Oracle Tools for Kepler with no problem. But when I want to create a new server and fill in the directory to the server (which is valid, C:/glassfish4/glassfish), nothing happens. I can only click 'back' or 'cancel'.
    There is no error message.
    Is this a bug in Eclipse or Oracle Tools, or do I do something wrong ?
    Thanks in advance for help.

    Hi,
    Could you let us know where you installed the GlassFish tools plugins from ?
    Glassfish 4 support in OEPE has been available since Glassfish was released in June. But it looks like a bug may have been introduced in the latest build  available on  http://download.java.net/glassfish/ which does not exist in the version available at http://download.oracle.com/otn_software/oepe/12.1.2.1/kepler/repository
    The workaround on the version you are running is to enter a dummy password value and this should allow you to create the Glassfish 4 server.
    I will be filing a bug to track this issue
    thanks
    Raj

  • I cannot create a new business catalyst site with Dreamweaver CC 2014. The error message states that Dreamweaver cannot connect with server, try again later. How can I fix this problem?

    I cannot create a new Business Catalyst site with Dreamweaver CC 2014 (Mac). The error message states that Dreamweaver cannot connect with server, try again later. In addition, I am also unable to load remotely a previously created Business Catalyst site as it says there is something wrong with my username or password. However when I put my password in and press test connection, it says it has connected successfully. What is going wrong and how can I fix this problem?
    Thanks

    Hi Ozy08,
    Can you try the solutions mentioned in Re: Can't Login to Business Catalyst within Dreamweaver CS6?
    If you still have problems, and you have a purchased version of DW CC, send me your Adobe ID, location, and contact details over a private message. Click my picture and use the message option.
    Thanks,
    Preran

  • How can I create a new excel workbook only with labview

    Hi everyone...
    I'm trying to create a new excel workbook only with labview but I can't find the file in the hard disk.
    Someone knows?
    Labview 8,0
    Attachments:
    Create new WB with LV.vi ‏18 KB

    You are not using the correct mechanism. Pull up the Example Finder in LabVIEW, click on the "Search" tab, and enter "Excel". Look for an example called "Write Table to XL". Use this as a starting point for creating new workbooks and adding data to it.
    Note: on disk the example is at <LabVIEW install directory>\examples\comm\ExcelExamples.llb.
    Message Edited by smercurio_fc on 06-05-2007 11:08 AM

  • Is there a way to create a new directory or file in application install directory programatically

    Hi to all,
    Is there a way to create a new directory or file in
    application install directory programatically.
    I want a xml file to be created with in the application
    install directory programatically(not the application storage
    directory)
    I have used the following code snippet:
    var file:File = new File();
    file = File.applicationDirectory;
    file = file.resolvePath("assets");
    if(!file.exists)
    file.createDirectory()
    I am thrown an exception when using this .....Security
    Exception

    Thanks, but my main problem is to delete the locally stored
    data that is stored in the application storage directory when the
    application is uninstalled.
    The data is not being deleted automatically when the
    application is uninstalled, thats why I want to write some file to
    application directory.
    My application is remembering the login username and password
    even I uninstall the application and reinstall the next
    time.

  • Trouble Creating a New Directory to Import into

    I just upgraded to Lightroom 5 today and installed the update to 5.2 on Windows 7 64 bit.  I have run into a problem I never had before.  In the import module I want to create a new directory to import into.  I go through the same steps I did in Lightroom 4, but when I am done, the directory does not show up on the list.  I can find it in Windows Explorer, but not Lightroom.  If I leave the import module and then return, the directory shows up in the Lightroom list of directories.  I have tried this twice with the same result both times.  Has anyone else seen this?  Is there a Fix?

    Thanks that works.  I found that even though the new directory did not show in the Import list of directories when I created it usind the right-click method as I did in LR4,  LR5 is in fact creating it and will import to it.  Another odd thing is when I create the directory using the right-click, Windows Explorer method, the directory list in the Import module flickers like it is adding the new directory.  However, the new directory cannot be seen.

  • HT1527 I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    i had the same problem before using a fresh install of Windows 8.1.  I have resolved this issue by running the program compatibility wizard.  This I did by right-clicking on the iTunes icon in the desktop, selecting Troubleshoot compatibility, waited for it to detect compatibility issues and when presented with the following options: 1.) Try recommended settings; 2.) Troubleshoot program, I chose the latter.  When asked what problems I noticed, I checked the following: "The program worked in earlier versions of Windows but won't install or run" and "The program requires additional permission"
    After that, it tired to resolve the issue, and provided the necessary settings to run iTunes.  Now it's running flawlessly.  I have Avast anti-virus installed though.
    HTH!

  • I moved from the UK to Sweden. My trial expired in the UK but I was not able to purchase CC in Sweden for some reason. I was told to create a new account in Sweden with a new Adobe ID. When I did, the trial downloads did not work and I could not purchase

    I moved from the UK to Sweden. My trial expired in the UK but I was not able to purchase CC in Sweden for some reason. I was told to create a new account in Sweden with a new Adobe ID. When I did, the trial downloads did not work and I could not purchase the CC at discount price.

    Moving this discussion to the Adobe Creative Cloud forum.
    Kriskristferson if you are facing difficulties with your order then please contact our support team directly at Contact Customer Care.

  • Steps to create a new Oracle Application server

    I am in unfamiliar territory and need to create a new Oracle Application Server. I would appreciate any direction or direction to documentation that explains the steps required to establish a new server. Thanks.

    William,
    Have you looked at the Portal section on OTN? We recently added a whole bunch of information under the documentation section.
    It can be found by clicking on Internet Servers under the Products heading on the left hand navigation bar. That page will have a section for Oracle9i Application Server and under that you will see Related Features & Products where there is a link to Portal.
    Rich

  • Reg:: Create a New SharePoint 2010 server as the existing SharePoint 2010 Server with Named Instance

    Hi Techys,
    Please give me the better option for the below scenario.
    Scenario::
    I would like to Build a new sharepoint server with recently created MS-Sqlserver2008r2 named instance. and also I want the same data(Features and solutions) which i used in previous SharePoint farm.
    Desc:: We have a SharePoint 2010 farm with SP2. MSSQLSERVER is the default instance.
    now i want create a same SharePoint 2010 farm with MSSQLSERVER2(Named Instance)
    If you need any Information, plz let me know.
    Many Thanks,
    Madhu

    reproducing environments is difficult... lots of settings... the AVAILABILITY of OUT OF THE BOX features can be configured just by running the install and using a key to match editions (std/ent)... but which features are enabled, how they're configured,
    what customizations might be in place... not a simple checklist.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Create a new file on server from an applet

    Hello!
    I 'm trying to create a text file on server from an applet, i have permissions to write on server and i'm running in apache, my code is
    public void write () {
    try{
    URL url = new URL("http://localhost/bnm/hello.txt");
    URLConnection urlcon = url.openConnection();
    urlcon.setDoOutput(true);
    urlcon.setUseCaches(true);
    PrintWriter pt = new PrintWriter
    (new OutputStreamWriter (urlcon.getOutputStream()));
    String str = new String(URLEncoder.encode("this is output applet ")) ;
    pt.print(str);
    pt.flush();
    catch(Exception e)
    e.printStackTrace();
    The result is nothing, the file isn�t created, but the code don't throw exceptions.
    Ah! in other example, i can read a file of server fro m the applet, the problem is to write
    Anybody, knows the matter??
    Excuse my poor english :P
    Thanks for all.

    I had the same needs and didn't know whether this was possible, due to applets security restriction. So I searched the Web and found some contradictory information. I will explain what I think is the situation, to give you an answer, but also so that other people can tell me whether I understood correctly.
    1) Unless you sign it, an applet cannot write files directly, either client-side or server-side. All what it can do to access a file server-side (except .jar files ?) is opening a http connection, which allows only to retrieve data. When I try to run code such as yours, I get this exception :
    java.net.UnknownServiceException: protocol doesn't support output
         at java.net.URLConnection.getOutputStream(URLConnection.java:679)
    2) As Ares_Man points out, what it can do is opening a http connection not directly with the file you want, but with a server-side script (JSP, PHP, CGI,...) which will be allowed to write files on the server. You can use POST or GET parameters to pass to the script what you are going to write.
    This simple code worked for me (it executed the script toto.php):
              try{
                   URL toto=new URL(getCodeBase(),"toto.php");
                   InputStream f=toto.openStream();
                   f.close();
              catch(Exception e){
                   e.printStackTrace();
    Probably it's a good idea to do a URLConnection.setCache(false) though, to be sure that the script toto.php will be executed.
    3) I don't know how you can pass serialized objects as parameters. So if more than text informations are to be written, I would tend to make the script store them into a database instead of files. That way, you could pass any SQL query as parameter, maybe along with a password parameter for security. I don't know whether this is secure enough.

  • Creating a new document in Finder with right-click--How?

    Is there a way to create a new document in a Finder folder by right-clicking (or Ctrl-left)? So that the new file will be created at that very spot, in that very folder.
    In Windows-Explorer this was quick and easy. Just right-click and you could choose from a menu to create a new empty doc of the most popular (installed) programs. Text file was mandatory. The file was created where the curser was at. VERY handy as that way you didn't have to open the application, create a new doc and then when saving having to crawl your way all the way to the position in the Explorer/ Finder.
    Since I started with Apple and Tiger I've been missing this feature and Snow Leopard still does not seem to have it. Or did I miss something? I checked all the menue as well. There's not even a "Create new document". Only a "Create new folder". 
    I was just reminded of this when I wanted to create a new file on an external drive on a server to save some text in it. There was no way other than first opening Textedit, saving the empty file on the local Mac, THEN transferring the empty file to the server. Only THEN I could open it and edit it.
    There MUST be a quicker way.
    Also, in Windows you could edit this list in the menu (and add programs that would not by themselves do this). Is there a way for the Mac?
    Cheers,
    Jay

    I might have just found a solution myself:
    https://discussions.apple.com/message/10432377?messageID=10432377&amp%3b#1043237 7
    It seems other people are wondering too.
    And for those of you who don't understand why this is useful: Try it.
    Open Textedit, Apple-N, and then save the darned file somewhere deep in the labyrinth of the Finder where you've just been but withouth the file. It takes AGES.
    I, on the other hand -- at least in Windows --, right-click, new, double-click AAAND I'm on editing the file.
    VERY quick.
    It's beyond me why this is not possible on a Mac.

  • How to I contact Apple about a support issue with Game Center--itself, directly. I changed my Apple ID and now I cannot access my game center account that I had previously. It created a new one for me with my new apple ID instead of keeping the old one.

    I want to submit an issue with Game Center--itself, directly. I had an account set up that I used to play online games. I changed my appleID and then I no longer could access my game center account. I, apparently, had a new game center account created for me (which is friends with my old account) and now I cannot access my original game center account.
    If I can't get access to email apple directly (which seems ridiculously difficult to do), then someone please tell me how to FIX the issue.
    Thank you

    Yes. I have tried that. When I use the ID I had before, it sets it up as a new account and I don't want to lose my stats attached to my old account.
    Let's say that my old nickname was "user10" and I used the email, "[email protected]" for my apple id. I changed my apple id to "[email protected]" and it changed my game center account to "mynew" and somehow I am friends with my old acct, "user10". I tried getting a password reset for "user10" but I apparently don't know my own birthday, which is possible because I usually give a false one, but the same false one each time.

  • Error when trying to create a new object that begins with Z

    Hi forum,
    When I try to create a new BW object that begins with Z (infofuente, infoarea, component application), I skip the following error.
    Namespace''is not a valid namespace BI
    Message no. R7017
    Diagnosis
    Namespace''must be entered in both the BI RSNSPACE table and the basic table TRSNSPACE or the view V_TRNSPACE. You also have to enter the relevant generation namespace '& V2' in TRNSPACE table. This value is taken from table RSNSPACE.
    Both namespaces must be set to 'Changeable' - providing they are not empty.
    Response System
    You can not edit or create an object in this namespace.
    Procedure
    Use a different name.
    Or contacct your system administrator. He / she can switch to the namespaces' Changeable 'using SE06 transaction, or - if they do not already exist - enter them in the table above named using sm30 transaction.
    If the namespace '& V1' is empty, then the problem is with the generation namespace '/ BIC /'.
    Procedure for System Administration
    I've been following steps said to me, and yet I still persisted error. I am probably missing something ... that may be?
    A greeting,

    Hi,
    Try to create the objects again and take the screenshot of SU53 when you get the error and see the authorization object for which you are getting the error here.
    It is possible that you dont have development authorization.
    Also the issue could be that the system is not configured to create the objects begining with Z.
    Check this with basis as well.
    Thanks
    Ajeet

  • Need to create a new row in table with same data as Primary key, but new PK

    Hello Gurus ,
    I have a table with one column as primary key, I need to create a new row in the table, but with same data as in one of the rows, but with different primary key, in short a duplicate row with diferent primary key ..
    Any ideas of how it can be done without much complication?
    Thanks in advance for your reply.
    Reards,
    Swapneel Kale

    user9970447 wrote:
    Hello Gurus ,
    I have a table with one column as primary key, I need to create a new row in the table, but with same data as in one of the rows, but with different primary key, in short a duplicate row with diferent primary key ..
    Any ideas of how it can be done without much complication?
    Thanks in advance for your reply.
    Reards,
    Swapneel Kalesomething like
    insert into mytable values ('literal for new pk',
                                           select non-pk-1,
                                                    non-pk-2,
                                                    non-pk-n
                                           from mytable
                                           where pk-col = 'literal for existing pk')

Maybe you are looking for

  • A few questions re displaying photos (Am I missing something?)

    I am a Windows XP user with a brand new AppleTV. I'm generally happy with it but am not impressed with the way it handles photos. Am I mistaken or is there no way to do the following? - View subfolders of photos individually (it would seem not, based

  • Change the assigned report on payment medium

    Hi gurus, I'm been asked to modify the assigned traditional payment report from RFFO_A to RFFO_D on a certain payment medium and, eventhough the system doesn't populate any error nor warning message, I'm afraid there could happen some inconsistencies

  • Print to PDF---Showing blank Page

    Hi, I have report with chart-view and filter-view. If i Print the report into PDF without applying any of the prompts it's working fine. When am trying to Print the report after applying prompts...(let's say if i select 100 values from a multi-select

  • Order based on material group

    Hello, In our current system the system looks on based of the Requisitioner and under which Purchasing Group the Requisitoner is set under PPOMA_BBP where the Purchase Requisition is going.  Then the Purchaser can create a Purchase Order. Under each

  • To "control/select" a group of emails and delete takes forever

    when using 'select/control' to group a number of emails for deletion it takes forever to select (7-8 seconds) and to delete takes just as much time. It makes cleaning up email data very troublesome. I have to go to my provider, Windstream, and delete