You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Anil Umarji <An...@evolving.com> on 2005/07/15 22:15:08 UTC

osType is null



Hi,

Can you tell me as why i m the osType is NULL in below log file:

4.1.30/webapps/nm00/jsp/LogonData.jsp
2005-07-14 15:55:55         RequestURI: /nm00/jsp/LogonData.jsp
2005-07-14 15:55:55        QueryString: null
2005-07-14 15:55:55     Request Params:
2005-07-14 15:55:55                TimeZoneOffset = 4
2005-07-14 15:55:55                requestType = 1002
2005-07-14 15:55:55                passwd =
2005-07-14 15:55:55                userId = test4
2005-07-14 15:55:55                passwdExpired = false
2005-07-14 15:55:55                osType =
2005-07-14 15:55:55                srcPage = /jsp/Logon.jsp
2005-07-14 15:55:57 JspEngine --> /jsp/MainFrame.jsp
2005-07-14 15:55:57        ServletPath: /jsp/MainFrame.jsp

This is very sporadic & the majority of the times i do get a successful
osType:

2005-07-14 15:55:47     Request Params:
2005-07-14 15:55:47                TimeZoneOffset = 4
2005-07-14 15:55:47                requestType = 1001
2005-07-14 15:55:47                passwd = Test4!
2005-07-14 15:55:47                userId = test4
2005-07-14 15:55:47                passwdExpired = false
2005-07-14 15:55:47                osType = Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; HCI0431; HCI0445; HCI0527; .NET CLR 1.1.4322)

Following is the code where i m getting the ostype:

onSubmit="fillOS();

function fillOS()
{
        document.logonform.osType.value = navigator.userAgent;
        setCursor('wait');
}

I will appreciate your help if you can guide me & solve this issue.

Thanks.
Anil

  

This e-mail and any attachments may be confidential and/or legally privileged. If you have received this e-mail and you are not a named addressee, please inform Evolving Systems TIS at tis@evolving.com and then delete the e-mail from your system. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail. To ensure regulatory compliance and for the protection of our clients and business, Evolving Systems may monitor and read e-mails sent to and from its servers. Although Evolving Systems routinely screens for viruses, addressees should scan this e-mail and any attachments for viruses. Evolving Systems makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. 

Registered Office: 9777 Mt. Pyramid Ct Suite 100, Englewood, CO 80112

Re: osType is null

Posted by "Chris. Grobmeier" <gr...@possessed.de>.
>onSubmit="fillOS();
>
>function fillOS()
>{
>        document.logonform.osType.value = navigator.userAgent;
>        setCursor('wait');
>}
>
This is not tomcat related i would daresay, but it's easily possible 
(wtih firefox and opera)  to manipulate
the userAgent in the browser. Everyone could leave the browser 
identification empty.

Try
navigator.platform
too, if you want to get another chance to identify the os type of the user.

Chris.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org