Set a timer in servlet

i want to set a timer of 10 min in one of my pages(im using servlets) and i want to redirect a user to a different page after that period of time.i tried to use a loop using thread.sleep(),but it is not working.to redirect to a different page i uused refresh parameters but getting error 405.please help...

That's not how it should be done. JSP/ Servlets are server side technology and the code runs on the server before the page is generated. Once the page is sent to the client, your JSP/ Servlet has long since finished servicing that particular request and you cannot do anything to that response now, once it's committed.
You can do this with either:
- JavaScript, setting a timer onload and then doing what you want
- Using META tags [1] to refresh or redirect
Be aware that both of these can fail and you should always give a link to the page unless you want your user to be stranded. And also, just as a preemptive measure, JavaScript != Java so if you decide to go that way, you'll need to post your queries in some JavaScript forum and not in the Java forums.
[1] http://en.wikipedia.org/wiki/Meta_refresh
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
----------------------------------------------------------------

Similar Messages

  • How to set the default Maximun idle time for servlets

    Hello I'm trying to set the default maximun idle time for servlets in Contenedor Release 1.0.2.2.1, but I dont know where to do it. Please somebody help me!!

    Saul,
    Are you trying to setup the session timeout ? If so please look at the Web FAQ at http://otn.oracle.com/tech/java/oc4j/htdocs/OC4J-WEB-FAQ.html#7
    regards
    Debu Panda
    Oracle

  • How do i set my time capsule up to function as an external hard drive

    How do i set my time capsule up to function as an external hard drive? Is this even possible? I had a friend tell me it woudl be a good set up to get a time capsule with my Macbook Air to use as a gigantic external hard drive but then was unbale to wlak me through the setup after I bought the equipment. Any suggestions?

    It depends on what you already have equipment wise..
    Just bridge the TC..
    I cannot walk you through it either if you use v6 airport utility.. due to my refusing to run Lion until it gets network issues sorted.
    Download and run the real utility http://support.apple.com/kb/DL1482
    Go to manual setup..
    Internet tab
    Connection sharing.. select off bridge mode in the drop down box.
    You can then if you like turn off wireless under airport wireless.. The TC is now a plain network client with hard disk.
    Personally I would keep the wireless on but sort the channels manually if you already have a wireless AP or router.

  • How do I set up Time Machine to work with an Iomega network hard drive?

    I have just bought a new iMac having switched from Windows, and am very much a beginner when it comes to all things Apple. Previously I had used my NAS hard drive with my old windows pc. i successfully used it to transfer a lot of data from the old pc to the iMac but can't seem to get it recognised when I try to configure time machine. I have downloaded the latest version of Iomega Home storage manager which appears in the application folder in the dock, but when I click on The HSM icon it just disappears and nothing happens. I can access the drive through the Bonjour service and can see its contents in Finder. I have looked through the forums here but much of the info assumes a level of knowledge that i don't have. Is there an 'idiot's guide' anywhere to enable me to set up time machine to use the network hard drive?

    You would probably benefit from a couple of things, first going through these 2 links
    Time Machine FAQs & Time Machine Troubleshooting.
    If you still have questions there is a TM forum, because TM is part of OS X you will find the forum in the Snow Leopard forum. Click Apple Support Communities and in the search field type Snow Leopard. Once you are in the correct forum you can narrow your search by clicking Refine this list.
    Roger

  • Set up time not considered

    Hello ,
    I am using PP-PI.
    The resource category is '001' machine and having std formulas 'sap001' for setup and sap002 for processing and other formula 'sap006'
    The recipe has setup time and processing time .When i run MRP the planned orders are created  but no set up time is considered in it.
    I tested the formula in resource and it calculates set up time.
    What settings i need to check ?
    Also, for the planned order , in det.scheduling tab system shows 'capacty requirments'(in min).
    But this does not match with production dates.
    Example  - prod dates-  10.06.09 ( 14:00:00) to 24.06.2009(24:00:00) = 10*1440(days avlb capacity) + 14:00 =  14410 mins.
    But the capacity req shown is 15000 mins( opr qty *processing time). 
    What settings i need to chk  ? kindly advise
    Regards
    ShankarR

    Shankar,
    Have you maiantained the scheduling parameters  for planned order in OPU5?
    If not then execute the same & under 'Detailed scheduling mark 'Scheduling' & 'Generate capacity requiremnt'.
    Regarding the differnce in capacity requirement & scheduling, make sure you use similar formulas in scheduling as well as capacity tab page.
    Hope this helps you.
    SmanS

  • Having trouble setting up time machine.

    I'm trying to set up time machine and I go to the program, click it on, and then I click "choose backup disk", but there is nothing there. Is there anything I am supposed to do beforehand to give Time Machine a backup disk to save in?
    My next question isn't about time machine but it might be related. I have to reinstall windows on my mac. I had it before and somehow it caught a virus, so I had to erase and it went to ****....long story short, It broke, I fixed it. Now i have to repartition my drive though. I assume that I have to split it three ways, one for Mac, Windows, and Time Machine. My question is....I want to leave Mac with the most space of all 3, obviously....whats the minimum I can split it to to install Windows xp and get Time Machine working (unless I'm way off and time machine setup is a different way)?

    So one can't back up to a partition on the main disk with Time Machine?
    The iMac comes from the factory with a single partition. If you want TM to backup to a second partition on the iMac internal drive, you will need to Partition the drive using OSX disk that came with the iMac (this erases every thing on the hard drive) and reinstall the OS from the DVD.
    But, I do not recommend that approach. Backups are generally needed if your hard disk crashes. If you are backing up to a partition on the internal disk, you will lose your backup if/when the drive crashes.
    The only reason to use TM on a partition on the internal drive is if you are doing a LOT of version sensitive work (meaning you made need to look at yesterday's work on the same project). But most applications can be set to do incremental change backups of individual projects making TM a ppor choice anyway.
    Buy an external drive for the TM backup.
    (jk)

  • Having trouble setting up Time capsule...

    I just bought a new iMac last night. I also picked up Time Capsule and Apple TV. I'm having a problem setting up Time Capsule correctly. I'll go through what I did step by step and hopefully someone can help me as I've never tried to set up a wireless network before.
    I'm connected to the internet via Comcast. I have the outside cable coming into the modem and the ethernet cable from the modem i have plugged into TC's WAN port (the one with the gear logo).
    I start by opening Airport Utility ( I upgraded to the most recent version using the install disc that came with TC) and it recognizes TC in the left side of the window. It says it found TC with default settings and gives a name for it and an Airport ID. I click continue.
    The next window prompts me to name the TC and assign a password. I do so and click continue.
    The next window gives me some options about setting up a new or existing wireless network. It says it found some existing networks which I assume are my neighbors. I select "I don't have a wireless network and want to create one". I click continue.
    The next window prompts me to give a name and security level to the new network. I provide a name and select WPA/WPA2 Personal and enter and verify a password. I click continue.
    The next window asks whether I'd like TC to be in Bridge mode or Share a single IP address using DHCP and NAT.
    If I click Share a single IP, a popup tells me "This will cause my TC to continue to blink amber and do I want to ignore this and continue?". So I figure this can't be a good thing and I click on Bridge mode not really knowing what it means.
    The next window asks me to enter the TCP/IP info from my ISP. It also says to choose "Using DHCP" if I receive an IP address automatically. So in the box where it says "Configure IPv4", I select "Using DHCP" and there is an IP address and Subnet mask with numbers after each. Below that is Router Address, with fields for DNS Server, Domain Name and DHCP Client ID. These fields are blank. I click continue.
    The next window says TC will use these settings:
    TC name - Jim's Time Capsule
    Wireless Mode - Create a wireless network
    Network Name - Jim's Network
    Wireless Security - WPA/WPA2 Personal
    Connect Using - Ethernet
    Configure IPv4 - Using DHCP
    IP Address - (Provided Automatically)
    If settings are correct, click Update to finish setting up your TC or click Go Back to change settings. I click Update and a box tells me that the device and its network service will be temporarily unavailable and do I want to continue? I click continue.
    The next window tells me that the settings for TC have been updated successfully and its being configured. I then get a window reporting a problem.It says-
    "Problem 1 of 1: Internet Connection
    Your Apple wireless device does not have a valid IP address. Make sure your Apple wireless device is connected to your broadband modem or local network, verify your settings and try again. If you still can't connect, call your ISP."
    There are two boxes with options. The first is "Connect Using" and "ethernet" is selected with "PPoE" being the other option. The second box says "Configure IPv4" and "Using DHCP" is selected, and "Manually" is the other option.
    Obviously, I'm doing something wrong, but I don't have a clue. I'm getting online fine when I plug the ethernet cable into the back of the iMac. I've reset the modem by hitting the reset button. The light turns green on the TC but I can't connect to the internet. Any ideas? Feel free to call me a big dummy
    Jim

    Thank you, Jim Somoygi. I had a similar multi-hour odyssey with a AE and a Comcast cable modem.
    This solved the seemingly endless blinking amber light:
    1. unplug power from the modem and AE (or time capsule). Go get a beverage of your choice (wait a couple of minutes).
    2. My modem has a battery backup (Comcast phone service). So, I pressed a tiny reset button on the back of the Comcast modem (it's made by Arris). With the battery backup, I'm not sure I would have been able to reset the modem simply by unplugging.
    3. Make sure there is an ethernet cable connecting the cable modem and the AE or TC
    4. Plug the modem back in, wait for the lights to come on. I also had to press a "standby" button on the front of the modem to get all the lights to come on.
    5. Plug in the AE (or TC)
    6. Green light on the AE (it's not easy being green)
    7. Choose the appropriate Airport network & surf away.
    I will say that the problem seems to be with the modem, rather than the AE. Once I reset the modem, I could configure the AE with ease. Once the AE is configured, it is absolutely rock stable. Before I fiddled with the network & brought this on myself, I enjoyed shockingly stable networking with the AE -- much better than with previous attempts with Netgear or Buffalo products (although I do like the ease with which Buffalo products can be configured together, using their proprietary handshaking protocol "AOSS").

  • How do I change the name I have called my MacBook Air so I can add 11" and 13" into the title of whose computer this is for more clarity when I set up Time Machine and save to it with both computers?  Both are named with "my name and MacBook Air"

    I'm still learning the whole Mac thing but these are great machines!  I purchased a MacBook Air 13" and then thought I should also get a MacBook Air 11" for travel.  When I set it up at the Apple store I told the assistant the exact same name for each machine, i.e., "my name and MacBook Air."  What I want to do is go back in and rename both of them adding the 11" and 13" designation to the name so that when I set up Time Machine or whatever else I know exactly which machine is what.  I'm sure it is very simple but I cannot seem to figure it out.  Help please. Thanks.

    Go to System Preferences - Sharing and change the computer name there. You can also, optionally, change the name of your hard drive to further clarify the origin of your backups. Click once on the "Macintosh HD" on your desktop, then click its name to allow you to edit it.
    Matt

  • How do you set the time period on IMAP email accounts (razr maxx)

    Hi Guys -
    Does anyone know how you can set the time period that the stock email will keep the already downloaded messages for IMAP email accounts?
    Mine never seems to show more than a couple of days worth at a time. I'd ideally like to be able to see at least 2 weeks worth of messages without needing to download them again!
    On other phones I've had there was a setting in the menu, but either I can't find it...or it's not there. I've found the setting for how OFTEN it checks the accounts, but not the setting I am seeking.
    Your help is appreciated!
    Best Wishes for the Holiday Season.
    -Rich

    Hey Rich.  Once in 'settings,' there should be a "days to sync' under the 'data usage' section.   You don't have that?

  • How to set up time capsule with BT home hub 4.0 & Openreach

    Idiots guide needed.
    My TimeCapsule (year old model) had been running well from my BT Openreach box (without using the Home Hub 4.0) but recently had issues with connection dropping - BT said they've sorted out their end and can't see any remaining issues and can't offer me any more support if I'm not using the Home Hub 4.0
    I reset the TC to run straight from the Openreach Box  still have issues with wi-fi dropping in and out (both on ethernet and wi-fi).
    Can I:....
    1)     set up Time Capsule running from BT Home Hub 4.0 which itself runs from BT Openreach white box (thus continuing to get support from BT)
    or should i go back to
    2)      Time Capsule running straight from BT Openreach Box
    Can some one post an idiots guide to either option?
    Other stuff that may be important.
    Macbook air running Yosemite (mid 2011 model)
    Apple TV
    Airportexpress
    Time Capsule
    2 x iphone 4s
    Kids PC
    Ethernet and wifi for above - I generally run everything hard wired via ethernet.

    The easiest and sure way is to use bridge on the TC as the method of connection. The TC then becomes a device in your network and gets its IP from the main router that I presume BT supply.
    Method is,
    1. Plug the TC WAN port into the BT supplied modem by ethernet.
    2. Plug the computer you are using for the setup into the TC by ethernet.
    3. Run the airport utility .. go to internet tab on the top menu..
    In the bottom option, Connection Sharing choose off (bridged mode)
    4. Go to the wireless page and setup wireless connection as you like it.. using whichever band you want. And make sure security is set to the highest setting, wpa2 personal. Put in a decent wireless passkey.
    5. Press the update and fix whatever else the TC will show as needing fixing.. usually security stuff.
    6. You can then disconnect the ethernet and connect by wireless if you want. Any port on the TC will now be a LAN port, including WAN.
    This is assuming BT supply a wireless router with built in vdsl/other type of modem. If so you normally will not be able to bridge the modem, unless BT are using pppoe authentication which they haven't in the past.
    If you really need to use the TC as a router then you will need to work out an alternative method. You can double NAT by placing the TC in the DMZ of the BT router if that is an option. It is not without issues in general.

  • HOW TO SET UP time capsule with time machine?

    I have not been successful in setting up time capsule with the time machine,can someone give me steps to follow?

    What part are you having problems with?  You need to make sure File Sharing is enabled on the Time Capsule (which is done in AirPort Utility).  Then you just connect to the Time Capsule either wirelessly or via ethernet cable and when you go to Time Machine setup your computer should recognize your Time Capsule as a valid storage for Time Machine backups.

  • How to set up time capsule with BT Infinity

    how to set up time capsule with BT Infinity

    The easiest and sure way is to use bridge on the TC as the method of connection. The TC then becomes a device in your network and gets its IP from the main router that I presume BT supply.
    Method is,
    1. Plug the TC WAN port into the BT supplied modem by ethernet.
    2. Plug the computer you are using for the setup into the TC by ethernet.
    3. Run the airport utility .. go to internet tab on the top menu..
    In the bottom option, Connection Sharing choose off (bridged mode)
    4. Go to the wireless page and setup wireless connection as you like it.. using whichever band you want. And make sure security is set to the highest setting, wpa2 personal. Put in a decent wireless passkey.
    5. Press the update and fix whatever else the TC will show as needing fixing.. usually security stuff.
    6. You can then disconnect the ethernet and connect by wireless if you want. Any port on the TC will now be a LAN port, including WAN.
    This is assuming BT supply a wireless router with built in vdsl/other type of modem. If so you normally will not be able to bridge the modem, unless BT are using pppoe authentication which they haven't in the past.
    If you really need to use the TC as a router then you will need to work out an alternative method. You can double NAT by placing the TC in the DMZ of the BT router if that is an option. It is not without issues in general.

  • How do to set up time limits on a guest network

    I have a new generation Airport Time Capsule and I have set up a Guest Network for my kids but I would like to set up time limits on the Guest Network also, is there a way to do it?

    It is not possible to set up specific time limits for the Guest Network as a whole, but it is possible to set up individual time limits for each device that will be connecting to the Guest Network.....and, also the main network for that matter.
    If you can provide us with some more specifics on what you are trying to accomplish, how many devices will be involved, etc.......that will help us craft our answer to provide accurate information.
    Meanwhile, if you want to take a look at the general settings in Timed Access....
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click on the Time Capsule icon, then click Edit
    Click the Network tab at the top of the screen
    Enter a check mark in the box next to Enable Timed Access
    Click on the Timed Access button
    Click Cancel to avoid making any changes to your current setup

  • How do I set up "Time Machine"

    I am on http://support.apple.com/kb/HT1427, but the information given on how to set up "Time Machine" doesn't match with the prompts my Mac mini is giving me.
    The support site says I will be asked,
    But I don't get this ^ prompt.  The prompt I get says "Choose a backup disc."  And when I click on "CHOOSE BACKUP DISC" (my only choice) it brings down another drop down menu and my only two choices (prompts) are "set up time capsule" and "cancel."  When I click "set up time capsule" my computer searches for an "air port utility"  It then tells me I don't have one and then I am stumped. I don't want to install "Time Machine" with an "air port utility."  (I don't even know what an air port utility is.)  I want to use an external hard drive I bought so that I'd have more space as my backup disc.
    Any suggestions on how I can install Time Machine?  My Mac Mini is 2 and a half years old, but I just recently started to use it as my "default" computer.

    Okay.  I was able to change it to my external hard drive.  Now, do I need to keep that drive connected all the time or will it update if I eject it and then (days later) reconnect it?  And it said that it might take a long time to back it up.  Will I get some kind of notification when it's done?  (Sorry.  I am technoloically inept.  I know.)

  • How do i set up time restrictions on a phone? I want to limit the late night phone calls coming in and going out for a family member.

    How can I set up time restrictions for a family member? I want to stop the late night calls incoming and outgoing during the week.

        Hi sk8ermommie - We certainly want you to be able to easily monitor and manage the usage on your account! We do offer the Family Base feature that allows you to setup time restrictions. If on a More Everything plan we are currently offering a free 3 month trial, after trial feature is only $5 per month. Visit http://www.vzw.com/familybase for more details.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

