• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Javaranchcommon for servlets

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i have just handed in my first servlets problem and have hit a little cattledrive/work conflict. I am at the moment trying to learn all about servlets and JDBC for a project at work that i have been set, and praised my stars when i saw it was next up on the cattledrive and so thought that by doing servlets-1 it would help me on my way (which it still did).
However with servlets-1 i am using the javaranchcommon.jar file which is very good however it doesn't really help me with my problem at work where i can not implement this file(as it is not produced by us and where everything is supposed to be done from scratch + plus it has more than is needed).
My problem is that i need to learn how to write a servlet from scratch, and am instead trying now to adapt my NowServlet so that i can use it at work by adding in all the doGet() and doPost()'s. Is there a some code available (apart from picking apart the LogServlet that is a workaround from the javaranchcommon file that we could perhaps also get hold of so that all programs that use javaranchcommon could be altered so as not to use it. So that after we have the answer we can just add in the necessary code to each program which uses it so it can be a stand alone program.
I think i said what i meant to say :roll:
Thanks
[ May 15, 2002: Message edited by: Sam Tilley ]
I have actually worked my way around what i was trying to do (it wasnt even that hard) but my question remains, is using javaranchcommon designed to
# make things easy for cattledrivers,
# be used by programmers where-ever to show good resuable code
# all of the above
# none of the above
[ May 15, 2002: Message edited by: Sam Tilley ]
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the JavaRanchCommon library greatly reduces the learning curve for Servlets. You are completely shielded from a lot of tricks until Servlets-5.
The way the Servlet exercises build on each other reinforces Servlets concepts. By the time Servlets-5 is reached a student is capable of creating approximately 300 cumulative lines of code between 4-5 classes. That's pretty cool.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sam Tilley:
... my question remains, is using javaranchcommon designed to
# make things easy for cattledrivers,
# be used by programmers where-ever to show good resuable code
# all of the above
# none of the above


Yes. See on this page it says, "This is a collection of classes that I use for a variety of projects I work on. You are welcome to use any of these yourself." and in the javadocs it says, "Copyright (c) 1999-2000 Paul Wheaton
Copyright (c) 1999-2000 EarthWatch, Inc.

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ... "
One instance of this quote

All of the above.
reply
    Bookmark Topic Watch Topic
  • New Topic