File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP API

 
mrsmithq
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
}
%>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic