Finding the no of directories in the server

can any one give me the idea of how to find the total no of directories that are placed in a webserver using a JSP.
the problem is i want to find the total no of directories that are there in a particular directory placed on the server and based on it i have to do certain actions in my JSP.
regards,
RaviKiran
[email protected]

Do a <someDir>.listFiles () and check with each returned file [in a loop, preferably :)] if it.isDirectory ();.
Kind regards,
Levi

Similar Messages

  • Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"

    Can not receive Mac mail -error Outlook cannot find the server. Verify the server information is entered correctly in the Account Settings, and that your DNS settings in the Network pane of System Preferences are correct.  Account name: "MacMail"
    What are the correct mail account settings and more importantly the correct DNS settings
    Thank you for any help you may be able to provide
    Cheers
    Chris (iMac i7)

    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
              •          Server name: imap.mail.me.com
              •          SSL Required: Yes
              •          Port: 993
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    SMTP (outgoing mail server) information:
              •          Server name: smtp.mail.me.com
              •          SSL Required: Yes
              •          Port: 587
              •          SMTP Authentication Required: Yes
              •          Username: [email protected] (use your @me.com address from your iCloud account)
              •          Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server.

    Since upgrading to Firefox 27.0 some webpages will not load when I click on them. It gives me a message saying that Firefox can't find the server. I have to click the link several time before it will load and sometimes when they do load it does not show the page right. It is like the HTML is messed up or something. I have tried everything I can think of. I started in safe mode, still did it., I removed add-ons, still did it., I reset Firefox and still did it., I completely uninstalled Firefox and re-installed Firefox and it still does it. I have tried Malware Bytes Anti-Malware scans and Avast boot-time scans and found no malware or viruses. I have found that those websites open the first time with no problems on my IE9 and they used to do so in Firefox 26.0. I'm at my wit's end. The website links are in my bookmarks and are used all the time so they are trusted and my avast is set to allow them. They range from news websites to gun websites and everything I have read says that Mozilla does not filter those unless something has changed recently.

    Try this as a first step;<BR><BR>
    Clear the Cache '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''<BR><BR>
    and<BR><BR>
    Remove Cookies '''''Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"'''''<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    While you are in safe mode;
    '''''Firefox Options > Advanced > General'''''. Look for and turn off '''Use Hardware Acceleration'''.

  • Safari can't find the server.

    I updated to Ilife08....I went to iweb and added some pages to the site....i published the pages...I got the announce your site message...I did that....I then went to visit site and I got Safari can’t find the server.Safari can’t open the page “http://www.michaelcarlucci.com/Mickeyt” because it can’t find the server “www.michaelcarlucci.com”. I have tried everything and I cant publish anything...I tried adding a site and copying the old pages to it...that did not work...I tried changing the site name ...that didn't work....when I open Iweb...everthing is there...but when i go to publish...it will do everthing and send me the announce and visit...but when i go to visit...i still get the same message...+*ok...I give up....*+and to top it all off the pictures look aweful...they are super saturated in reds....so what i want to do is throw it all out and start over...and hopefully it will get me back to where I began...I copied everything in the site folder and put it in a file on my desk top....but this was after I had all the trouble...everythingseems to be there though...but I am not sure if I would know if anything is missing....the domain was changed from domain to domain 2...so I guess the up grade worked....
    How do I throw the site away....delete everything and then start from scratch? I must have done something but I couldn't tell you what I did...I've read everything on these forums and have spent two days and a night trying to fix it...

    well i bet that is a good guess....I did go there and change the name....and it has not been 48 hours yet...the only problem is that I have now published to file on my desktop.....and it worked from there....Then I published all to .mac.....i got the anounce and visit pop up...when i went to visit....it doesn't work....but when I went to the site from my file I copied the address on the web page....which is http://web.mac.com/micluc/MichaelTrower_Carlucci/Welcome1.html.....I bookmarked it and just for the heck of it I went to the last page on digital painting and changed to photos with push pins....I then published....I still get the message from the visit....but when I drop in http://web.mac.com/micluc/MichaelTrower_Carlucci/Welcome1.html... the changes where there and everything is working...have I fixed it...or have I just made it possible for me to get there....and it is actually not the right way as I can't visit the site from Iweb itself....so when the 48 hours is up and new DNS settings show up...will i be in the same mess? thank you for helping me with this...

  • "Safari can't open the page because it can't find the server"

    I just bought my iPhone. The first time I attempted to log onto my home wireless network (US Robotics Wireless Router) the iPhone performed perfectly. However, the next time I attempted to logon and surf it gave me the "Safari can't open the page because it can't find the server" error message. I tried a variety of things which didn't work. I called the Apple Tech Support. Turning off the router and rebooting it was the only thing that worked. I thought my problem was resolved because after cycling the router the iPhone worked great once again. But . . . later the same day I attempted to connect to the router and the same thing happened and I got the error message. I attempted to power cycle the router just like before but this time it did not work! Help! Bad router? Wrong settings on router or iPhone?

    Do you have other wireless devices connected to this same router? Do they work?
    I really can't help you much but to say that when my router exhibited this issue it was accross the board (all notebooks would connect immediately following a router restart, but would loss connectivity until I rebooted the router again). In my case the only solution that was permanent was to replace the router.
    You may also try restarting the phone and the router, setup security - WEP - (or disable security) on the router and phone, and/or try a different wi-fi channel (may actually help).

  • Firefox continually says it "cannot find the server, try again" when I attempt to open it. What could be wrong?

    When I click on any of the Firefox links on my desktop, a page usually opens saying that Firefox can't find the server. It then gives me the option in the form of a button in the lower left corner of the box, to try again. Sometimes clicking the button works and I am connected to the server, but often I have to close the page, wait a few minutes or even restart my computer, in order to connect to the server. It's extremely annoying.

    Hi,
    Please see [https://support.mozilla.org/en-US/kb/error%20loading%20web%20sites this].

  • Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. How do I fix this?

    Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again.
    This happens each and every time, on different Wifi networks, in different locations.  On the other hand, I don't ever encounter this problem when I tether my laptop to my mobile phone's 3g/2g network using Personal Hotspot. How do I fix this?

    Try this DNS server ...
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch both your browsers to test.
    If that doesn't help, try here >  iOS: Troubleshooting Wi-Fi networks and connections
    And here >  Wi-Fi: How to troubleshoot Wi-Fi connectivity

  • Can't find the server for a site, multiple browsers, multiple computers

    In recent weeks, possibly coinciding with updates in Firefox (running 3.6.10), Safari (5.0.2) and iTunes (10.0.1), I have only received the prompt, "can't find server" when attempting to connect to the site kcrw.com. Others can get it on their computers in other places, and my iPhone can access when on 3G, but our network here seems affected because all the computers [All macs, some laptops and some desktops, running on OS 10.5.8] here receive this message. I used to be able to go to this site, a radio station, and stream audio or download podcasts. My ISP ran a ping test to the site's server and said that went through, but the browsers and iTunes don't seem to be able to make the transformation to anything I can read. What kind of a problem is this? Apple care was no help either.

    HI Alice,
    From your Safari menu bar click Safari / Preferences then select the Advanced tab. Now click: Change Settings. That will prompted your System Preferences / Network pane. Make sure the Proxies tab is selected.
    If any of the boxes are checked under: Select a protocol to configure.
    That could be a factor. If there are, deselect, then click the OK button.
    Quit Safari. Relaunch Safari and see if that made a difference.
    If it's not a proxy issue, go to a website. If you see the "can't find the server" try reloading the page.
    Command + R
    Also, try Open DNS - Free / Basic . Includes anti phishing filters.
    And help here to manually add DNS. Topic : Manually provided DNS server addresses are higher priority than DHCP's
    Carolyn

  • My firefox wont load any page. Says it cant find the server of any of them. I can view the same pages in safari. I just updated to 3.6.7 and now having this problem. What is happening?

    My firefox wont load any page. Says it cant find the server of any of them. I can view the same pages in safari. I just updated to 3.6.7 and now having this problem. What is happening?
    == This happened ==
    Every time Firefox opened
    == Today ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

    Read this somewhere else: Can't find it again so can't reference - apols.
    fixed by entering
    about:config into the nav bar
    toggle dom.storage.enabled to 'true'
    worked for me - but don't know what it does or why :)

  • "Safari Can't Find the Server" is chronic in Safari under Snow Leopard...

    Since moving to Snow Leopard (or perhaps it is just an updated Safari in SL and otherwise not related to SL??) when my Mac starts up from sleep with Safari being already open, I typically find a blank message with "Safari Can't Find the Server"... And just clicking on pages, I sometimes get that same message. Sometimes I get the spinning gear (for way too long) and I've learned to stop it and just click the same link again and more often than not, it opens immediately the second time...
    Any ideas??? Is this a bug that Apple needs to fix or do I need to do something to Safari (or something else) to fix this problem???
    thanks... bob...

    Robert Paris wrote:
    Whoa... Now I'm really confused... When I go to my System Preferences, then Network, highlight Airport, then click on Advanced, then choose the DNS tab, all I see under DNS Servers is the internal IP address of my Apple Router (10.x.x.x).. And next to that under Search Domains is hsd1.ca.comcast.net... And that is all there is... And I didn't set any of that up... When I bought my Apple Extreme Router a couple years ago, I was so impressed because I came home, plugged it in, basically said "GO" and the router set it all up and just worked... And I'm pretty sure (though not positive) that the Router put the 10.x.x.x in that preference panel, in other words, pointed to itself for DNS services...
    This is effectively saying that the DNS configured in the router will be the default.
    So help me understand... If I change the DNS settings on the mac from 10.x.x.x to the OpenDNS values, the router would still have the Comcast values in it??? How does that work??? And if I only change them on my mac, then the rest of the computers on my home network would still be using the original Comcast DNS servers as established on the router, yes??? I mean I think that would have to be...
    If you change your Mac, that is what it will use. Other computers will use whatever
    they are configured to use.
    See my confusion??? Again, I know only enough about Network settings to know that if I click a wrong button I could make a lot of trouble... So I don't move until I understand what at least a little more than clearly I know now...
    So how do local (mac) settings for DNS play (or not) with DNS settings up at the router level???
    The local settings should override anything else since that is what will
    be used first. They have no interaction with what is at the router level.
    thanks... bob..
    Dave

  • Can't find the server

    Hi i have the new Mac mini with Snow leopard 10.7.2.
    I've been ecxperienced a lot of problem with my network connection.
    Actually since coupple of days  i canno't find the server on my office's network.I have internet,  I see all the other computers and i can access to my time capsule and the other macs but the server seems to be lost!
    In our office we work with windows en mac and pc's don't have any problem to connect to the server.
    Our network administrator can't find a solution, and is getting a bit irritating....
    I hope you can help me.
    greetings
    Francesca

    The server is running on a machine on  windows 2003.
    For a while i had the connection but one day out of nothing the connection was not possible anymore.
    The error message say:
    " The server doesn't exists or is not avaible at the moment.Control de name, the ip addres  and de network connections. Try again."
    do you have already an idea of what it can be?

  • I have a Mac on my home network and also a Systemline music server on same network. My PC was able to find the server but my MAC cannot. I can ping the server from the mac, but cannot actually connect . Also can't add the mac as a location from server

    I have a Mac on my home network and also a Systemline music server on same network. My PC was able to find the server but my MAC cannot. I can ping the server from the mac, but cannot actually connect . Also can't add the mac as a location from server, despite following the Systemline instructions that impy this can be done.
    Can anyone please advise what I am doing wrong?

    Hi LowLuster
    Thanks for reply. I am not an expert on these sharing protocols but I think I have turned on SMB sharing but still wont connect. I tried adding netwrik drive by using cntrl K in finder and using smb\\network address but nothing. It is driving me mad!!

  • The Safari Can't Find The Server - Error!

    After updating my iPad and Mac OSX to the latest version, I am constantly getting 'The Safari Can't find the server' error on valid addresses. I have to refresh a few times to access the website.
    I have gone through many posts and I gathere that it is not a Mac issue, but something to do with network settings - DHCP/Proxy. But I still could not figure out how to solve the problem.
    If someone can guide/advise me then that would be a great help..
    Thanks

    I'm having similar issues with Safari saying it can not find the server.  Tumblr and Zooniverse sites are particularly troublesome, even with refreshing.  I have checked the status of their servers and they are up and running without issues.  I can access them eventually but have to close the current tab and reopen later.  However, when I use Chrome or Firefox I can access the sites with no problem.  It's not a local network problem as I can access the internet and those sites on my iPhone and all other sites.  It appears to be an issue with Safai.
    Safari Version 5.1.1 (7534.51.22)

  • I am trying to log in to my MSN Hotmail e-mail account, and after entering my login info, I get the error message that Firefox cannot find the server. Why not?

    When trying to log into my MSN Hotmail account (@msn.com), after I enter my credentials, Firefox gives me an error message that "Firefox can't find the server at blu152.mail.live.com". I am able to log in easily from the same computer using Internet Explorer. I think this problem just started yesterday. Why is Firefox unable to connect to my e-mail account?

    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

  • Firefox periodically drops my Verizon/Yahoo email site indicating it cannot find the server. Verizon alledges there are no server problems.

    My email page will crash and the message received is:Firefox can't find the server at us.mc844.mail.yahoo.com. Repeated reloading does not help. After a period of time from 5 minutes to an hour the site can be accessed and is Ok for several days. The the problem reoccurs several times in the same day. When my email provider is contacted they indicate no server problems.

    Report your error messages so your peers, like me, can make suggestions..
    Official recommendations are on http://help.yahoo.com/l/us/verizon/mail/ymail/basics/mail-12859445.html NOTE THE URL's Stick with them if using YAHOO.  I have not found a newer recommendation for pop.yahoo.verizon.net that you mention, and the help page was updated this month.
    Note some have had trouble with missing intermediate certificates so get encryption errors.  Shouldn't happen (except if you are missing the root certificate, which is your responsibility),  but can be fixed by installing manually.
    Some have reported needing to specify [email protected] rather than just userid, I believe on the SMTP side.  Normally you specify only userid and password without the @verizon.net.

  • I frequently get the "Firefox can't find the server" error message.

    I frequently get the "Firefox can't find the server" error message. Refreshing the page normally causes the page to load, although sometimes it takes more than one try.
    I have checked my connection settings. IPv6 and DNS prefetching are disabled, as recommended by this article: https://support.mozilla.com/en-US/kb/Firefox%20cannot%20load%20websites%20but%20other%20programs%20can?s=Firefox+can%27t+find+the+server+at&r=1&as=s

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

Maybe you are looking for

  • Refresh has effect on clone but not on object itself

    Hi, (Using TopLink 9.0.3 with an Oracle Database) I see some mystifying behaviour when I insert an object, refresh it because I know the database performs some changes on the data during insert from a database trigger and then inspect the refreshed o

  • Maint. Status in Dictionary: Maintain View- setting read and insert only.

    I am creating a maint. view for a custom table I have created.  Say the view was accessed via sm30, the user should be able to view existing records and insert new records, but not delete or change existing records. When in the Dictionary:Maintain Vi

  • Developing Form Distribution for Clients

    As a web developer, I've had good success developing an online form and distributing it via my own website. However, I can't seem to figure out how to do this for my clients. The perfect scenario would be this: I create an editable form named: AGREEM

  • Billing and useage charges

    Since June, a Verizon number has been counting toward my 500 text limit when the number should be on my Unlimited M2M.  I called back in August several times and was finally supposedly given a 400.00 credit.  The cedit has not been applied and the nu

  • Subnet question

    hi all, can anyone answer this for me, If im using 192.168.1.253/30, can I still use the full 192.168.1.0/24 somewhere else ?