Search a Directory Tree For a Directory

Hello All,
Alright, the backround first. I am working on a system for managing photos for cases. So, the top photos dir has 5 dirs represnting the years. In each of those, are months, in those are days, and in the days there are dir named for the casenumber. This may sound confussing but...Say for Case number 05-00001 which happened January 1st 2005, the photos would be in ./photos/2005/1/1/05-00001/Now I cant change the dir structure because this is how the system uploads them, but I need a program to search this dir tree when the person enters a case number and return the photos. Everything works great (from a logic standpoint) but the problem is that there are about 20,000+ cases a year and if the case is toward the end it takes FOREVER to search through them all.
What I am looking for is suggestions on how to most efficently search for these cases...
Thanks,
Matt

a particular string. I was able to read one file in
a single directory but not in any other directory.
How would I go about writing code to be able to
access all files in directory that has multiple sub
folders.
You can do that several ways.
Most likely you'll end up with some sort of recursive iteration over the directory tree.
Not hard to write, somewhat harder to prevent memory problems if you end up with a lot of data.
Also, when I started to write my program I tried to
use the DOM XML Parser to parse my html page. My
logic behind this decision was that if you look at
html code it is an xml document. But as I was
trying to run my program I noticed that I had to
convert my html document into xml format. I really
don't want to have to build my own html parser. Is
there a html parser that is included in Java. Oh my
program is just your basic text program. No
interfaces.
A VALID xhtml document is a valid XML document.
Problem is that most HTML isn't xhtml.
Another problem is that most HTML is fundamentally broken even to its own standards (which have always been based on SGML on which XML is also based).
Browsers take that into account by being extremely lax on standards compliance and effectively making up tags as they go along to fill in the missing ones in the trees they parse.
That's however not a standardised process and each browser handles it differently (and as a result most html will render differently in different browsers).
Java contains a simple HTML parser in Swing, but it's primitive and will only parse a subset of HTML 2.0.
There are almost certainly 3rd party libraries out there that can do better, both free and/or commercial.

