permaculture playing cards*
The moose likes Servlets and the fly likes JSP API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP API" Watch "JSP API" New topic
Author

JSP API

mrsmithq
Greenhorn

Joined: Aug 17, 2001
Posts: 8
I know JSP is mainly java, but is there a seperate API?
I am looking for a function that can detect a user's Browser Type.
Jeff Sunder
Ranch Hand

Joined: Jun 26, 2001
Posts: 47
You need to check the http headers to determine the browser type. Here is a little script that works for me
<%
//determine browser type
if (request.getHeader("USER-AGENT").indexOf("MSIE") >= 0) {
//Your code here
}else{
//Your code here
}
%>
 
jQuery in Action, 2nd edition
 
subject: JSP API
 
Similar Threads
built a program that can directly run in the same page
Where to find javax.servlet.jsp package?
JSPAPI
uml of api
good material on api