How can I creat a folder by jsp

import java.io.*;
class folder
     public static void main(String args[])
          folder foIns = new folder();
          foIns.makeDir("E:\\test");
     public static void makeDir(String dir)
File d = new File(dir);
if (!d.exists()) {
d.mkdir();
I can creat a folder by java , but how can I creat a folder by jsp??
thanks all ^_^

import java.io.*;
class folder
     public static void main(String args[])
          folder foIns = new folder();
          foIns.makeDir("E:\\test");
     public static void makeDir(String dir)
File d = new File(dir);
if (!d.exists()) {
d.mkdir();
I can creat a folder by java , but how can I creat a
folder by jsp??
thanks all place this class file in web-inf/classes of your web application,and in jsp page use
<jsp:useBean id="fold" class="your complete class name" scope="page"/>
<%
fold.makeDir("dir name");
%>

Similar Messages

  • How can I create a folder in ios for pdf files?

    How can I create a separate folder in ios for my pdf files?

    Hi Artistdeet,
    For this you have to follow certain steps-
    1. Tap on Document tab from left pane of Adobe Reader.
    2. Tap on 'Edit' button placed at right side of top toolbar.
    3. Tap on "folder icon with plus sign", it will ask you to enter the folder name.Enter desired folder name by which you want to create the folder.
    Hope this will solve your problem.
    Thanks
    -Satyadev

  • How can I create a folder on internal storage of DMP 4310?

    Hi. I'm a junior engineer in Korea.
    I have a question about DMP 4310 with creating a folder of internal storage.
    I can acess the internal storage but, I cannot make a folder or file uploading.
    I already checked about Access mode - read and write, and also DMP management - FTP Server On, and password too.
    It's enable to read but, unable to make a file or a folder.
    when It rejected my order, I saw a message on my screen like this.
    "550 Create directory operation failed."
    I searched this letters, but couldn't get any information to handle this issue except for showing of permision error message of linux.
    now, I am begging for your kindness.
    what am I suppose to do?

    I checked my permission, and I got the result.
    By the result, I cannot make any folders or files except for path of /usb_1/
    So, I can upload file to /usb_1/ and play it. that's it.
    self question, and self answer... so sad to less people to answer this DMS section...

  • How can you Create a folder in pages?

    I ve many documents all mixed together.. Can u create folders inside pages app...?
    Thanksss

    Indeed you can: http://help.apple.com/pages/ipad/2.2/#/tan724890f7

  • How can we create EDITABLE TABLE in JSP

    Hi!
    I want to have a table in jsp where data r been retrived from oracle db.
    I want a screen where table has got edit, delete, save buttons with changes updated in database please can any one help me with the code????
    I am using Apache 5.2 / JDK 5 / oracle 9i
    Please guide me....
    Thanks.

    hi,
    Same topic Discuss in another thread..
    http://forum.java.sun.com/thread.jspa?threadID=627472&tstart=15

  • How can I create application folder in home folder?

    Hi there,
    I'm using MacBook Pro Early 2011 model with Mountain Lion (10.8.5).
    I have two questions.
    I recently noticed that there was an application folder in my home folder (the folder with your username), but that application folder had been empty. I remember I used to be able to access to my applications from that folder, but not anymore.
    Since the folder was empty, I deleted it before doing further research. Does anyone know if this is a bad thing?
    After deleting the empty application folder from the home folder, I looked up and some said the application folder in the home folder and the application folder in Macintosh HD are two different folders. I don't know what it means, but I would like to have an application folder with applications in my home folder. Is this possible? or should I just make an Alias folder and put it in my home folder?
    Thank you in advance.

    Thank you for the answer.
    I've screwed up my computer before doing some dumb things without asking, so I was a little paranoid.

  • How can I create a folder-like thing for my downloaded Screencasts?

    Hi,  Every now and then I download/purchase screencasts from various places. Is there a way for grouping the screencasts based on some criteria (e.g. their name) like iTunes groups podcasts?  Thanks in advance, Behrang

    Solved! I converted the Media Kit to Show and edited the show name and now they are grouped in TV Shows by Show Name.

  • How can i create a new folder on my ipad

    i recently bought an ipad air, how can i create a folder on the desktop, also how can i read pdf and powerpoint materials on it?

    Folders: http://help.apple.com/ipad/7/#/iPad997daa3f
    As for PDFs and Powerpooint presentations, there are a number of apps capable of reading them in the app store (and the mail app will generally open them when sent as attachments). Look into Adobe Reader, GoodReader, File Manager to name a few). Most cloud service apps such as Box and DropBox will also read these files.

  • How can i create an email folder on my iphone 3gs - so that I can "file" emails from my inbox??

    I would like to be able to file some emails by trnsferring them from my ibox on the iphone.
    How can I create a folder for this please??

    Thanks for getting back.
    But - on Outlook  I have many folders already set up.
    I also have folders set-up on the webmail version on the email account that I use to get emails to my iphone.
    But neither of these seem to sync to my iphone - none of the folders show on the iphobe.
    That is where I have got stuck!   Any other thoughts please??
    Regards

  • How do you create a folder to organize your apps

    How can you create a folder to organize your apps. 
    How can you move an app into a app that was already created.  i.e.  "Newstand" can you put other magazines into this folder.

    actually u cant.
    if u want to create folders,put your finger on an icon until it starts moving,then take an app and put it on another app,then u will create a folder that u can rename it as u want

  • How can I create a new folder in de tool bar?

    I have several bookmarks of news papers and magazines located in the tool bar. Since they take space I need for other bookmarks, I need to place them in a folder which will also be located in the tool bar. How can do to achieve that?...I did it once but I forgot how I did it.

    Just like you would create a new folder anywhere. Open the drive's icon from your desktop or the Finder, and click shift-command-N. (Or use the Finder menu if you prefer - File - New Folder).
    If you can't create a folder, your drive may be the wrong format (you can't write to a Windows/NTFS formatted drive, for example). You'll have to back up any files you have on there, and then use Disk Utility to reformat it to Mac Extended (if it will only be used on a Mac) or MS-DOS format (if you want to share it with a PC).
    Matt

  • How can I create a new folder in Word for Mac ?

    How can I create a new folder in Word for Mac?

    You don't do this in Word. You do it in the OS X Finder.
    All you need do in Word is open the file, then select Save As from Word's File menu. Change the destination to your new folder then click on the Save button.
    The Finder method is much faster if you have a number of files you want to move. Just remember that to open those moved files in Word, you will have to change the directory from which you will open those files.

  • How can I create a new folder in an external disk that is connected via USB to my Mac?

    How can I create a new folder in an external disk that is connected via USB to my Mac?

    Just like you would create a new folder anywhere. Open the drive's icon from your desktop or the Finder, and click shift-command-N. (Or use the Finder menu if you prefer - File - New Folder).
    If you can't create a folder, your drive may be the wrong format (you can't write to a Windows/NTFS formatted drive, for example). You'll have to back up any files you have on there, and then use Disk Utility to reformat it to Mac Extended (if it will only be used on a Mac) or MS-DOS format (if you want to share it with a PC).
    Matt

  • How can I create a sub-folder within my "Documents" folder?

    How can I create a sub-folder within my "Documents" folder? I have many similar documents that I want to group together. This will also un-clutter my Documents folder.

    Also, you can add a New Folder button to the Finder's toolbar by opening Finder, going to the View menu in the menubar, selecting Customize Toolbar..., and dragging the New Folder icon to the toolbar in the Finder window. Then it's just one-click for new folders wherever you want them.

  • How can we create dynamic pie chart in jsp

    hi im a new jsp programmer and i just want to know how can i create dynamic pie chart in jsp

    http://sourceforge.net/projects/jfreechart
    - Saish

Maybe you are looking for

  • [SOLVED] Cannot Compile Pacman 3.5.3

    My head is aching at the moment as I have become desperate to compile Pacman. The normal procedure ./configure then make fails with this error (Honest, I can't make out anything, it sound like a libtool problem): make all-recursive make[1]: Entering

  • How do I install a "recents" stack in the 10.6 Dock

    How can I create a "recents" stack in the Dock?

  • Rge : F110

    When we run F110,DME file is generating when we  download. We want in .csv format Please tell me the configuration or program. JABEEN

  • FIX FOR iOS6 WIFI PROBLEM

    When trying to connect to my wifi a screen came up saying 'page cannot be found' on the apple website. In an attempt to fix it I browsed these discussions for a few minutes. Suddenly the log in screen popped up! N Now my wifi is working perfectly! No

  • Logic 7.0.1 Update

    I'm having problems installing the logic 7.0.1 update. It keeps saying that it can't find logic pro in the applications folder. has anyone else had this problem and does anyone know how to get round it?