struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Raible" <>
Subject Detecting browser on the server side
Date Tue, 13 Nov 2001 04:32:47 GMT
Does anyone know if it is possible to perform the equivalent Javascript
function below on the server-side?

<script language="Javascript" type="text/javascript">
	if (document.getElementById)
		// This is a standards' compliant browser

Also, I'd like to identify if the browser will accept text/xml - should I
just check the header for this?

What I'm trying to do is write a tag library that will detect (1) if the
user's browser supports HTML 4.0 (javascript function), and (2) if the
browser will render xml.



View raw message