Tracking Time in JSP

In a Jsp Page when the user logins the current time has to be captured, and then for that 20 minutes has to be added. After 20 minutes the user must be logged out automatically saying that ur allowed to browse only for 20 min. How to do it ?

I think the OP doesn't mean timeout after 20 minutes of inactivity, but only 20 minutes browsing time.
If so, I think the easiest way might be to use frames and have a Javascript timer or META refresh tag in a small/hidden frame handle the log out. Otherwise, you can't be too sure from the server side what the user is doing. I mean, you could use a timer in the server to set a "must logout" flag in the session which can be checked on all pages, but if the user is sitting there reading something, this may not be invoked til after the time out time. Maybe some combination of a "time left" tracking in the session and using that with Javascript or META refresh to do the logout if they haven't moved on yet.

Similar Messages

  • I have an iPhone 4S, iPad and MacBook Air.  I'm looking for an app or program where I can track time spent of specific projects each day and also document details of each project.  Is there anything available that is synced through iCloud?

    I have an iPhone 4S, iPad and MacBook Air.  I'm looking for a program or app that I can sync though iCloud that will allow me to us all of these devices to track time spent on projects each day along with the ability to add specific information about each project.  Any suggestions are appreciated! Thanks!

    I recommend you consider Omnifocus.  It is a task management program which runs on the Mac, Iphone & Ipad. I use it for task management and project management.  It let's you store additional information as well.   I sync all three devices through a Mobile Me account and I can enter data on any device and it is available on all devices.  I believe you can also sync through Dropbox.  I'm not sure that you can sync through iCloud yet.  The link to their website is:  www.omnigroup.com.  There may be less expensive alternatives, but this one meets my needs and syncs very well across all devices.

  • Problems getting track times to import.

    I have experienced a problem where the CD track times display on the CD I am importing, but when that CD is in the Library, some or all tracks display "not available" for the track time. When those tracks are downloaded to the I-pod, they get skipped over. Is there a way to edit in track times in the library, and in I-tunes itself? I'd like to not have to re-import a bunch of CD's if at all possible.
    E-Machines   Windows XP  

    As far as I know, you can only generate track names on CD's from Gracenote if the order, the amount of tracks and the time per track on your CD is correct (= original).
    So, if you have complete albums, and you are able to 'reconstruct' them as described above (same tracks in same order as on the original CD), than burn a CD from this. Mount this CD in iTunes, and let it search in Gracenote; if you did a good job, you will receive your track names. You can now re-import your tracks to iTunes.
    But, when the albums that are incomplete or when you don't want to spoil all this empty CD's, I think you'll have to retype all your track names. Maybe you can look for the track names on Gracenote or amazon and copy-paste this.
    One good thing : if you have converted your AAC's to AIFF's (that's how I understand it), you did get rid of the protection and you will be able to burn as many CD's from this songs as you want

  • My I pod will not display volume bar or track time.

    I have an Ipod Nano, but all of a sudden it quit showing the volume bar and track times of my songs. In place of the track times are 5 dots going across the bottom of the screen. Does anyone know what is going on? Any help would be greatly appreciated.

    To Michal,
    It's not a problem!
    It's the way it is supposed to work!
    See the last paragraph on page 24 in the manual:
    http://manuals.info.apple.com/en/iPodnano_FeaturesGuide.pdf
    "Depending on what type of audio you’re listening to, you can press the Center button repeatedly from the Now Playing screen to get to other information and options, such as the rating screen for songs and audiobooks, album art, podcast information, reading speed, and more. Click the Menu button to return to the previous screen. "
    Regards,
    Colin R.

  • Nano software bug- Track time...

    I just noticed whilst listening to my Nano the track times (both counting upwards and counting the remaining time) skip from time to time by two seconds.
    Does anyone elses Nano misbehave like this?!

    StephenR wrote:I could try updating every album with MP3Tag (www.mp3tag.de/en), although I'm sure I've done that with a few and I think there's still a problem.Product name: Zen Sleek Photo Media Explorer- Version: 5.30.08- Language ID: English- Software ID: ZEN_SLEEK_PHOTO_MEDIA_EXPLORER- Installed path: C:\Programme\Creative\Creative Zen Sleek Photo- Number of components: 0
    Try updating some tags to test with MP3 Library. I've used this a lot in the past and it has always worked for me.
    Also can you try transferring with some other software? e.g. MediaSource
    Normally it's just that the tags aren't read properly, and it's either a tag version or transfer application problem. I'm sure MP3 Tag has caused problems in the past.

  • Strange track times problem

    ok this is a weird one. i have a song i imported from a CD. its in AAC format. ive listened to it many times on iTunes and my ipod. tonight i was listening on my ipod and it cut off before the end of the song. its not that it cut off and there was still time left in the song. somehow the song just wasnt all there. it had been ok the other times i listened to it. when i got home, i looked at the song on itunes. it had the same track time on itunes, the incorrect time. but when i clicked on it to play it, the time corrected to the proper time and then when i synced my ipod, it fixed the file. what the heck!?

    Hi again,
    We're talking the length in minutes. Strangely it's only occurred on the last batch of CDs my friend did for me ( well I'm 99% sure of that ) and he's only got a CD recorder not a PC recordable drive. This last batch was done on a new ( albeit s/h ) CD recorder. I've imported other CDs burned from PCs etc and all have been ok. I've even checked copies I've done using my CD recorder and the times have been correct when imported into iTunes.
    As you suggest, I might try and use Roxio to make a CD of the 'faulty' run time tracks and see if what happens when I then import to iTunes from them.
    Thanks again for your help.
    SimonJ32

  • ITunes Change Track Time

    Hello,
    I first noticed on my ipod that some songs suddenly stopped playing, and I saw that the elapsed time was 0:00 even when the song wasn't finished playing at all, then on iTunes I found that the song had the same time as on the iPod but when I double clicked it, it changed the track time to the real track time.
    What is generating this? Is it possible to fix it?
    Thank you in advance!

    Have you tried to just simply enable the Crossfade setting on your Nano?
    To turn on crossfading:
    1 From the Home screen, tap Settings.
    2 Tap Music, and then tap  Off next to Audio Crossfade.
    B-rock

  • ITunes track time issue

    I am using iTunes 8.02.20 on Windows Vista Ultimate Service Pack 1 and since I installed this version of iTunes when I import a CD the time listed on the track is correct. Once imports when I look at the same file in the library I see the track time as 789:57:13 listed as the track time on all the tracks imported.
    Any suggestions would be great. thanks!

    Bummer, sounds like it might be some bug, then, if itunes 7 is OK.
    How about your import settings - are you using MP3, AAC, AIFF, or what?
    If MP3, are you using VBR?
    Does it work with any other import setting, so you could report it to Apple?

  • Shared library : client iTunes shows grossly wrong track time...

    Bit of a weird one here.
    When I connect to my shared library (wireless LAN), when the library is loaded all the track times are displayed correctly. However, if I try to play one of the tracks from the client machine, suddenly the displayed track time changes dramatically (e.g. from 5:00 to 34:24) and the time remaining, while the track is playing, reflects this too.
    However (1) if you let the track play to where it should end, it does end when it should and (2) if you play the track on the machine that contains the shared library this does not happen.
    I'm sure this has started happening only recently (both machines are running latest iTunes 7.6.2)
    Any ideas?
    Neil

    After some digging around it turned out to only affect files that were encoded using VBR, though I tried to "convert" some of the problematic files using iTunes to VBR (so, VBR to iTunes VBR) and they worked OK.
    I should've added that I don't do my ripping and encoding with iTunes. I rip with Max (to FLAC) and transcode the FLAC files to MP3 with LAME (command-line). Originally my trancoding script was using VBR - I changed it to use CBR (192) and the problem seems to have been fixed.
    However, there is obviously some quirk with playing VBR MP3s via a shared library as, as I described originally, you don't get this behaviour on the local machine. It's only when you try to access the songs over the network that the track time gets all messed up.
    I'm going to leave this marked as "unanswered" for the time being as I believe that this is an iTunes bug.
    Neil

  • Track time and dragging the play location ball

    I am running itunes 10.6.1 on osx 10.6.8 and it'd be nice to veiw the track time corresponding to where the play location ball is while.   I am dragging the ball and the only way to know the time is to let it go.  it'd be nice to have the time update while dragging.  is this an option I can turn on or do I need to wait for the apple developers to implement this feature?

    Dear Adobe support team,
    It's quite an old thread however no update fix for this issue but the workarounds of the good people above. This tiny and yet very irritating bug should has been fixed a long time ago in an update patch. I'm using the latest version of Premiere Pro CS6 (6.0.5) and still look forward for an update fix. I haven't checked whether this issue exists in the CC edition of Premiere Pro, however even if it has been fixed there, I'm not willing to upgrade to it no matter what as I believe in a product I paid the full price for ONCE and that should receive its yearly bug-fix updates, and not for one with an annual fee.
    I look forward to hearing from you.
    Thanks,
    Gal Shemesh

  • Track time / Hold time

    Hello everybody,
    In order to calculate the maximum sample rates of my DAQ cards (6220,
    6259) I would to have know the "Hold time" and the "Track time" of the
    following formula:
    MaxSampleRate = 1/ [HoldTime + (Nc-1)*SettleTime + TrackTime] where Nc
    is the number channels being sampled
    Can you tell me where I can find these characteristics ? (They are not
    in the user manual)
    Thank you in advance for your help.

    Thank you very much Mark. How can I rate your message ?
    Labalafre.
    Mark H wrote:
    > Labalafre,
    > I notice from your formula that you may be under the impression that DAQ boards have "sample & hold" circuitry on each input - unfortunately most DAQ boards do not perform true simultaneous sampling.
    > Most DAQ boards have a maximum sampling rate specification, e.g. the 6220 board's maximimum analogue input sampling rate is 250KS/s. In general, you do not need to calculate the internal track/hold timings of the board yourself, the board will function up to the maximum sampling rate.
    > If you add your own external "sample and hold" amplifiers, you may well need to calculate custom "channel clock" timing to allow your own S&H circuitry to re-sample/settle between DAQ channel list scans (I've done this myself).
    > Accuracy is another matter though - if you are sampling multiple channels, then it takes time for the board's amplifier input to settle from the previous voltage level and the next. In order to acheive higher accuracies you have to reduce the scanning rate to give each measurement greater time to settle.
    > Another trick you could use, if particular signals take longer to settle, is to list a channel twice (or more) in succession in the channel scan list and then only use the last reading for that channel.
    > The settling time required for a particular accuracy is partly a function of the DAQ board specification, but it also depends on the impedance of your signal source - higher impedance signal sources take longer to settle.
    > DAQ board specifications are all accessible on NI's web site (like just about everything else) - but to save you a little time, here are links to the specification PDFs of your two boards... <a href="http://www.ni.com/pdf/manuals/371290d.pdf" target="_blank">6220</a>&nbsp;spec's &amp; <a href="http://www.ni.com/pdf/manuals/371291c.pdf" target="_blank">6259</a>&nbsp;spec's.
    > Hope this helps&nbsp;- if so, please do "Rate this message" - and feel free to ask more questions.
    > Mark H.
    > &nbsp;

  • Count down Timer in jsp

    We are developing an Online Examination System. We are using jsp and servlets.
    We need a count down timer which will start as user starts the test. When user refreshes the page during test, timer should continue counting and must not reset the counter. At the end of the test it will submit automatically.
    Does jsp provide built in facility to manage timer?

    Does jsp provide built in facility to manage timer?There is no build in facility to manage timer, but all you have to do is track it at the server end.
    ie - not in javascript.
    Store a timestamp for the user for when they started the test. Either in session, or in a database.
    Then whenever they refresh their page, you look at the current time, the time they started the test and display the appropriate value.
    By all means you can have a javascript countdown on the page, but the authorative time should be on the server.

  • IDoc Tracking: TIME LIMIT EXCEEDED

    Hello!
    We have about 15 different R/3 platforms connected to XI using the IDoc adapter. If I use the IDoc Tracking functionality in IDX5 it usually is working fine and the IDoc number in the receiving system and IDoc status are returned within seconds.
    However, for one R/3 platform it was always taking about 30 minutes until the IDoc number and IDoc status were returned. The status bar displays that the IDOC_DATE_TIME_GET function module is executed.
    Now it runs for over one hour until it stops with a TIME LIMIT EXCEEDED error message and no IDoc numbers and status is returned any more. What needs to be corrected to speed up IDoc tracking for this particular system?
    Regards, Tanja

    Not sure if this would help, but this link speaks of how to bypass time limit exceeded
    http://www.erpgenie.com/abaptips/content/view/490/62/

  • Displaying Current Date and Time in JSP

    Hi,
    I need to insert the current date time in Ms SQL Server Database using jsp page. The format of the code willbe
    insert into table(update_date) values ('2007-01-01 10:02:21');
    But i am not getting how to display the current date and time ie. 2007-01-01 10:02:21 using jsp.
    I have tried using
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    GregorianCalendar cal = new GregorianCalendar();
    String dd = sdf.format(cal.getTime());
    insert into table(update_date) values (dd);
    But it didnot get inserted data.
    Can anybody figure out with simple ideas.
    Thank You

    Why then are you trying to insert the current date on a table?
    To show the current date on the JSP you might try
    <%=new Date()%>Or the way you had it on your first post with the date formatter and then use the <%=%> tags. Anyway, it seems to me I'm not really understanding what you actually want to do :-p
    P.S. NOW() is a MySQL function too, not only MSSQL server (didn't even know it had it too ;-))
    mysql> insert into a(up) values (now());
    Query OK, 1 row affected (0.00 sec)
    mysql> select * from a;
    +------------+
    | up         |
    +------------+
    | 2007-04-09 |
    +------------+Message was edited by:
    benubach
    Message was edited by:
    benubach

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Maybe you are looking for