Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
shahzama pathan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  •  
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic