Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Easiest & Fastest Way to Make Servlet  (Read 982 times)
0 Members and 2 Guests are viewing this topic.
Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« on: 2012-01-19 23:53:57 »

Yes, it's somekind of homework. Geez I'm only interested in game project Grin So without considering my future skill on J2EE development, what is the easiest and fastest way to make/learn servlet for noob?

Thanks.

Offline ra4king

JGO Kernel
*****

Posts: 3153
Medals: 196


I'm the King!


« Reply #1 on: 2012-01-20 01:26:12 »

http://bit.ly/xngP0w

Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #2 on: 2012-01-20 09:48:56 »

I want to have some random chit chat or joke here but it's urgent :| although it's not real homework, so shortcut is allowed.

Spring didn't really help because I messed up with bean. There're other frameworks but many said to just use Spring cause it's powerful. I ended up with Jython, which look simple and become my choice now. However java's syntax is replaced by python's, result to more time for learn.

EDIT: this thread is google's first hit when I searched "fastest make servlet", I'm lose lol.

Games published by our own members! Go get 'em!
Offline gimbal

Full Member
**

Posts: 183
Medals: 11



« Reply #3 on: 2012-01-20 10:38:11 »

Read this to learn how to develop using servlet technology:

http://pdf.coreservlets.com/

That book is quite old, but the only thing that changed since then that is actually worth your time is that since JEE6 / servlet spec 3.0 you can configure servlets through a @WebServlet annotation in stead having to declare them in the web.xml file, which saves greatly on the annoyance factor.

http://www.servletworld.com/servlet-tutorials/servlet3/webservlet-annotation-example.html


As the server to test it on I would use either Tomcat 7 or JBoss 7; both are remarkably easy to setup and wicked fast.
Offline appel

JGO Wizard
****

Posts: 1477
Medals: 23


I always win!


« Reply #4 on: 2012-01-20 10:47:49 »

Check out Play framework.
http://www.playframework.org/

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline CommanderKeith

JGO Wizard
****

Posts: 1455
Medals: 9



« Reply #5 on: 2012-01-20 11:28:09 »

Read this to learn how to develop using servlet technology:

http://pdf.coreservlets.com/

That book is quite old, but the only thing that changed since then that is actually worth your time is that since JEE6 / servlet spec 3.0 you can configure servlets through a @WebServlet annotation in stead having to declare them in the web.xml file, which saves greatly on the annoyance factor.

http://www.servletworld.com/servlet-tutorials/servlet3/webservlet-annotation-example.html


As the server to test it on I would use either Tomcat 7 or JBoss 7; both are remarkably easy to setup and wicked fast.

Yes, core servlets is the way to go. This page in particular is what I've been learning from over the past few weeks:
http://www.courses.coreservlets.com/Course-Materials/csajsp2.html

I recommend using the Java EE edition of NetBeans with GlassFish. It comes as a nice easy to use package. Note that Window -> Services shows 'Servers' including the GlassFish server and you can right click it to close it if you want.

I think netbeans for java EE might also come with tomcat too which is lighter weight and more straight forward. For some reason my netbeans didn't come with it so i installed it with xammp...

Let us know if you're having trouble  Smiley

Offline sproingie

JGO Strike Force
***

Posts: 894
Medals: 55



« Reply #6 on: 2012-01-20 12:45:51 »

The fastest way for a noob to make a servlet is to write a JSP.  Those are servlets.  That's probably not what an assignment has in mind, so the second fastest is to subclass javax.servlet.http.HttpServlet.

If your assignment is to create your very first servlet, I doubt you're expected to learn a framework.  Those will help you crank out complex web apps in a hurry _if_ you already know the framework.  Forget about frameworks.

Core Servlets is a great book, as is most of the Core series.
Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #7 on: 2012-01-20 23:31:46 »

Really thanks for all replies!

this assignment is to just create a web interface by extending HttpServlet to modify MySQL DB. Not hard actually, but it's so booooooring and seems repetitive. Also they always make senseless correction and ask for useless feature.

I'll take Core Servlets, and pay a visit to Play FM. Once again, thanks all!

Offline sproingie

JGO Strike Force
***

Posts: 894
Medals: 55



« Reply #8 on: 2012-01-21 12:38:54 »

Also they always make senseless correction and ask for useless feature.

That's real life programming assignments in a nutshell.   Roll Eyes
Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #9 on: 2012-01-21 23:58:47 »

Play! framework looks easy, I'll try that.

Also they always make senseless correction and ask for useless feature.
That's real life programming assignments in a nutshell.   Roll Eyes
Hehe yeah and it's not taste good. Indie better Wink

Games published by our own members! Go get 'em!
Offline gimbal

Full Member
**

Posts: 183
Medals: 11



« Reply #10 on: 2012-01-23 04:39:15 »

Really thanks for all replies!

this assignment is to just create a web interface by extending HttpServlet to modify MySQL DB. Not hard actually, but it's so booooooring and seems repetitive. Also they always make senseless correction and ask for useless feature.

I'll take Core Servlets, and pay a visit to Play FM. Once again, thanks all!

Play is awesome and I would recommend you to learn it when you need to get into Java web programming, but it stays far away from servlets so it doesn't really help you in this assignment Smiley
Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #11 on: 2012-01-23 21:07:11 »

Thanks! don't worry, they just said about java in web. Play! meets fully Wink

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.085 seconds with 19 queries.