To create a folder and some subfolders in it using jsp

Hai everyone,
I am developing an auto responder application in which i need to organise the auto reponder lists in the best way.one idea for this maintainance is to create folders for each company and then organise the autoresponder list of that company in that particular folder. If needed there should be a possibility to create sub folders in it.
So whenever someone wants to create a new auto responder he should have this option where he will be having a Browse button to create a new folder or to create in a subfolder in an already existing folder.
I need this to be developed in jsp.
Can anyone help me in this regard.

First, JSP if for presenting data. It is not meant for doing this kind of stuff. JSP is server-side technology, and (assuming you want to create folders on the client-side) it's not going to be possible.
I suppose there is some horribly nasty hacked ActiveX code that could pull this off, but Java by itself is secure. To allow a web application to access a person's file system is just craziness. Moreover, users are scared sh*tless to run ANY ActiveX scripts and most people that are tech savvy disable all ActiveX by default, so you have multiple problems here.
My suggestion, do this in Swing using Java Web Start. Forget about JSP for this task.

Similar Messages

  • Scripting: browse for data files in a folder and all subfolders below

    Hello,
    i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below.
    I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below.
    Anyone an idea?
    I don't want to use a loop-structure for finding subfolders and browse for the data files.
    Mr. Buddy

    dim result : result = DirListGet("C:\tmp", "*.dat", "filename", "FullFilenamesRecursive")
    dim fl : for each fl in result
    MsgBox fl
    Next
    Works fine for me and even recursive.
    Alternatively but with mucg more effort and the same result.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim folderPath : folderPath = "C:\tmp"
    dim files : files = GetFileListRecursive(folderPath)
    dim fl : for each fl in files
    MsgBox fl
    Next
    Function GetFileListRecursive(folderPath)
    dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    dim results : results = Array()
    GetFiles fso, folderPath, results
    GetFileListRecursive = results
    End Function
    Sub GetFiles(fso, folderPath, results)
    dim folderObj : Set folderObj = fso.GetFolder(folderPath)
    dim f : for Each f In folderObj.Files
    if(0 = StrComp(fso.GetExtensionName(f), "dat", 1)) then
    dim index : index = ubound(results) + 1
    redim Preserve results(index)
    results(index) = f.Path
    End If
    next
    dim d : for Each d In folderObj.SubFolders
    GetFiles fso, d.Path, results
    next
    End sub

  • I have created a folder and album where I've renamed the images, yet when I export them, the default to their original numbering. How can I block that so I can keep the newly renamed images as I've renamed them?

    I have created a folder and album where I've renamed the images, yet when I export them, the default to their original numbering. How can I block that so I can keep the newly renamed images as I've renamed them?

    As TD pointed out:
    OT

  • I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

    I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

    try something like this:
    with timeout of 3600 seconds
      -- long timeout to because the Finder is horribly slow
              tell application "Finder"
      -- collects the files from a folder called "whatever" in your user home folder
                        set xlsbFiles to every file of entire contents of folder "Whatever" of home whose name extension is "xlsb"
                        repeat with thisFile in xlsbFiles
                                  set name extension of thisFile to "xlsx"
                        end repeat
              end tell
    end timeout
    you could make a more efficient script using System Events.app, but this will get the job done with a minimum of thought.

  • Using Pages, I have created a document and inserted a Table for use in logging an inventaory. When I came to print this off however the lines for the table were missing but the text was in the Table format, weird! How do I print the Table?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

  • How will Aperture treat Nikon raw images which have been enhanced using Capture NX2 software?  Some are cropped and "developed" and some have been enhanced using the control point technology.  I have NIK sw as a plug-in in aperture.

    How will Aperture treat Nikon raw images which have been enhanced using Capture NX2 software?  Some are cropped and "developed" and some have been enhanced using the control point technology.  I have NIK sw as a plug-in in aperture.

    Actually, there is a Nik/Nikon connection — but I am pretty sure it is irrelevant to the OP's question. The connection is that Capture NX2 was written as a joint venture between Nikon and Nik. (The name similarity is a coincidence.)
    Capture NX2 is a cool program that incorporates the features of Nik's Viveza and Nikon's Raw processing engine, along with some other powerful image adjustment features. It provides, like Aperture, a losses workflow. Unlike Aperture, the adjustments (Edit Steps in C-NX terminology) are saved in the original NEF file along with the un-altered raw data. Multiple versions can be saved in a single NEF.

  • Bug with workflow that creates a folder and sub folder with the same name.

    Hi,
    I've found a possible bug in SharePoint 2010 workflows. I only have access to SharePoint 2010 and SharePoint Designer 2010 over my companies intranet, afaik I don't have access to to logs or anything server side so sorry for the any missing information.
    I had some problems with a workflow in one list that needed to create some folders and subfolders in a second list. The production version did a lot more so I setup a test area with 1 list and a workflow that only does the folder creation part and have managed
    to consistently replicate this problem.
    The test list has two columns, [title] and [sub folder title]
    The workflow starts by getting the values for [title] and [sub folder title] into variables.
    It then creates a folder in the same list with the same name as [title], and then creates a sub folder under this with the name from [sub folder title]
    So the resulting structure would be:
    Test List:-
        List item with fields [title] and [sub folder title]
        [folder: title]:-
            [folder: sub folder title]
    If both folder names are different (e.g Folder1 and Folder2) then it works perfectly fine, if both folder names are the same (regardless of character case, e.g. samefolderName and sameFolderName) then the workflow fails.
    As part of the test i made the first action of the workflow to log the message "Workflow Started" to the history list. When the workflow fail there's nothing logged in the history list other than the error: "The workflow could not update the
    item, possibly because one or more columns for the item require a different type of information."
    Creating a sub folder with the same name as it's parent works fine manually but for some reason a workflow can't seem to do it in one action.
    As there's no history list entries before the error it looks like the workflow is just failing to start but if i do something like add an if statement to check if [title] and [sub folder title] are the same, and only create the subfolder when they are not
    then it runs fine doing what it's set to.
    The function of the workflow in our office was for convenience so were just working without it. Just wanted to post to see if anyone else has come across this/could try to replicate or explain this  and see if it's a SharePoint bug or something specific
    to our setup.
    thanks,
    Martin

    not sure about the specifics of your workflow, but if you're querying the list for the folders... keep in mind that a list lookup will only ever bring back ONE item... even if there are several items that meet the filter criteria... example: if i search
    a list for an item assigned to "john doe", there may be 15 tasks that meet the criteria, and it'll only grab one... this is why SP Designer WARNS you when your list lookup may exhibit this behavior.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • I am trying to create a folder and save it onto my desktop but apparently I do not have permission to do so. How can I change this?

    I am trying to figure out how to create a folder on my desktop. For some reason, my desktop folder is no longer available and whenever I try to set one up, an alert states that I do not have permission to create one. I don't know what to do.

    I think you need to repair user directory permissions.  Follow these instructions:
    http://osxdaily.com/2011/11/15/repair-user-permissions-in-mac-os-x-lion/

  • Show Thumbnail of all files in a folder and its subfolders

    Hi Guys,
    I want to set the Filter Panel (Adobe Bridge CS3) to "show all items in this folder and all its subfolders" through Java script on windows.
    From UI it is possible by clicking on icon buton present in the filter panel and content panel shows the files from current folder as well as from its subfolders.
    Can any one suggest some Java script to do it?
    -P. M. Mitchell

    Any solution?
    Good Luck.
    My
    Si
    tes

  • Folder redirection configured in GPO does not create Documents folder and does not redirect

    Hi
    Another Folder Redirect-post - sorry for that, but I could not find an answer for my problem so far: even with consulting many threads here...
    We have an existing environment under Windows XP and want to move away from that. Now I ran into troubles with folder redirection...
    The following folder- and permission structure exists so far:
    \\<server>\<Users$-share>: This is the base folder for all users-directories
    -> Permissions: SYSTEM: Full / Administrators: Full / Users: Read&Execute, only this folder
    -> Share-permissions: Authenticated users: Full control
    \\<server>\<Users$-share>\<username>: base folder for the specific user
    -> Permissions: SYSTEM: Full / Administrators: Full / User: Change, all permissions inherited onwards
    -> Giving only change permission prevent further problems with self-called "advanced users"... ;-)
    \\<server>\<Users$-share>\<username>\profil.V2: Profile directory of the user
    -> Of course here the permissions are set by the system: override the predefined permission
    \\<server>\<Users$-share>\<username>\daten: Atcual Home directory of the user
    \\<server>\<Users$-share>\<username>\daten\Documents: Suposed Documents directory of the user
    Now I am going to Server 2012 and Windows 8.1, configured the GPO to redirect Documents folder into the above mentioned:
    GPO - User configuration - Policies - Windows settings - Folder Redirection - Documents:
    Setting: Standart - redirects all folders to the same path
    Destination folder: Copy to base directory of the user
    I apply policy to the user, log out and in - it doesn't work, no folder Documents created in my home-folder, Folder Documents still configured at C:\Users\<user>\Documents
    A very special point:
    I also do Redirection of the My Pictures-folder: Define it to follow the Documents folder. Funnily that one works and creates and configures \\<server>\<Users$-share>\<username>\daten\Pictures
    -> So in my eyes, it should work!
    Then: I want to do the folder redirection without Offline Files, due to the fact, that our users work with dynamically assigned virtual desktops, which are been cleaned everytime a user logs off a machine. Therefore synchronizing doesn't make sense...
    I just cannot see, why this redirection does not work :-(
    Thank you very much for any help!
    Kind regards
    David

    Hi David,
    Before going further, would you please let me confirm the OS version of the Windows Server which you used to
    configure folder redirection? Based on your description, did you mean that those users (who will be applied folder redirection settings) logged on Windows XP client computer?
    When you configure the folder redirection setting in Document Properties (path:
    User Configuration-> Policies-> Windows Settings-> Folder Redirection-> Documents), please check if you checked “Also apply redirection policy to Windows 2000, Windows 2000 Server, Windows XP, and Windows Server 2003 operating system” in Settings
    tab. As below picture shows.
    à
    GPO - User configuration - Policies - Windows settings - Folder Redirection - Documents:
    à•Setting: Standart
    - redirects all folders to the same path
    à•Destination
    folder: Copy to base directory of the user
    Would you please provide a screenshot of those settings you describe? Meanwhile, please summarily describe
    that how you configure. For example, where this GPO link to? Or any other. It will help me to understand clearly. Thanks for your understanding.
    In addition, please use
    gpresult command to check if the folder redirection group policy was really applied.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Creating publishing page in specific folder and with custom page layout using JSOM

    Hi!
    I have a site collection under my root, in which I have a page library with a folder inside. I want to create a publishing page inside the folder using JSOM. The API provides the following information on the three possible ways of how you can create a publishing
    page.
    PublishingPageInformation with all defaults.
    PublishingPageInformation.Name and PublishingPageInformation.PageLayoutListItem.
    PublishingPageInformation.Name, PublishingPageInformation.PageLayoutListItem and PublishingPageInformation.Folder.
    Source - SP.Publishing.PublishingPageInformation Properties (sp.publishing)
    Since I want to create the page in a specific folder in the page library, I have to go for the last option.
    I have a function call chain that look as follows:
    getLanguageID(webUrl, languageID)
    .then(function(resolveVal) {
    language = resolveVal;
    return checkPageExist();
    .then(getEditorialNewsFolderJSOM)
    .then(getAssociatedPageLayoutListItem)
    .then(addPublishingPage)
    The first two methods, 
    getEditorialNewsFolderJSOM
    getAssociatedPageLayoutListItem
    fetches the required data as SP.Folder- and SP.ListItem-objects.
    The problem occurs when
    addPublishingPage
    is called. This method, in turns calls this function. 
    var pageInfo = new SP.Publishing.PublishingPageInformation();
    pageInfo.set_name(publishPage.title);
    pageInfo.set_pageLayoutListItem(pageLayoutListItem);
    pageInfo.set_folder(editorialNewsFolder);
    pageCreationContext.newPage = pubWeb.addPublishingPage(pageInfo);
    clientContext.load(pageCreationContext.newPage);
    clientContext.executeQueryAsync(function() {
    publishPage.isPageCheckOut = true;
    resolve();
    }, function(error) {
    reject(precio.intranet.resource.errCreateContent_addPublishPage);
    The error happens when this function is called with the page information object.
    SP.Publishing.PublishingWeb.addPublishingPage(pageInformation)
    Error:
    Cannot read property '$2t_0' of undefined
    and it happens in SP.Runtime.js.
    I've tried this
    sample code from the MSDN-team, and added the pagelayout and folder properties, but it renders the same error.
    Creating a page directly in the page library with a blank SP.PublishingPageInformation object works perfectly fine!
    What could possibly be wrong? The error isn't something that I can debug myself since it happens in SP.Runtime.js, and the documentation for this is very sparse!
    Any help on how to resolve this issue would be helpful!

    Hi Vinay,
    This may be useful:
    https://blogs.oracle.com/jdevotnharvest/entry/remote_task_flow_vs_wsrp

  • How to create a folder and a sub folder in it

    Hai everyone,
    I am developing an auto responder application in which many users will be creating different auto responders.To orgainse these lists better i need to give a folder option where a person can create a auto responder in his own folder so that the lists are maintained well.if needed they should be a subfolder option as well in this application.
    So can anyone help me to create a folder option and a subfolder's option in that folder. This should be similar like clicking on a browse button where a user can select/create his /her own folder or subfolder and create an auto responder in that folder.

    Have a look at the API documentation of class java.io.File.
    You'll want to use the mkdir() or mkdirs() method.

  • Create new folder and move items script

    Hello
    Im new to applescript and automator.
    I've been looking high and low for something and figured I should ask the pros here...
    I want the ability to have a "hot folder" that when ever anything is placed in the folder, a new folder is created in the top directory of that hot folder using the modified date as the new folders name and the contents of the hot folder are moved to the correct folder.
    My thought was to upload pictures to this folder (on an external drive) and have the script put them in the correct folder that was created by the script. I could use either "modified date" "created date"...
    Is this common? Possible?
    Any ideas how I could do this?
    Thanks All!!!

    a new folder is created in the top directory of that
    hot folder using the modified date as the new folders
    name
    Is that the modified date of the files that you
    dragged to the "hot folder"?
    If so, that would probably require AppleScript since
    Automator can't get that information from the files.
    For the rest of it-as a starting point
    New Folder
    Rename Finder Items (Add Date and Time)
    Save As Plugin- for Folder Action - attach to your
    hot folder.
    Note: You don't want to create the new folder in the
    hot folder, doing so will likely cause it to loop
    continuously.
    Yes I would like to pull the "created date" or "modified date" from the files I drop in the HOT Folder and use that date as the new folders name.
    So if I put 10 pictures in that Hot Folder and 5 had the same created date then those 5 would go to one newly created folder et cetera..
    And no, the new folder will be either above or along side the Hot folder. Not in it.. good catch!

  • Creating a Folder and uploading file into that folder Inside OneDrive in Office365 programmatically

    I am using this below code to create a folder inside onedrive in office365,but i cant able to access the url for accessing my personal onedrive,it causing error "Cannot connnect to the server"
     using (ClientContext clientContext = new ClientContext("https://claysys123-
    my.sharepoint.com/personal/anju_claysys123_onmicrosoft_com/Documents/Forms/All.aspx"))
                    SecureString passWord = new SecureString();
                    string currentyear = DateTime.Now.Year.ToString();
                    foreach (char c in "MyPassWord".ToCharArray()) passWord.AppendChar(c);
                    clientContext.Credentials = new SharePointOnlineCredentials("username", passWord);
                    Web web = clientContext.Web;
                    clientContext.Load(web);
                    clientContext.ExecuteQuery();
                    clientContext.Web.Folders.Add("https://claysys123.sharepoint.com/_layouts/15/start.aspx#/Shared%20Documents");
                    clientContext.ExecuteQuery();
    but whenever am executing this clientContext.Web.Folders.Add("https://claysys123.sharepoint.com/_layouts/15/start.aspx#/Shared%20Documents");
                    clientContext.ExecuteQuery(); causes Error "cannot Connect to The Server"..pls help me as soon as possible..
    please give me sample code to get rid of this problem.

    Creating folder in One drive is equivalent to communication with document library. Here are all the samples to create folder in document library.
    http://social.msdn.microsoft.com/Forums/silverlight/en-US/985bab38-7e81-498c-97d8-534e6ee4cf11/how-to-create-folders-based-on-logic-using-client-object-model-2013?forum=sharepointdevelopment
    Bala

  • Some materials are used by WM and some materials are not used by WM in SLOC

    Dear Experts.
    We are going to use WM in F100 Storage Location.
    But because of business, Some materials(A) will be managed by WM and some materials(B) will be not managed by WM in same storage location.
    So some materials(A) have WM view in material master and some materials(B) have no WM view.
    But when posting GR for material(B), error occurs.
    the message is as below.
    Material 6850009 does not exist in warehouse F01
    Message no. L9023
    Diagnosis
    All the materials that you use within a warehouse number must also be defined for this warehouse number.  The material you are using is not defined.
    Procedure
    If you want to use the material within your warehouse number, you must create the material in the material segment for that warehouse number.
    Let me know how to fix it.
    We are going to use WM in A sloc.
    In A Sloc, some material are managed by WM level and some material are managed by only MM level.
    Thank you in advance.
    Best reagrds,
    Kil-Nam

    You assign a warehouse to a storage location, which means that the entire storage location is warehouse managed. all materials in this storage location have to have a WM view,
    It is not possible to decide it on material level if it is subject to WM or not.
    You have to create an extra storage location for the non-WM-materials  to meet your requirement

Maybe you are looking for

  • How can i get itunes on my i phone?

    how can i use itunes with my iphone without the usb key?

  • Strange problem with bookmarks

    Hi all, Longtime user, first time poster, as they say. Using InDesign 5.5, I am creating documentation for a software product and I have about 1600 pages of documentation split over three volumes. I'm using the Book function and to start with I have

  • Tab delimited file on app server. How to do that?

    Hello, When i transfer a tab delimited file from pre. server(windows) to app. server(windows) using CG3Z , the tab delimitation  is not working. for eg : the file with below layout 01.04.2007     31.03.2008     1     120      01.05.2007     31.07.200

  • Where do I start to creating an app.

    Where can I find the most information about creating an app with my DB I know my php and mysql :) Thank you https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/

  • Cache folder excedes limits

    My cache folder is consistently getting over 3 gigs. I have tried completely uninstalling firefox and installing the latest version. One of the problems with this folder being so large is that when a program like Spybot scans it, it takes forever. Wh