I need Client info...please help me

Hi friends,
I'm just starting with JSP... so i can't do less than nothing :o( .
How can I have some user information like, Operating syste, IP, browser info, video resolution,...
I can ha ve this trough javascript, 4 example:
<SCRIPT>
document.write(navigator.appName)
</SCRIPT>
or
<SCRIPT>
<!--
var screenW = screen.width
var screenH = screen.height
document.write(screenW + "X" + screenH)
//-->
</SCRIPT>
or
<SCRIPT>
<!--
if(navigator.userAgent.indexOf('IRIX') != -1)
{document.write("Irix")}
else if((navigator.userAgent.indexOf('Win') != -1) &&
(navigator.userAgent.indexOf('95') != -1))
{document.write("Microsoft Windows 95")}
else if(navigator.userAgent.indexOf('Win') != -1)
{document.write("Microsoft Windows 3.1 or NT")}
else if(navigator.userAgent.indexOf('Mac') != -1)
{document.write("Macintosh")}
else {document.write("Other")}
//-->
</SCRIPT>
How to catch this information trough pure JSP ?
thank's you a lot
bye bye
ric

Hi,
unfortunately u can't gather all information with jsp. for example the dimension of the browser window is only accessable by javascript, because jsp works on the server, not on the client. some infos, you can gather with jsp, i've listed here:
useragent -> request.getHeader("User-Agent");
ip -> request.getRemoteAddr();
referer -> request.getHeader("Referer");
cu
/m

Similar Messages

  • Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    Lightroom 4.4 keeps crashing saying "Lightroom encountered an error when reading from its preview cache and needs to quit" please help. I've tried reinstalling it and everything  Windows 8.1

    I assume you know where your catalogue file (the lrcat file) is located. In the same folder is a previews lrdata folder which you should delete or rename in Explorer, then start LR again.
    If I've made incorrect assumptions above, sorry, and we'll go back over it from the start.
    John

  • It only uses 32bit, and my computer needs 64bit.   Please help.

    I am a non profit.  I ordered Photo shop Elements12 for PC  for my office.  It is a download only.  It doesn't dowload on my computer.  It only uses 32bit, and my computer needs 64bit.   Please help. The Adobe photoshop elements 12 is useless to me.  I can't seem to get anyone at Techsoup to help and trying to get Adobe to help is runaround.  What should I do to get it to run on my computer.  Please someone in the forum let me know how switch out the download for the correct one.

    64-bit windows can run 32-bit applications just fine and always has.  They are just limited to a small amount of memory.   If something isn’t working it’s likely another problem like an incomplete download or trying to install the Mac version on a PC or something like that.
    You can try downloading and installing from the PSE12 link, here, to see if it works any better:
    http://www.adobe.com/downloads/other-downloads.html
    If you can’t get things to work, then please post a screenshot of the error and a description of what you’re trying to do that lead to the error.
    Also the term “downloading” refers to transferring a file from a remote server, across the internet, to your local computer.   The term “install” means running the program that was downloaded on your local computer to put the working program on your computer that you can run.
    It would be helpful to know if your saying that the actual transfer across the internet part isn’t working, or if that part seemed to work, but when you run that installer program you’re seeing an error.

  • HT201295 My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 ) when I use any camera needed app. Please help me.

    My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 with osx Yosemite) when I use any camera needed app. Please help me. Its getting a little annoying.

    If restarting Mac or reinstalling OS X does not correct this symptom, you likely have a hardware problem.  Contact Apple Support or an Apple Authorized Service Provider for service.
    Message was edited by: EZ Jim
    Mac OSX 10.10.1

  • I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    Hi please help me I'm useles with these thing. I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    I'm sorry we cannot help you.
    You have Jailbroken your device.  Apple does not support Jailbreaking and as such having done so has voided your warranty and forfeited any support from Apple and by extension these forums. We are not allowed to discuss Jailbroken devices in any way by the Terms of Service of the forum.
    You will have to find help elsewhere. Ask the person that installed Cydia to restore the phone.

  • I was trying to set Adobe Reader 11 as default PDF viewer on my client PCs, Please help me this. My server is windows 2012 R2 and client PCs are Windows 8.1

    I was trying to set Adobe Reader 11 as default PDF viewer on my client PCs, Please help me this. My server is windows 2012 R2 and client PCs are Windows 8.1

    Hi Krisis,
    I have found a forum where similar query was answered. Hope this helps.
    http://www.loginvsi.com/forum/support-v4/857-adobe-reader-xi-not-set-as-default-pdf-viewer -in-server-2012-r2-rds
    Regards,
    Anoop

  • HT3743 Alright! But i need help to unjailbreak my iPod Touch now. I need assistance. Please help me!

    I  need help to unjailbreak my iPod Touch now. I need assistance. Please help me!

    Jailbreaking voids the Apple warranty and also means that you will not get any support from Apple, including from this Apple forum. Jailbreaking can't be discussed in this Apple forum.
    Unauthorized modification of iOS has been a major source of instability, disruption of services, and other issues
    Go to where you found out how to jailbreak

  • I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages and I need to!  Please help!!  "Add page" is not working!!!

    I have worked many hours on an iphoto book and I am up to page 29.  I cannot add any more pages past that and I need to!  Please help!!  "Add page" is not working!!!

    Fixed it thanks to similar questions and answers to them.  Thanks all!

  • I need to add my new ipod to itunes. it will only show the old dead ipod. i want to keep the music, but get rid of the info of the old dead ipod and add my new one and its info. please help.

    Hello,
    I need to add my new ipod to itunes.
    itunes will only show the old, dead ipod that my niece had given me secondhand.
    I just got a new one and want to put in it's serial number, etc. but keep the music.
    Please help, I've been going around in circles online for hours. I don't want to merely change the name of the old ipod, which is the only info I can find.
    Thanks.

    "In addition, I would like to get all of the music files that are already on my ipod on to my new computer"
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    However it appears that no playlists or any other info such as ratings/last played etc will transfer.
    If this is important to you, you may want to use other options.
    There's Yamipod. This is a free program that transfers music and playlists etc from iPod to iTunes.
    Once the music from your iPod is in your new iTunes library, you can go about adding new music as you did previously.

  • I need to install a font on clients machine  please help....

    Hi
    My requirement is that i want to install a font on clients machine iam using jsp and how do i check if the font is already installed.
    Please help me 2 meet the deadlines.
    Thanks

    hi,
    If you are using english language and need other font to display something special character you have to provide link to the font file.
    else you have to write applet to install font on client machine. then there are other issues like you should have the applet signed.
    If you have seen some multiligual sites like japanese. those site use html encoding for that. like Shift_JIS. Due to this the browser sets that perticular font and shows the page. If the font is not installed then it connects to the download center and download the font and install the font.
    Thanks
    vivek

  • Error while compile client! Please help

    Hi everybody,
    I am new to J2EE. I hav got application server and client in the same computer.
    While compile client application to test the server part followint error is shown:
    28-Feb-2007 10:36:05 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3122"
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:161)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at bank._CustomerFacadeRemote_DynamicStub.createAccount(_CustomerFacadeRemote_DynamicStub.java)
    at bankaccountclient.Main.insertInfo(Main.java:55)
    at bankaccountclient.Main.<init>(Main.java:38)
    at bankaccountclient.Main.main(Main.java:78)
    Caused by: java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:199)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)
    at $Proxy22.createAccount(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
    BUILD SUCCESSFUL (total time: 4 seconds)
    Please let me know the solution of the error!
    And also if client and application server is in same mechine which interface must be used to talk client with session bean?
    Please help me!

    1) It looks like you have an error in JDBC configuration.
    The main string is "Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Check out JDBC connection pools and resources.
    2) If your beans and client there are at the same JVM you can use local interface, else use remote interface.

  • I made a mess of my admin accounts need to consolodate please help :)

    Hello so i've been having this issue with my main admin account... for about a year now there have been items stuck in my trash folder and safari crashes after a bit. i've taken my computer to apple store and they cannot fix they told me to reinstall OS with disk but when i try to do that it times out... out of frustration i created a new admin account and what do you know i do not have the same issues with the trash... so i copied all the mail folders, preferences and address books over but the passwords didnt follow... so i was only able to get mail on the accounts i could remember the passwords to... so i was using the other account and kind of going back and forth to the old account but now i'm having even more issues with the second account... my macbook pro is all kinds of screwy ...
    i need to consolidate the mail i have on both admin accounts... because i have to go back to using the main admin account and i want to transfer all the mail i've been receiving on the other account for the past 2 months to the old account.
    can someone please help?

    Ok so i figured out what to do (through lots of research and headaches) just thought i'd share my solution... i needed to consolidate two admin applemail accounts with the same email accounts and i forgot all of my passwords...
    # To back up Mail preferences (i only did this on my main admin account seeing as though the secondary had the same exact preferences). (i'd suggest also backing up addressbook info as well...)
    1. Create a uniquely-named folder on your desktop (or other favorite location- like an external drive). For example, you might call it "Mail Prefs Backups May152005" (adding a date is a good idea).
    2. Quit Mail if it's running.
    3. In the Finder choose Home from the Go menu.
    4. Open the Library folder.
    5. Open the Preferences folder.
    6. Copy the "com.apple.mail.plist" file to the folder you made in step 1 by Option-dragging the file. Don't remove the original file from its current location (this file contains your Mail accounts information).
    7. Close the Preferences folder.
    8. Open the Mail folder.
    9. Copy the "MessageRules.plist" file to the folder you made in step 1 by Option-dragging the file (this file contains your Mail rules).
    10. Copy the "SmartMailboxes.plist" file to the folder you made in step 1 by Option-dragging the file (you guessed it, this file contains Smart Mailboxes information).
    11. Finally, copy the Signatures folder to the folder you made in step 1 by Option-dragging the folder. (Your custom signatures, if you use them, are stored here.)
    #manually back up Mail messages (i first did a backup of the MAIN admin account on my external drive so that i made sure i didnt accidentally remove any files... then i manually went into each "inbox"/"outbox"/"drafts" of each account and added each email- emails here are only identified with a unique set of numbers and date/times in the info field- that was not in the MAIN admin account to the copy mail account located on my external drive -yes this was VERY tedious- also i had folders that i had to consolidate so i made sure i didnt miss those)
    1. Quit Mail if it's open.
    2. From the Finder's Go menu, choose Home.
    3. Open the Library folder.
    4. Copy the folder "Mail" to your backup location, such as a different volume or burnable disc. Important: Do not remove the Mail folder from ~/Library. If you're backing up to the same volume, hold the Option key as you drag the folder to make a copy instead of moving it (a "+" cursor appears).
    once i got all this i took all the files i copied/consolidated on my external drive and replaced all the original files in the new Admin account i created (I have to create a new MAIN admin account because the original main admin account is corrupt the second one also has some of the same issues because i was rushing through copying all of the plist/library files over without inspecting each...)
    NEXT
    * i forgot all the passwords to my email accounts...
    Keychains
    Keychains are located in your ~/Library/Keychains/ folder. To get to this file in the Finder, choose Home from the Go menu. Open the Library folder, then open the Keychains folder.
    i copied that file and backed it up on my external... also i opened it up and found all the passwords i forgot
    so this problem for me is solved...
    PS the KeyChain is AWESOME! i use firefox and none of those passwords are saved to the keychain but there is an addon password extractor u can export usernames and passwords from firefox with this addon and ad them to your keychain...

  • How to implement XP Cisco VPN client. Please help!!!

    Hi,
    I am trying to configure remote access for XP desktops using CVPN client software and a Cisco 805 router with IOS IPSec capable( authentication should be local). The remote desktops are behind adsl router wich does nat translations but allow IPSes passthrough.
    I have configured it but does not working.
    Can you please help me?
    Thanks in advance
    David

    Hi guys, Solved.
    This very useful link:
    http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Virtual%20Private%20Networks&topic=General&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1dd7d54c/0
    David

  • How to implement an independent static stub client ? Please, help

    Hi everybody!
    I'm using the jwsdp1.2 and i got the static stub tutorial client to test my webservice. It works fine! However, i tried to compile the client code separately and it didn't worked. The jvm can't find the webservice class. So, the questions are:
    - How to implement an independent static stub whithout the ant help?
    - How can the client get the endpoint to create the proxy?
    - Must I use any javax.xml.rpc interface (call or service maybe) to do the job?
    - Could anybody show me some sample code?
    Well, that's it. I'm waiting for some answer. Please, help me.
    Tks in advance,
    Rodrigo.

    Can you explain what you mean by "independent static stub" ?
    JWSDP Tutorial explains all the steps required to create a static stubs client and invoke the service. In addition, https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html#Scenario2 explains the detailed steps to achieve the same from command line.
    Hope that helps.
    Post your JAX-RPC related questions to [email protected] for a quicker resolution.
    Send an email to [email protected] to subscribe to the alias.
    Send an mail to [email protected] for a complete list of help commands.
    -Arun

  • Ipad says need "activation lock" PLEASE HELP

    I bought my ipad from a pawn shop last year. I restored it yesterday because I had a lot of storage on it. I'm trying to activate my ipad and it's not letting me. It is saying that I need to use the account that was set up with the ipad. I don't know what it was set up with because I bought it second hand. If I bring it to the apple store could they fix it? Please help!!!!

    No, there is nothing Apple can do for you. You will need the previous owner's account information, or you'll need to get the previous owner to remove the device from his/her iCloud account:
    http://support.apple.com/kb/PH2702
    If you can't reach the previous owner or he/she is unwilling to cooperate, then the device is now unusable by you.
    Regards.

  • Help needed with JDBC - please help! (newbie)

    hi all
    i m new to jdbc
    i have installed MySQL server on my winxp machine
    i used the command:
    mysql -p -u root
    Enter password: ****now when writing a prog i m getting a prob at this piece of code:
    Connection con=DriverManager.getConnection("jdbc:odbc:books","root","root");wot is wrong wid this code?
    please help......
    thanks in advance

    There are about 20 different things that could be wrong a this point; I'm not going to list them all. If you want specific help, you need to post specific information. This is usually done by posting either a stack trace from an exception, or a more complete section of code and a description of the problem and ALL the symptoms. You have all the information on what you've done, we have none of it.
    Instead of trying to diagnose whats wrong with your ODBC setup, I'm going to give you some strong advice; don't use ODBC with JDBC if you can avoid it, and with MySQL you can avoid it. It makes things simpler, less can go wrong, and you don't have to configure a DSN on every machine that you install the program on.
    To use "pure" JDBC without ODBC for MySQl:
    1) download the JDBC driver (you might already have this)
    http://dev.mysql.com/downloads/connector/j/3.1.html
    2) follow the installation instructions
    http://dev.mysql.com/doc/refman/5.0/en/java-connector.html
    In particular, make sure your classpath is set correctly
    3) Here's an example of loading the driver and establishing a connection
    http://dev.mysql.com/doc/refman/5.0/en/cj-connect-with-drivermanager.html
    Note the form of the connection URL,
    "jdbc:mysql://localhost/test?user=monty&password=greatsqldb"
    This is what an URL without ODBC looks like; there is no DSN, which means no DSN has to be configured.
    4) The MySQL database has some built-in security, to prevent malicious connections from outside computers. Solutions to that and other common problems are here:
    http://dev.mysql.com/doc/refman/5.0/en/cj-faq.html

Maybe you are looking for