aspose file tools*
The moose likes Servlets and the fly likes To identify which websites are made using java technologies such as servlets and jsps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "To identify which websites are made using java technologies such as servlets and jsps" Watch "To identify which websites are made using java technologies such as servlets and jsps" New topic
Author

To identify which websites are made using java technologies such as servlets and jsps

Nikhil Salodkar
Greenhorn

Joined: Jul 15, 2011
Posts: 5
Hello friends

I wanted to know the way for identifying which websites are made using servlets and other java technologies- which are used to build webapps.
For example we can tell a website is using php by looking at its extension.

It would also be great full if you provide examples of powerful webapps which are using java technologies.

It would feel great to know that our favorite java is holding a very important position on the net.

Thanks


OCJP 6
Stoian Azarov
Ranch Hand

Joined: Jun 01, 2011
Posts: 113
Hi Nikhil,
I don't have an answer to your question, but I just thought about the issue: if you can be sure that a site is written in php if you look at t *.php endings in the address bar.
I suppose that this method is not the best way to detect the technology used by this web application because you can write servlet application and map it to *.php requests.
Of course this will be very stupid thing to do and I doubt if anyone will ever use it.
I too would be interested to know the answer to your question: how to detect the technology of and web application.

Regards
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 191

Just like Stoian mentioned there is no way to identify in the URL because different Java technologies can use any url patterns therefore there is no way to have a static constant for it.

The only option would be with those sites that keep the url pattern by default, such us, *.do for Struts, *.jsf for JSF and so on, but that's not a thumb rule.

Remember this is HTTP request/response so the browser only receives HTTP with Javascript.

Well, if the application has a bug and appears a Java stacktrace also could be a way to identify, but also that can be emulated it

http://devwebcl.blogspot.com/
Nikhil Salodkar
Greenhorn

Joined: Jul 15, 2011
Posts: 5
If there is no good technique to identify which technology is behind the development of webapps then how will anyone be able to conduct a survey of which is
the hottest, mostly used technologies for web development today. Now we know that LAMP, Java and asp.net are in competition.

How can we know that which is going up and which is going down.

Is there a way to check on what server the app is running? then maybe we will be able to know the technology behind it.
Pankaj Kumarkk
Ranch Hand

Joined: Apr 17, 2011
Posts: 109
Hi Nikhil,
I think there is no way to find what technology stack is used behind a web app. Guess that is the reason the big consultancies get paid so much for doing surveys.

Thanks,
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 539
    
    7
Nikhil Salodkar wrote:If there is no good technique to identify which technology is behind the development of webapps then how will anyone be able to conduct a survey of which is
the hottest, mostly used technologies for web development today. Now we know that LAMP, Java and asp.net are in competition.

How can we know that which is going up and which is going down.

Is there a way to check on what server the app is running? then maybe we will be able to know the technology behind it.


There is no perfect technique, but it's possible to infer some information.

The 'Server' header in HTTP responses, for example, usually contains which web server / servlet engine is being used.
For example, when I dump chrome://net-internals in Google Chrome, I find that linkedin.com HTTP requests are being served by "Apache/Coyote" which is the Tomcat servlet engine.
Similarly coderanch.com is serving static content from server "Apache", and forum pages from server "Apache/Coyote". So it looks like coderanch.com uses Apache httpd in front of Tomcat.
And Google.com is apparently using some kind of inhouse servers named GFE/GWS.

However, this doesn't work always. It's possible to configure in both httpd and Tomcat (and I expect in all other server software), the string to send in 'Server' header. Most sites don't do this, but it makes sense for security sensitive sites, to avoid giving any clues to crackers.

Another way to infer is to enter some random URLs until you get a 404 error or servlet exception. Badly configured sites will then display the complete server information (and a bit more!) like this
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

or worse, display the entire java exception stack trace!

Which technology is being used is more difficult to find out.
Some software like Wordpress PHP CMS have a set of typical URL paths in their link tags - like "wp-content/themes/...." - which give a clue that they're running on Wordpress.
Viewing Coderanch forum page source tells us they're using JForum framework.

So it's possible to infer some information using such heuristic techniques.
Nikhil Salodkar
Greenhorn

Joined: Jul 15, 2011
Posts: 5
Thanks to all for your replies

I learned many new things
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To identify which websites are made using java technologies such as servlets and jsps