Similar Messages

  • Directory listing for a directory within the webapplication

    Hi,
    I have a the code which does the directory listing of a given directory using its absolute path. eg new File("c:/webapp/tempdir");).
    I want to do the directory listing by giving a path relative to the context path of the webapp like(new File("/temp");)
    When I try to do
    <%
    File f1=new File("/tempDir");
    f1.exists(); --> returns flase
    %>
    tempDir is a directory in my webapplication. How should I reference this? Should I have to use file:// or http://?
    Looking forward for your help
    Thanks in advance

    There is a method in ServletContext: getRealPath.
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html
    It turns a website relative path into a real location on disk.
    // only need this line in a servlet.  "application" is already defined in a jsp
    ServletContext application = getServletConfig().getServletContext();
    String filePath = application.getRealPath("/tempDir");
    File f1 = new File(filePath);Some issues with using this approach:
    If your application is in an unexploded WAR file, then getRealPath() can return null, as there isn't really a location on disk that it relates to.

  • Searching node in Tree for a keyword

    Hi...
    I m new to JDeveloper 11g. I have a scenario like, I want to search thru the node. just like find in microsoft word,excel etc.
    Regards,
    Resmi

    Ok...
    I will explain more...
    I have a tree with many nodes. I want to search for a node, its node name contains 'Administrator' like that. I type 'Administrator' in atextbox and press button search. it will iterate whole for the keyword with 'Administrator'. If found it will focus. if I press next button, it will search to the rest of the node, to find the keyword..
    Hope u get my scenario.
    Resmi

  • No directory tree on POP3 accounts vs. IMAP accounts on BB Passport

    Hello,
    After the setup of 4 different e-mail accounts in the BB mail client of my BB Passport I discovered that I cannot see the directory tree of the typical elements of inbox, sent files, outbox, drafts etc. if I want to look into some stored e-mails.
    If I touch the headline in the mailbox of one chosen account (e. g. “Freenet”) – nothing happened. It is the same case in 3 of those 4 accounts. If I got an e-mail and I touch the “file/store” symbol I could see the above mentioned directory tree. In that case I can click on inbox and it seems that the e-mail is stored.
    If I would now go back and look for former (already stored) e-mails which I couldn’t see any more in the Hub I cannot expand the tree from the account headline.
    The only account which is working fine is the IMAP account of Google Mail. All others are POP3 accounts. Is there any reason that there is no directory tree displayed in POP3 accounts? Is this a bug or is this intended? At home I use outlook and I have no issues to see such a directory tree for the same account on POP3 basis.
    Usually I wouldn’t work with IMAP but other mail programs like k9 (which is working fine -> sideloaded) are not implemented in the Hub-structure. That is the reason why I installed all my accounts on the BB system directly.
    Is there anybody who could help me with an explanation or with a workaround to fix this issue?
    Thank you in advance!
    Software version: 10.3.0.908
    Kind regards,
    Tenonen

    It is not the kind of sync I am looking for or I am expecting...
    If I store an e-mail from one of my POP3 accounts starting from the Hub surface (total view of all events/inboxes) I can see that short tree of four elements (inbox, sent...). But I cannot find it if I would like to re-open my inbox of a POP3 account like I can do it with an IMAP account.
    If I choose my Google Mail account from the Hub preference "google mail" and I touch the head-line of this IMAP account the tree pulls down. If I choose one of my POP3 account from the Hub preference "Freenet" and I do the same (touch the head-line of the account) no tree will be opened.
    It is no problem to see all my requested things in k9 as an alternative e-mail client. But the disadvantage of k9 is that it is not embedded in the Hub-architecture.
    John_Clark, maybe it is now more clear to understand my issue.
    Thanks for your reply in advance.
    Kind regards,
    Tenonen

  • Best practice for designing a directory tree

    Hello all,
    I wanted to know what you all think about what is the best way to design a directory tree. Again it seems to me that experience makes the man perfect and I wanted to know what you all think about how to design directory tree model.
    Here is my view; I believe that keeping at least Users/ Employee information flat make more sense to me. I know it’s a good idea that one should consider an organizational hierarchy when designing a tree. But there seems to be some problem too. If employee moves from one department to another within the same organization then directory administrator has to change the location/department of the user. However, if all users are under the same namespace i.e. ou=Users, administrator does not have to change or move users location in the directory to another location.
    Also, while designing a directory there could be several hierarchy, one is organizational hierarchy another could be organizing user info based on job roles i.e. CEO->VPs-Managers->Consultant.... and so on so. So which one should consider. So by considering ou=Users namespace, we are avoiding risk on favoring one type of hierarchy.
    The trade-off in using ou=Users a flat namespace is that browsing of the directory looks less interesting.
    Anyway, this is my view, I would like to know your views too and hope this thread will help other in building their own directory Tree.
    Thanks
    Syed Suhail Ahmad

    Honestly it really depends on what you need your system to do and how you want to handle administration. I have read the argument about keeping things simple with using ou=USERS and seems like the best situation for administration purposes. Currently my client is wanting all identity management to be handled in OID so I am in the process of doing our hierarchy also. I still have to explore the abilities of OID to see how I can set things up.
    There are a few good books and websites that are good for referencing ldap. One book I use is LDAP Programming, Management, and Integration by Donley. For websites, just search on google or check out www.ldapguru.com or www.openldap.org(possibly).
    Hope this helps a little. I honestly can speak on the best way since I haven't implemented my own yet nor do I think one way will always be best for every situation.

  • Method for copying a directory tree from production server to test server

    I have DSEE 6.3 running on Solaris 10 (servers A, B & C are multi-mastered and replicating successfully) in production. I have the same arrangement on a test set of servers (D, E, F). Could someone explain what is the best method for zapping the entire directory tree on test servers D, E, F ... and creating a complete copy of the tree on production servers A, B, C ... and then loading that copy on test servers D, E, F?
    Thanks very much!

    Could someone explain what is the best method for zapping the entire directory tree on test servers D, E, F...dsadm delete
    dsadm create
    ...and creating a complete copy of the tree on production servers A, B, C ... and then loading that copy on test servers D, E, F?dsconf export
    dsconf import
    [http://docs.sun.com/app/docs/doc/820-2767/dsadm-1m]
    [http://docs.sun.com/app/docs/doc/820-2767/dsconf-1m]

  • Searching through directory looking for browser

    Hello all,
    I was wondering if there is any way to search for the location of a file in your Java application and then launch the .exe file that is at that location.
    (example: look for where Iexplore.exe is located on the current machine and then open up Internet Explorer using the the Runtime and Process classes.)
    The way I have it now is a hardcoded path to Iexplore.exe. If it is not at that location, it will fail and I will display message "File not found at that location."
    Thanks for all your help ahead of time,
    jmschrei

    You can launch explorer/navigator by
    Runtime.getRuntime().exec("start http://www.web.com");
    About searching a file:
    public void searchFile(String dirName, String file)
    throws IOException {
    File directory = new File(dirName);
    String path;
    if (directory.exists() == true) {
    path = directory.getPath();
    if (directory.isDirectory() == true) {
    File [] fileList = directory.listFiles();
    for (int i = 0; i < fileList.length; i++) {
    path = fileList.getPath();
    if (fileList[i].isDirectory())
    searchFile (path, file);
    else if (fileList[i].isFile()) {
    if(fileList[i].getName().equals(file))
    Runtime.getRuntime().exec(fileList[i].getPath());
    else {
    if(fileList[i].getName().equals(file))
    Runtime.getRuntime().exec(fileList[i].getPath());
    This method should be called like:
    searchFile("C:\", "iexplore.exe");
    I hope it helps you.

  • Howto create a powershell script to search the C drive for any *.pst files and copy them to a single directory

    I have a bunch of people who are saving their pst files all over the place. how do I write a script that does the following
    searches the C:\ drive for *.pst and copies them all the E:\pstfiles

    Hi,
    How about using below command:
    Move-Item c:\*.pst E:\pstfiles -force
    For more details about move-item, I would like suggest you use get-help command:
    get-help move-item
    In addition:
    Using the Move-Item Cmdlet
    http://technet.microsoft.com/en-us/library/ee176910.aspx
    Regards,
    Yan Li
    Yan Li
    TechNet Community Support

  • Acroread 9.1.0 reads the full directory tree /usr/share/fonts

    Hi,
    I was wondering why the startup time of acroread is that high on my system (Debian 5.0). I have found out using strace that acroread reads the full content of the /usr/share/fonts/ directory tree (more than 4000 files) during startup in a quite inefficient way.
    First question: why does it read /usr/share/fonts during startup at all and is there a way to disable that behaviour?
    Second question follows: the ext3 requires that an application reading the full content of a directory should sort the file list numerically by inode number before opening the files. It is explained in http://bugzilla.kernel.org/show_bug.cgi?id=417 why the application should be fixed and not the kernel. Can acroread be changed to qsort() the file list between the calls of readdir() and open()?
    Cheers,
    Torsten

    Hello Torsten,
    Thanks for reporting the issue. Could you please let us know if you are opening acroread with a file(either by double clicking on it or giving it as a parameter to acroread). If yes, could you please see if launch time is still high when you do not open a file(launch acroread by clicking on the Desktop icon or launch it from console). Also, it would be helpful if you can mail the strace output to sanika at adobe dot com.
    As for reading the location, it is one of the standard font locations mentioned in /etc/fonts/fonts.conf. If you do not want acroread to use these fonts, you can set ACRO_DISABLE_FONT_CONFIG to 1 on console.
    If you do not want to set this variable every time you launch reader, you can search for "ACRO_DISABLE_FONT_CONFIG" in the launch script, uncomment the relevant section and save the script.
    However, I should warn you that Reader would not be able to use these fonts to display PDFs(substitute fonts would be used instead).
    Sincerely,
    Sanika

  • Best practices for package directory structure?

    I've only compiled a few java programs & while I find the language itself very easy to adapt to from C++ and Javascript, I get confused about the directory structure and classpaths & such.
    My main method of operation is to build small tools and test projects, and I would like to follow good practices for organizing my directory structure, so it will (a) work well with java, and (b) work well with my source control software.
    Let's say I am developing packages named "com.example.test.test1", "com.example.test.test2", "com.example.tools.flapper", and "com.example.tools.spinner".
    I know I can use this structure:
    /java/test/test1/com/example/test/test1/* (files for com.example.test.test1 including test1.java)
    /java/test/test2/com/example/test/test2/* (files for com.example.test.test2 including test2.java)
    /java/tools/flapper/com/example/tools/flapper/* (files for com.example.tools.flapper including flapper.java)
    /java/tools/spinner/com/example/tools/spinner/* (files for com.example.tools.spinner including spinner.java)
    But the directories seem unnecessarily deep & lead to a hassle in source control that makes it difficult to browse.
    Can I use this? and if so, how do I run "javac" and "jar" properly to compile/jar-ify each package?
    /java/com/example/test/test1/* (files for com.example.test.test1)
    /java/com/example/test/test2/* (files for com.example.test.test2)
    /java/com/example/tools/flapper/* (files for com.example.tools.flapper)
    /java/com/example/tools/spinner/* (files for com.example.tools.spinner)
    also is it recommended to leave the .class files in the same dirs as the .java files, or better to have a separate tree for compiled .class files?

    hmm, there's a lot to absorb here...
    I found these articles online that seem good:
    http://www.onjava.com/pub/a/onjava/2003/12/17/ant_bestpractices.html
    http://www.kevinboone.com/classpath.html
    I'd like to use ant if possible & understand it; I've had troubles with IDEs in the past and would like to just stick with basic build mechanisms.
    I guess as a practical example let's say I have two different applications that use the serial port, that I want to release separately, each in separate .jar files. One is called com.example.applications.serial1 and the other is com.example.applications.serial2. They both use rxtx.org's gnu.io.* libraries. Serial1 uses some packages that I have developed: com.example.tools.spinner and com.example.tools.flapper, whereas Serial2 uses com.example.tools.spinner and com.example.tools.flopper
    I think I want to organize things this way: (everything below under /java/src/)
    com
    example
    applications
    serial1
    serial1.java
    serial2
    serial2.java
    tools
    spinner
    spinner.java
    flapper
    flapper.java
    flopper
    flopper.java
    and I think I want to compile to /java/classes/:
    com
    example
    applications
    serial1
    serial1.class
    serial2
    serial2.class
    tools
    spinner
    spinner.class
    flapper
    flapper.class
    flopper
    flopper.class
    but I'm sort of lost on where to put the ant buildfiles, which directories to be in to run javac, and how to get the jar files right. From what I've searched for online, the external libraries (RXTX's jar files & .dlls for windows) are "interesting", and the easiest thing is to tell users of my .jar files to put the rxtx libs in the same library as the .jar files so I can set the Class-Path: in the .jar manifest to point to them.

  • Cisco Jabber for Mac - Directory Lookup and Contact Fields

    Hello,
    After having issues myself with Cisco Jabber for Mac 9.2 specifically with Active Directory lookups not working, or contact information not populating (and therefore not being able to call users from the contact list as no telephone information exists) I am including a sample jabber-config.xml file that works for me.
    Please note: there are many different ways to configure this. What I will be showing is the method that works for me and my deployment, which is pretty standard.
    As always and as a disclaimer, once again, this is what has worked for my deployment scenario. Always keep backups of your configuration files, and always be mindful of anything you have configured already, especially in the jabber-config.xml file.
    Background
    My deployment is based on CUCM 9, with 1 publisher and 2 subscribers. I also have a CUCM IM & Presence 9.0 server. This assumes that you have already configured your deployment and Jabber is functioning already, albeit with the aforementioned issues.
    As for Active Directory, my deployment will be based on Windows 2008 R2 Domain Controllers running in native 2008 mode. For this example, we will be searching directly against one of the DCs with a Global Catalogue role. Please be aware that in large deployments you will have to plan accordingly with regards to lookup traffic from Jabber clients to the DCs.
    Also, as of Cisco Jabber for Mac 9, the client no longer can search via the CUCM internal directory (which may be made of local end users, Active Directory synced users, or a mix of both) and this must be done via a LDAP mechanism.
    Scenario
    In this deployment scenario, Cisco Jabber for Windows is working properly - you can search and add people from Active Directory, and contacts in your contact list have all the appropriate fields populated from Active Directory. However, when trying the same with Jabber for Mac, Jabber for iPhone or Jabber for iPad you notice that you cannot perform a directory lookup, and if you add people directly (for example, [email protected]) the user only has the IM field populated. No telephone, email or additional information is displayed.
    Solution
    Whereas Cisco Jabber for Windows uses the EDI mechanism (native Windows), whereby when running from a computer that is on the domain (or in the event that you are search for contacts in another Active Directory domain where a domain trust exists) , Jabber for Mac / iPhone / iPad uses the BDI mechanism.
    In this case, you will need to provision a jabber-config.xml file that you will upload to your TFTP server (or Publisher) that will be "downloaded" by your Jabber for Mac client and also used by the iPhone and iPad client. You can configure many options in the jabber-config.xml file, but for this example we will place just the information that we need to order for these clients to request and display Active Directory information.
    Please note that the configuration may vary depending on your deployment, but at the very least we will be:
    - Configuring a DC where we will perform the lookup.
    - Configure credentials that will be used to perform the lookup. This will be an Active Directory account that has read rights on the Active Directory domain. Please note that these credentials are saved in plain text in the file, so ensure that the account that you will be using is not privileged.
    - Configure the server port that we will be using to perform the lookup.
    - Configure the Search Base. This is basically where we want the directory lookup to happen. You can either choose for this lookup to start at the "base" of the domain (and therefore the search will iterate through all the user accounts and and OUs below the root base) or define a specific OU where you want to search.
    Caution!
    - There is a current limitation with Cisco Jabber for Mac whereby you can only have 1 search base configured. Please keep this in mind if, like me, you have multiple OUs (like an OU for each company in your organization) and under these OUs you have sub OUs as a user account container.
    - If using the top level search base, unless you specify a filter, you will potentially be able to search for all user accounts in the domain. You will need to configure the <BDIBaseFilter> parameter if you want to fine tune your search ability.
    Steps
    These are the steps I have followed. Other steps or considerations may vary.
    - Log in to your TFTP server and download the jabber-config.xml file and keep it as a backup. If you are already using the jabber-config.xml file for other purposes, do not worry - you can add your BDI information parameters inside.
    - Remove the jabber-config.xml file
    - Edit the jabber-config.xml file and configure thus:
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0">
        <Directory>
            <DirectoryServerType>BDI</DirectoryServerType>
            <BDILDAPServerType>AD</BDILDAPServerType>
            <BDIPrimaryServerName>DOMAIN CONTROLLER IP ADDRESS</BDIPrimaryServerName>
            <BDIPresenceDomain>YOUR PRESENCE DOMAIN</BDIPresenceDomain>
            <BDIServerPort1>3268</BDIServerPort1>
            <BDISearchBase1>YOUR SEARCH BASE</BDISearchBase1>
            <BDIConnectionUsername>[email protected]</BDIConnectionUsername>
            <BDIConnectionPassword>PASSWORD</BDIConnectionPassword>
            <BDIEnableTLS>0</BDIEnableTLS>
        </Directory>
    </config>
    For example, let´s assume the following:
    - Domain controller IP address is 10.1.1.2 .
    - Your presence domain is test.local .
    - Your search base will be test.local using the top level of the domain.
    - Your username with which you will be doing your searches is called walt . Usually you can either identify walt as test.local\walt or [email protected] . It is always best, in these sort of scenarios, to use the UPN convention so we will be configuring a [email protected] .
    - The password is the Active Directory password for the account walt .
    - I have disabled TLS in my case. There are issues with the Jabber for Mac client when using other security methods.
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0">
        <Directory>
            <DirectoryServerType>BDI</DirectoryServerType>
            <BDILDAPServerType>AD</BDILDAPServerType>
            <BDIPrimaryServerName>10.1.1.2</BDIPrimaryServerName>
            <BDIPresenceDomain>test.local</BDIPresenceDomain>
            <BDIServerPort1>3268</BDIServerPort1>
            <BDISearchBase1>DC=test,DC=local</BDISearchBase1>
            <BDIConnectionUsername>[email protected]</BDIConnectionUsername>
            <BDIConnectionPassword>walt01!</BDIConnectionPassword>
            <BDIEnableTLS>0</BDIEnableTLS>
        </Directory>
    </config>
    One you have configured the jabber-config.xml file, you will now need to upload it to you TFTP server. Once uploaded, you will need to restart the Cisco TFTP service. Again, my TFTP server is on my CUCM publisher, so:
    - I go to Cisco Unified OS Administration on my Publisher server, TFTP File Management and I upload jabber-config.xml to / directory
    - I then go to Cisco Unified Serviceability on my Publisher server, I locate the Cisco TFTP service and I restart the service
    Once this is done, you can figure up your Jabber for Mac client. As a test, on your Mac (using Terminal) go to:
    /Users/username/Library/Application Support/Cisco/Unified Communications/Jabber/Config
    In here you will see several files, but what we want to see is jabber-config.xml . As soon as you start the Jabber for Mac client and log in, the jabber-config.xml file will download from your TFTP server and get saved here. When you see it appear, just type in your terminal window more jabber-config.xml and make sure that the output is the same as the xml file you created.
    From there, try doing directory search. If you have previously added contacts and they still lack attribute information, you will need to remove them (sometimes it will not refresh properly) and add them again from the directory.
    I will be updating this guide and ammending anything that is incorrect, but this is meant to be a quick checklist and steps to get this, at least in the most very basic version, up and running for Jabber for Mac.

    Hello, 
    Thanks for this post! It works, I can do lookup and also I can add found contact to contact list and get information about contact from LDAP.
    One more question: - I can't get all information about contact. I don't get e.c mobile phone number and more others attributes. I have tried to expand your file as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0">
        <Directory>
            <DirectoryServerType>BDI</DirectoryServerType>
            <BDILDAPServerType>AD</BDILDAPServerType>
            <BDIPrimaryServerName>IP of AD</BDIPrimaryServerName>
            <BDIPresenceDomain>Presence Domain</BDIPresenceDomain>
            <BDIServerPort1>3268</BDIServerPort1>
            <BDISearchBase1> Search Base</BDISearchBase1>
            <BDIConnectionUsername>User</BDIConnectionUsername>
            <BDIConnectionPassword>Password</BDIConnectionPassword>
            <BDIEnableTLS>0</BDIEnableTLS>
            <BDISipUri>msRTCSIP-PrimaryUserAddress</BDISipUri>
            <BDIPhotoSource>thumbnailPhoto</BDIPhotoSource>
            <BDIBusinessPhone>telephoneNumber</BDIBusinessPhone>
            <BDIMobilePhone>mobile</BDIMobilePhone>
            <BDIHomePhone>homePhone</BDIHomePhone>
            <BDIOtherPhone>otherTelephone</BDIOtherPhone>
            <BDITitle>title</BDITitle>
            <BDICompanyName>company</BDICompanyName>
            <BDILocation>co</BDILocation>
            <BDIPostalCode>postalCode</BDIPostalCode>
            <BDICity>l</BDICity>
            <BDIState>st</BDIState>
            <BDIStreetAddress>streetAddress</BDIStreetAddress>
        </Directory>
    </config>
    But it didn't help.
    When I capture lookup via Wireshark, I can see that Jabbers sends search request with bunch of attributes, but from LDAP answer contains only 8 attributes. (see attached screenshots)

  • Transfer of all files in a directory tree using FTP adapter?

    Hi,
    I'm looking for a solution to transfer a whole directory tree, including the content, from one location to another using the FTP adapter.
    Is there an easy way to accomplish this?
    Any help would be appreciated.
    Thanks
    Sigrid

    Hi Sigrid,
    I'm just wondering on the need to do that using SOA. Is it a regular transfer or one time?
    There's a way to move a single file from one FTP location to another on the same or different FTP server (link to the cases). But in order to move all the files in a directory, you'll have to loop this. The high level steps will be:
    - List all the files recursively that are present in your directory using File List operation
    - Implement the MOVE file operation (or COPY operation) of the FTP Adapter
    - Invoke this MOVE operation in a while loop and pass the file names, as gathered from the File List operation, one by one to MOVE operation
    You can also use single Java Embedding activity and call a Java class that does the File Transfer but depends on your requirements.
    Let us know how you get along.
    Regards,
    Neeraj Sehgal

  • Creating a directory tree

    Hello
    I am a newbe in java/jsp and i want to create a session java bean which can contain the structure of a directory tree. Like the one of windows explorer. I am having a java been containig the cuurent state of the tree. Should thid bean be a vector of vectors of vectors or is there a better way to store the trees current structure. And if i make it like vector of vectors will i be able to iterate the multidimansional vectors with jsp tags??
    Any ideas on how to make the file tree?
    Thnx for any tip!

    You can use the JSP Tree Tag I have developed. This helps you both structuring the tree model itself + it takes care of displaying the tree in a nice way. You can change all HTML code used to display the tree. Also you can build trees dynamically instead of just displaying static trees. Take a look at it here:
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Kind Regards,
    Jakob Jenkov

  • How to go back to the same directory after opening one bookmark instead of having to browse the directory tree again to open another bookmark from the same dir

    I regularly need to check several bookmarks that are stored in the same directory, which usually is a couple of clicks from the main bookmarks menu.
    When I select a bookmark in the tree that I created to organize my bookmarks and it does not give met the web-page/information I was looking for, I want to try another bookmarked web-page in the same directory.
    So I have to click my way through the whole tree again.
    I would highly appreciate if it could be made possible that hovering over the bookmarks menu automatically will unfold the whole tree to the directory where I have been last. That would be a real time saver.

    Try using the Bookmarks Sidebar. '''{Ctrl + B}''' to open and close it. It will stay open until you close it, and when you do close it, the scroll position will remain until you close Firefox.

  • An EFFECTIVE development directory structure for J2EE platform?

    Hi, here we r talking about deployment environment more than development
    environment. Have u ever think about designing an EFFECTIVE development
    directory structure for J2EE platform( e.g. weblogic )? u r not using the
    deployment directories for coding, r u? :)
    I used to construct a dir structure for dev and want to improve it.
    d:/wholesystem/*.prj // Project files
    ...../module1/src/com/.... // Module source files
    ...../module1/doc/... // Module doc files
    ...../module1/classes/... // Module class files
    ...../module2/...
    ...../web/*.jsp // web page files
    ...../web/images/... // web page images
    ...../web/WEB-INF/... //...
    Do u have any good ideas? Thanks!
    * Name: Gary Wang
    * Tele: 010-65546668-8119
    * Mail: [email protected]

    Create a web-inf folder at the same level of src and
    jsp folder inside src
    i mean
    /build.xml
    /src/
    /src/java/<package>/...../*.java
    /src/demo/<package/...../*.java
    /src/test/<package>/....../*.java
    /src/jsp
    /web-infSo, would you put in /src/jsp only the *.jsp?
    And what in /WEB-INF ? What woud you put there? Would you do something like:
    /WEB-INF/web.xml
    /WEB-INF/src/<package>/..../<my_servlets_and_j2ee_stuff>.java
    /WEB-INF/classes/<package>/..../<my_servlets_and_j2ee_stuff>.java
    In this manner sources and classes are in the same tree, it does not seem very clean to me, expecially if you consider that probably I must have a "test" directory to unit test some j2ee stuff (as for the j2se stuff in "src"): how would you do that?
    Is this directory structure anyway what you meant or not?
    alessio

Maybe you are looking for

  • Unable to launch Mail.app get a message  - mail quit unexpectedly

    Since last couple of days, every time try to open mail app it quits and gives me the error message. Have tried rebooting the system, no result. I have pasted the error report, hope someone can help me on this please. Process: Mail [608] Path: /Applic

  • Write Optimized DSO Duplicate records

    Hi, We are facing problem while doing delta to an write optimized data store object. It gives error "Duplicate data record detected (DS <ODS name> , data package: 000001 , data record: 294 ) But it can not have an duplicate record since data is from

  • Problems after downloading itunes update

    I downloaded the itunes update so my computer would quit asking me if I wanted to. Now about half of my music library is missing. There seem to be pieces of it in the music folder and on various playlists, but there are several duplicates, so I know

  • The "On My Mac" Mailbox has disappeared. How do I get On My Mac back?

    The "On My Mac" Mailbox has disappeared but all the folders and contents underneath are still there. How do I get On My Mac back?

  • Group by MM/YYYY when date = mm/dd/yyyy

    Post Author: misslora CA Forum: Formula I want to group data by employee first, then mm/yy and within that group count data by specific code.  The Date field in the db is mm/dd/yyyy. I create group by employee first, then date, second group by items.