aspose file tools*
The moose likes Beginning Java and the fly likes How to figure out what kind of page I am ckecking ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to figure out what kind of page I am ckecking ?" Watch "How to figure out what kind of page I am ckecking ?" New topic
Author

How to figure out what kind of page I am ckecking ?

shahzama pathan
Greenhorn

Joined: Apr 23, 2009
Posts: 2
When I visit a website, how to figure out whether its an html, jsp or asp ?

I looked at the view source, but was unable to figure that out. Is there anywhere in the source code does it say what kind of page is it ?

thanks
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

These technologies all reside on the server side, and all put out HTML code. It is this HTML code that gets sent to the browser. So no, as a client you can not tell what the server side is using reliably.


Steve
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

The extension may give you a hint (e.g. php, php3, php4 is PHP, asp is ASP, aspx is ASP.NET, jsp and jspx are JSP, htm and html is HTML), but that's not foolproof:
  • If your URL points to a "folder" and a default document is used, there is no extension
  • In servlet containers like Tomcat, mapping rules can map a URL ending in .html to a JSP file or servlet
  • Other forms of URL rewriting can do the same


  • SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
    How To Ask Questions How To Answer Questions
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: How to figure out what kind of page I am ckecking ?