Weblets: subdirectories

Hi,
I don't know if this is the right place for my question...
I started to use Weblets (resource loader from jar files), and I would like to use resources residing in multiple nested subdirectories, but it doesn't work
anyone?
thx in advance
MB

The perfect place is the weblets mailing list, there you will also be in contact with the developers

Similar Messages

  • I have a new iPod Touch and PC running Windows 7. I want to upload pictures from my PC to my iPod. The best I can do right now is to create a new subdirectory on my PC and put all the pictures I want in that subdirectory. I want many subdirectories! ??

    I have a new iPod Touch. I also run Windows 7 on my desktop PC. I have tried to post pictures from my PC to the iPod. But the only way you can do this that I know of, is to create a subdirectory on the PC and put all of your pictures that you want on the iPod in that subdirectory. Then you must use iTunes to synchronize the PC subdirectory with photos on the iPod. But I want many subdirectories to organize my pictures on the iPod. Can you do this??, it doesn't look to me like you can!??
    Thanks Tom

    Yes.
    tomfromlong beech wrote:
    "Remember one one level of subfolders is allowed."  Does this mean that you can have as many subfolders as you want, but they can only be one level deep under the main folder?

  • Error: File adapter dynamic directory not safe with subdirectories

    Hi,
    I'm using variable substitution to determine the destination directory for my RFC->File scenario
    In my RFC I have a tag called <PATH> that contains the full target path. If that path doesn't have subdirectories the variable substitution works perfect, for example:
    <PATH>directory1</PATH>
    Then in File adapter I have %var1% with the value of PATH and it works.
    But if I want to add subdirectories on the path, for example <PATH>directory1/subd2/subd5</PATH> the solution doesn't work.
    That's the error that I get:
    Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Security violation encountered during variable substitution: Content of variable var1 is not safe: directory1/subd2/subd5
    How can I access to that directory?

    Hi Marshal,
    From help.sap:
    To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters u201C/u201C, u201C\u201C, and u201C..u201C.
    Carlos

  • Serializing a JavaBean to the WEB-INF directory or subdirectories

    Hello, I'm hoping someone can help me on this.
    I'm working with two scenarios in WSAD Enterprise Edition 5.0.0.2 for
    serializing a JavaBean (called AddressBean) to the following location
    in my Web application:
    /WEB-INF/classes/resources/serializable
    The data corresponding to the bean I'm serializing is being stored in
    a file with a name that makes it unique on the file system (e.g.
    jeff.ser, jill.ser). In the first scenario, I start by getting a
    FileOutputStream, then an ObjectOutputStream which is then used to
    write my JavaBean as needed. All of this is done in the first
    scenario from a JSP located in:
    myWebApp/Web Content/jsp/JSP1.jsp
    That works fine and as I'd expect. However, I'm not able to do that
    in the second scenario. In this scenario, I created an additional
    method in the bean itself that will actually serialize an object of
    its own type to the same directory structure that I showed above (i.e.
    under the WEB-INF directory). That is, in my bean, I have the
    following:
    public void writeDataToFile(AddressBean bean, String path) {
    FileOutputStream fos = null;
    ObjectOutputStream oos = null;
    try {
    fos = new FileOutputStream(path);
    oos = new ObjectOutputStream(fos);
    oos.writeObject(bean);
    oos.close();
    catch(Exception e) {
    e.printStackTrace();
    In this scenario, another JSP (call it JSP2.jsp) is creating an
    instance of AddressBean by using the jsp:useBean tag. The real path
    for the .ser file is figured out in the JSP code (same as was done in
    JSP1.jsp), and then I delegate the serialization part to the bean
    itself like so:
    // In JSP2.jsp
    <jsp:useBean id="ab" class="examples.beans.simple.AddressBean" />
    AddressBean address = (AddressBean) pageContext.getAttribute("ab");
    // get the path
    String path = ...
    String realPath = application.getRealPath(path);
    // write the object
    address.writeDataToFile(ab, realPath);
    What happens is that I get a FileNotFoundException while trying to
    create the FileOutputStream in the writeDataToFile() method in
    AddressBean at runtime. The message in the console states:
    java.io.FileNotFoundException:
    C:\WINNT\Profiles\myself\Personal\IBM\wsad\myworkbench\myWebApp\Web
    Content\ (Access is denied)
    The source file for AddressBean is located at:
    myWebApp/Java Source/examples.beans.simple.AddressBean
    WHAT is going on here!? I know that everything stored underneath the
    WEB-INF directory is not served to clients so I'm also assuming that
    whatever stored in that directory or its subdirectories is not
    accessible to clients by default. The only real difference between
    the two scenarios that I've described is that in the second one, the
    attempt to get a FileOutputStream is being made by a resource (i.e.
    AddressBean) that is outside of the "Web Content" directory structure
    in WSAD. However, the "Java Source" directory, which contains the
    package housing my AddressBean class, is also under myWebApp so I'm
    not seeing what the problem is at the moment.
    If anyone has any ideas, suggestions, solutions, please let me know.
    I'm stumped. Thank you!
    Jeff

    I figured it out, and it was my mistake. The problem was in a method defined in my AddressBean class that would take a String argument and use it to help create a unique file name (i.e. one with a .ser extension to contain the serialized bean data) for purposes of serialization later.
    Basically, I was using a local variable in the method unintentionally instead of the instance variable that I had defined in the bean so my path value was null at runtime--hence the FileNotFoundException.
    I'm still not sure why the (Access is denied) message was appearing, but I suspect it was b/c the absolute path that I'd end up with at runtime wasn't kosher; or, not having a destination .ser file was the problem.
    In any event, I fixed the mistake and could serialize a JavaBean in several ways:
    1. From a JSP directly
    2. By using a method defined in the JavaBean itself
    3. By passing on the request, which contained the JavaBean as an attribute, to a servlet that took care of the serialization
    Jeff

  • File deletion in root and subdirectories.

    Greetings,
    I have a question regarding Batch scripting. I am trying to create a system maintenancing script which removes .TMP and .BAK files from all of my drives both subdirectories and directories above. Let's say the Batch script would be placed into "Folder3"
    in the following internal drive address "C:\Folder1\Folder2\Folder3\Folder4\Folder5". And I want the batch script to remove files from folders 4 and 5 as subdirectories but also to remove files from C: Drive and folders 1, 2, and of course 3 itself
    but without removing folders. And I'd like to apply this method to all drives simultaneously without a human user personally moving the script via cut/copy and pasting from drive to drive. The other alternative which can come into consideration is to create
    a Batch File with any address location on the internal drive and when running this Batch file it'll create additional Batch Files on specified (multiple) drives at the very root of drives in the drive address of C:\ for instance, and initializes the required
    file deletion process. Some of the folders require my Administrator priviliges therefore I'd like to create a code within the script that ask for user permission and says "Yes" but without actually asking from me as the user to click "Ok"
    or "Yes" when running the script itself or to fully bypass the firewall. I have created the other part of the coding for deleting specified superfluous file types and in what way it's just the sub and above-directory part of it that gives me a pause
    to proceed. Any help is greatly welcome or pointers. If my request would seem cluttered please notify me of it and I'll try to simplify it down, although I hope I wasn't too confusing with the elaboration.
    Thank you in advance, even for the consideration.
    Kind Regards.

    @ECHO OFF
    for %%a in (C: D: E: F: G:) do call :Sub %%a
    goto :eof
    :Sub
    echo Processing %1
    del /s /q %1\*.tmp
    del /s /q %1\*.bak

  • How to read a files in directory and its subdirectories

    I wants to read all files in directory, its subdirectory and further till end the files in the subdirectory of subdirectories.
    I have some idea the I can do this by using recursive function, using the functions isDirectory(), File.list() etc.
    How much you can please help me. (via code of logic)

    import java.io.*;
    import java.net.*;
    public class MyCon
    public static void main(String args[]) throws
    IOException
    File file=new File("c:/");
    openDirectory(file,"");
    System.in.read();
    static void openDirectory(File file,String indent)
    String[] string=file.list();
    String path=file.getAbsolutePath();
    for(int i=0;i<string.length;i++)
    File temp=new File(path+"/"+string);
    if(temp.isDirectory())
    openDirectory(temp,indent+" ");
    else
    System.out.println(indent+temp.getName());

  • Using subdirectories in file sender

    Hi there
    Is is possible to search in all subdirectories in your file sender adapter's source directory? I know you can specify the different directories using the Advance Selection for Source File but i'd like to know if you can specify somehow to have it search the source directory and all it's subdirectories?
    Thanks,
    Jan

    There is no standard way to do this. You may however have some OS script to perform this. The script may search the file and copy it at one location from where PI can pick it up.
    Regards,
    Prateek

  • How to create subdirectories in playlist, ipod classic

    I am not familiar how to create subdirectories in Playlists in iPod Classic. Of course I have to user iTues software but I don't know how to create. Please guide me if anybody knows how to create subdirectories.
    I want like this (like windows how subdirectories are look)
    Classical
    Dindufa
    Zazimba
    Thank you,
    grb

    To expand on that further, putting playlists within folders and/or folders within folders creates multiple levels of playlist organization. However, this only works in auto-sync mode, so if you manually manage your Classic the folder structure will not transfer over.

  • List of files in subdirectories

    I am trying to create an array of strings to contain a list of files in a particular directory. The only problem is that I am having trouble getting down to the subdirectories. I think I am going in the right direction here is some of my code:
    public void readDir()
              String dir = "F:\\APPS\\SPCII\\DATA\\";
              File directory = new File(dir);
              String[] M = directory.list();
              for (int index = 0; index < M.length; index++)
                   System.out.println (M[index]);
              for(int i = 0; i < M.length; i++)
                   File directory1 = new File(M);
                   String[] P = directory1.list();
              for (int index = 0; index < P.length; index++)
                   System.out.println (P[index]);
         }//readDir
    I can get all the files in the parent directory but when I go into the subdirectories such as files Array P is holding and try to print them out I get an error that it cannot resolve the symbol P. Any help is appricieated.

    Doesn't anybody read the fine instructions any more? Just above where you posted this unformatted code it says "You can format the text of your message by using a number of special tokens". If you had read that you would have been able to format your code like this:public void readDir()
      String dir = "F:\\APPS\\SPCII\\DATA";
      File directory = new File(dir);
      String[] MACHINE = directory.list();
      for (int index = 0; index < MACHINE.length; index++)
        System.out.println (MACHINE[index]);
      for(int i = 0; i < MACHINE.length; i++)
        File directory1 = new File(MACHINE);
    String[] P = directory1.list(); // here you declare P
    } // this is the end of the block where P is declared, P is not known outside this block
    // you probably want this } to go after the next for loop
    for (int index = 0; index < P.length; index++) // so you can't use P inside this block
    System.out.println (P[index]);
    }//readDir

  • Precompiling subdirectories in 4.5.1 sp13?

              Two questions.
              1) Is there a way to have jspc compile all subdirectories from a given path? I'm currently having to try it directory by directory.
              2) My batch file that includes the following two lines:
              %JDK_HOME%/bin/java -ms64m -mx64m -classpath %JAVA_CLASSPATH%;%WL_CLASSPATH% weblogic.jspc -d d:\temp -package tradeex.ec4.jsp -keepgenerated -verbose marketplace\public_html\*.jsp
              %JDK_HOME%/bin/java -ms64m -mx64m -classpath %JAVA_CLASSPATH%;%WL_CLASSPATH% weblogic.jspc -d d:\temp -package tradeex.ec4.jsp -keepgenerated -verbose marketplace\public_html\wui\en\*.jsp
              Both compile the jsp pages fine. No problems at all with the first line. The second line dumps all the compiled pages in d:\temp\tradeex\ec4\jsp. If these are compiled on the fly by weblogic, they wind up in d:\temp\tradeex\ec4\jsp\_wui\_en.
              How can I get it so that command line compilation creates the same directory convention as realtime compilation? I've tried changing the package to reflect tradeex.ec4.jsp._wui._en, which has the desired effect, but doesn't seem like the proper way to do it.
              

    You can set this in version 5.1.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "anil" <[email protected]> wrote in message
    news:399aba85$[email protected]..
    How we can override default error page (404) in WebLogic ver 4.5.1 ? Wehave already set property weblogic.httpd.errorPage.404=URL in
    weblogic.properties file , but it is not working with 4.5.1
    >
    We would like to have solution in properties setting, because changing thecode is not possible
    >
    Thanks in Advance
    anil

  • Create file with subdirectories? (Unzip)

    Hi, when following the example to unzip the contents of a zip file (http://developer.java.sun.com/developer/technicalArticles/Programming/compression/
    ), it fails when the files are situated in subdirectories.
    So there is no way to create a file in not yet existing subdiretories directly? I'll have to parse the filename and create non-existing directories, or is there another, simpler way?
    Thanks
    Heiko

    use mkdirs().. it'll create all dir and subdirs..
    import java.io.*;
    class  CreateDir
         public static void main(String[] args) throws Exception
              File f = new File("C:/ram/code/dir/test/xyz/abc");
              f.mkdirs();
              System.out.println("Hello World!");
    }regards
    raamam

  • Permissions Issue on Web Subdirectories

    I have several complex websites to set up on Mac OS X and I have created a subdirectory structure under /library/webserver/documents so that i can organise my site contents. The new structure is:
    /library/webserver/documents/sites/sitename1, sitename2, sitename3 etc
    In server admin I have set up a domain name and a realm but i cannot see my subdirectories when i try to choose the folder containing the web pages - the folder "sites" doesnt appear in the list. I can specify it but if I try to access the index page of the new site I get a security error "you do not have access to..."
    Yet the permissions seem just fine - everyone has read access and in fatc the permissions seem identical to the parent folder(s).
    Any ideas?

    I have several complex websites to set up on Mac OS X
    and I have created a subdirectory structure under
    /library/webserver/documents so that i can organise
    my site contents. The new structure is:
    /library/webserver/documents/sites/sitename1,
    sitename2, sitename3 etc
    It's a permissions issue.
    Try this in terminal:<pre>su; # Enter root password when prompted.
    mkdir /www
    mkdir /www/sitename1
    mkdir /www/sitename2
    mkdir /www/sitename3
    chmod -R 0775 /www
    chown -R root:www /www</pre>Place your site contents in these directories and adjust your sites in SA to point to these paths.
    In server admin I have set up a domain name and a
    realm but i cannot see my subdirectories when i try
    to choose the folder containing the web pages - the
    folder "sites" doesnt appear in the list. I can
    specify it but if I try to access the index page of
    the new site I get a security error "you do not have
    access to..."
    Yet the permissions seem just fine - everyone has
    read access and in fatc the permissions seem
    identical to the parent folder(s).
    Any ideas?

  • Mounting subdirectories of an NFS share

    I'm an admin from an IRIX/Linux background. I have an existing NFS-based server setup. XServes are creeping into my racks because they are, in many respects, lovely. However, there is a fly in the ointment.
    My existing setup relies on this simple fact: in SysV-type NFS implementations if a server exports /Volumes/foo, a client is free to mount just the subdirectory /Volumes/foo/bar.
    This plain doesn't work with the OS X NFS implementation.
    Or so I thought. Looking at the man page for exports, I discover the "-alldirs" flag. And using nidump and niload, I can change the exports netinfo record from
    "name" = ( "/Volumes/xtal/work/scratch" );
    "opts" = ( "maproot=nobody" );
    to
    "name" = ( "/Volumes/xtal/work/scratch" );
    "opts" = ( "maproot=nobody", "alldirs" );
    With a little fiddling around, I've now convinced my XServe to allow clients to mount subdirectories. Of course, I can't use Workgroup Manager to edit mount details any more.
    My question (and thank you if you've managed to get this far) is: Does anyone else do this? Is it really unwise?
    ---%<---
    As a ranty aside: Why do Apple insist on doing this? They have a fully-featured, working NFS implementation under the hood and then give us a GUI with 3 buttons and a dropdown to configure this. I'm a sysadmin, not an idiot (well, not as far as NFS goes, anyway). I can understand the implications of changing NFS configurations. I've been doing it for 15 years.
    Yes, I should be using AFP. Yes, NFS is insecure. But we have a lot of old iron that I have to continue to support, and if Apple hardware is going to fit in to our existing setup it should have more configuration options than clicking on a shiny blue button.<br>

    I'm an admin from an IRIX/Linux background. I have an existing NFS-based server setup. XServes are creeping into my racks because they are, in many respects, lovely. However, there is a fly in the ointment.
    My existing setup relies on this simple fact: in SysV-type NFS implementations if a server exports /Volumes/foo, a client is free to mount just the subdirectory /Volumes/foo/bar.
    This plain doesn't work with the OS X NFS implementation.
    Or so I thought. Looking at the man page for exports, I discover the "-alldirs" flag. And using nidump and niload, I can change the exports netinfo record from
    "name" = ( "/Volumes/xtal/work/scratch" );
    "opts" = ( "maproot=nobody" );
    to
    "name" = ( "/Volumes/xtal/work/scratch" );
    "opts" = ( "maproot=nobody", "alldirs" );
    With a little fiddling around, I've now convinced my XServe to allow clients to mount subdirectories. Of course, I can't use Workgroup Manager to edit mount details any more.
    My question (and thank you if you've managed to get this far) is: Does anyone else do this? Is it really unwise?
    ---%<---
    As a ranty aside: Why do Apple insist on doing this? They have a fully-featured, working NFS implementation under the hood and then give us a GUI with 3 buttons and a dropdown to configure this. I'm a sysadmin, not an idiot (well, not as far as NFS goes, anyway). I can understand the implications of changing NFS configurations. I've been doing it for 15 years.
    Yes, I should be using AFP. Yes, NFS is insecure. But we have a lot of old iron that I have to continue to support, and if Apple hardware is going to fit in to our existing setup it should have more configuration options than clicking on a shiny blue button.<br>

  • How to find files and subdirectories in a directory

    can anyone tell me how to find files and subdirectories in a directory .

    Here's a code snippet,
    http://javaalmanac.com/egs/java.io/TraverseTree.html

  • How to ignore subdirectories in find command of unix

    how to exclude subdirectories of a path from find command
    /app
    /app/fmbs
    /app/fmbs/temp
    find /app/fmbs -name *.fmb
    i want to ignore any fmb file existing into subdirectories created under temp subdirectory.
    regards

    Not sure if this helps but instead of using "find" as you are giving a specific path why not use "ls"
    Example:
    # ls /app/fmbs | grep ".fmd" (This will list all file names in specified directory)
    or
    # ls /app/fmbs/*.fmd (This will list all file names & path in specified directory)
    I hope this helps
    I am working on increasing our list of useful 1 liner commands and what we've got can be found at unbreakablehelp.com main page left hand side there are two links.
    Enjoy it.

Maybe you are looking for

  • IMessage not working after updating with iOS 6.1.3

    My son's iPhone will not 'activate' iMessage after he updated to iOS 6.1.3. Tried resetting. Tried switching iMessage on and off. Tried Setting/WiFi/Tap blue dot/Renew Lease Any other ideas? Other features seem to be working as normal. Thanks.

  • Where do I find my Adobe Presenter serial number?

    Hello, I am brand new to Presenter 7, using it with MS Office 2010 (adobe just added support for Office 2010, hurray!). When I attempt to install, it prompts me to enter the serial number, however, I cannot find it. The only serial number on the soft

  • Huge FPS Drop after installing Mavericks OS x on MBPr

    Ever since installing Mavericks OSx on my 8gb (2012) MBPr I have been experiencing huge FPS drops that make gaming in WoW and LoL completely unplayable.  This is nothing new I've had FPS problems in the past, but was able to resolve them by resetting

  • HELP!!! Constant freezing, Bugged updates, Repair failure, and No Hard disk

    Hi, I have had my iMac for just about a year now. It has never had any major problems up until now. One day, when i was using a downloaded non-Mac application that I had had for a while, my iMac freezes. Only the curser can move now. I pushed the pow

  • SEM BCS Time Frams

    Hi Gurus, I just want your expert advice on the following issue --> I am a FI consultant and having no prior experience in BI and SEM.I have been sent for implementation of SEM BCS to one client where I am looking at everything i.e. BI and SEM for th