Maybe you are looking for

  • WSIF calling EJB 3.0 beans, with JAXB 2.0.2 as the JavaSerializer

    I'm working with SOA suite (10.1.3.1.0 [build #0 ]), and I am trying to allow my BPEL processes to call my EJB 3.0 stateless session beans via WSIF. This works fine when I am passing primitives (strings, dates and so-forth) between BPEL and my EJB's

  • Satellite Pro S300 - HDD in caddy is not recognized by BIOS

    I have replaced the original HDD and installed a new SSD which works fine. Installed the W7Pro and all updates. I do not use my CD-Writer so I replaced the CD-drive and installed a caddy with my old HDD to have more diskspace. When I boot my laptop I

  • Corrupt LOG File MaxDB 7.5 (Netweaver 04)

    At the Installation the LOG went full. LOG-Mode = SINGLE. Then I have added a new LOG File. Nothing happens. After rebooting the maschine, the database doesnt come up, in krnldiag there is following: 2004-11-14 22:46:30  7579     11000 vattach  '/sap

  • Creating a Digital signature

    Hi Experts, I have followed the [SAP Help|http://help.sap.com/saphelp_nw04/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/content.htm] for creating Digital Signature.  In this, they have given the code to sign based on Keystore.  There is no option to

  • Links doesn't work

    Hi, I finshed my form and noticed that links in the form doesn't work. I tested in both reader and acrobat. Does anybody know what is going on? Thanks