• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Servlet Based Web Sites on internet?

 
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guyz.
I believe that there must be sites developed on servlet technology.But i didn't find any yet.Did you list some of those?
Bye.
Viki.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Given all of the J2EE servers by IBM, BEA and others, there are thousands, but there is no way to tell if a site uses Java - unless you happen to see a URL with a .jsp type.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think if a web site is developed in JSP then it has .jsp extension but what happen if a web site is purely developed on Servlet?.What extension does it have?.Another thing which i have to confirm is that, The web site developed on servlets will be more efficient(means fast accessing and opening at client end) than a web site is developed on CGI,Flash or on any other technology?,
Bye.
Viki.
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vikrama,
Someone correct me if I am wrong but I would be highly surprised if there were even one website that used pure servlets. The logistics of outputting all of the html with out.println would be terrible that is why jsp is such a good complement to servlets because static html can be developed much easier and you can use the MVC architecture with servlets. There might be a site out there that uses strictly .jsp's and servlets and so since the .jsp's are compiled into servlets anyway then that site would be in a sense purely servlet developed. Still, I bet even sites that utilize these technologies have some static html pages as well. As far as performance goes I do know that servlets are more efficient than cgi's because they can utilize lightweight threads instead of a full heavyweight process like a cgi would use.
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If a site is developed "purely" with Servlets the output will be HTML.
Look for use of action in HTML form declarations.
Obviously if you see:
<form action=\"/servlet/SomeServlet\ >
...
... form stuff
...
</form>
a servlet being called.
[ April 11, 2002: Message edited by: Michael Pearson ]
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another thought...
Like in my example above, Servlets are great at processing actions that require logic to determine the correct response to the user.
Unless you have a real good reason to implement EJBs you can use Servlets to realize busiess logic, JSPs for dynamic user content, and HTML for static user content.
My number one pet peeve is when client side scripting reveals business logic.
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both servlets and JSPs can be mapped so nobody that visits a site will ever know they're using servlets. I've seen servlets run as '.../something.cgi', as '.../page.html', and other odd combinations. The second one was interesting because a typical url looked like '.../page.html?name=index&id=5783951'. Obviously a static html page can't process parameters, so when I checked it out it turned out they were using servlets. I would never have known except for using Netcraft to determine the server vendor.
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gerry Giese:
Both servlets and JSPs can be mapped so nobody that visits a site will ever know they're using servlets.


I think most if not all commercial sites do this, which is why Vikrama is having such a hard time finding what he is looking for.
It could be a security risk to reveal the Control layer the way I described above in a commercial installation. I really don't think anyone worth their salt would implement a commercial system without using mapping the interface between the View and Control logic.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
We have been using servlet technology over the past year and it's great! Programming and web design is completely independent.
Feel free to visit http://www.pelican-shipping-cases.com as an example of a shopping cart designed primarily on JAVA servlet technology.
Best Regards!
Mike Cronin
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!,
I have developed a site which uses 100% servlet technology except a few pages in static HTML. There is no JSP at all. Please take a look at http://www.vikinsa.com and send me the comments.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vikinsa aggarwal:
Hi!,
I have developed a site which uses 100% servlet technology except a few pages in static HTML. There is no JSP at all. Please take a look at http://www.vikinsa.com and send me the comments.


recieved this exeption when trying to get entered in to vikinsa.com
Error: 500
Location: /servlet/homepage
Internal Servlet Error:
java.security.AccessControlException: access denied (java.io.FilePermission /home/jakarta-tomcat-3.3.1/logs read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
at java.io.File.exists(File.java:677)
at java.io.File.mkdirs(File.java:1110)
at org.apache.tomcat.util.qlog.Logger.open(Logger.java:166)
at org.apache.tomcat.util.qlog.QueueLogger.log(QueueLogger.java:116)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:165)
at org.apache.tomcat.core.Context.logServlet(Context.java:1131)
at org.apache.tomcat.facade.ServletContextFacade.log(ServletContextFacade.java:211)
at javax.servlet.GenericServlet.log(GenericServlet.java)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at homepage.init(homepage.java:34)
at org.apache.tomcat.facade.ServletHandler.doInit(ServletHandler.java:447)
at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:263)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:472)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
:roll:
 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for that. We are working on that right now. Please do check back and let us know.
Thanks.
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Uh, that's not a very good example, is it? I think the topic is still oriented towards commercial sites or large company intranets using servlets.
Some can be found here. There's a whole category list at the bottom of the page that has a lot of links. You still have to sort it to find servlet-based sites, but they all use Java in one form or another. There's more here, but it may just link back to the above.
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Forgot one. Caucho's Resin has a customer list that includes a few high-power names. Resin is awesome! I'd love to switch back to it from iPlanet, but if you don't pay a lot for a product, it must not be good, right? At least that's what most people holding the purse strings think, it seems like.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vikrama Sanjeeva:
I think if a web site is developed in JSP then it has .jsp extension but what happen if a web site is purely developed on Servlet?.What extension does it have?.Another thing which i have to confirm is that, The web site developed on servlets will be more efficient(means fast accessing and opening at client end) than a web site is developed on CGI,Flash or on any other technology?,
Bye.
Viki.



Hello Viki,
I think you mix several things you have to differentiate!
Servlets don't have an extension. There are pure server sided and deliver plain HTML content.
They are executet only on the server and have to be invoked via http (like a link to another side or an image).
To talk about performance you have to differentiate the two worlds again (client/ server).
Flash (for example)is executet on the client (browser).
Thus the performance depends an the power of the machine of the user and NOT on the webserver delivering the page.
But, of course since servlets are written in Java and running in a container (srvlet engine), they are much slower than pure CGI code written in C.
But mostly that's not the point.
Servlets are much much easier to maintain than compiled C code and you can access
the whole Java API for your server sided code.
Thats pretty comfortable (think of connecting DBs via JDBC for example).
Last but not least your code is platform independent and you can deploy it in e.g. Tomcat on Windows as well as on Linux/Unix - great huh?

Greetings,
Mark
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Eric Peterson:
Someone correct me if I am wrong but I would be highly surprised if there were even one website that used pure servlets.


Unfortunately, this isn't always true. Some older sites are built with technologies that only used servlets. Often, the companies that originally made them either don't have the money or the time (or both) to update those applications to use servlets and JSP. So, if you look hard enough, you can find some that are purely servlets. Identifying them, however, might be pretty difficult.
Corey
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vikrama Sanjeeva:
Another thing which i have to confirm is that, The web site developed on servlets will be more efficient(means fast accessing and opening at client end) than a web site is developed on CGI,Flash or on any other technology?,
Bye.
Viki.


Don't get server side and client side technologies confused. In fact, you can easily use both. Often, sites that combine server side and client side technologies are some of the best sites out there. There are certain things that each one does well - using them both for their respective strengths can really benefit a site. Why couldn't you have a servlet send back am HTML file that contains a Flash swf? In fact, you could probably develop a site that uses a servlet/JSP architecture that shows the client nothing but Flash.
One of my pet peeves (as a Flash hobbyist) is the notion that Flash is slow. It's only slow if you don't use it properly. Flash contains gobs of tools to handle bandwidth and downloading issues, including monitors that simulate performance on various bandwidths. The only reason Flash is generally seen as slow is because many people don't use it's technologies properly. Sorry to get sidetracked, but, like I said, it's one of my pet peeves.
Corey
[ April 23, 2002: Message edited by: Corey McGlone ]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic