A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to figure out what kind of page I am ckecking ?
Joined: Apr 23, 2009
Apr 28, 2009 18:01:27
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 ?
Joined: Jan 28, 2003
Apr 28, 2009 18:32:40
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.
Joined: Oct 27, 2005
Apr 29, 2009 01:26:59
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
, 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
, 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:
subject: How to figure out what kind of page I am ckecking ?
Practice exam on Sun's website
How to do
Axis BSFProvider, anyone?
Should Actions access EJBs ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014