Writing Servlets (Maybe)

Thread Solved

Join Date: Jun 2007
Posts: 10
Reputation: suriname0 is an unknown quantity at this point 
Solved Threads: 0
suriname0 suriname0 is offline Offline
Newbie Poster

Writing Servlets (Maybe)

 
0
  #1
Jul 13th, 2007
I have a current (non-school) project that requires me to update text-files online. (Or at least store data.) I think I need to write a servlet, but am not sure how, and I don't have a good source to teach me. (I tried Applets, but those can't read and write.) If someone could direct me towards a good tutorial, or explain the basics of the doPost() and getPost() methods (Is that what I need?), and how those can be interacted with via a URL Connection, that would be very much appreciated.

Please keep in mind that I am a relatively new, self-taught Java programmer, so some concepts may be over my head. Any help would be appreciated.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Writing Servlets (Maybe)

 
0
  #2
Jul 13th, 2007
Try starting with Sun's J2EE tutorial trail:
http://java.sun.com/javaee/5/docs/tutorial/doc/

There is a lot of information there. Specifically you will want to focus on basic JSP and Servlets. Take a look through those and perhaps Google "JSP servlet tutorial" for some extra info. If you have specific questions that you can't seem to get past then feel free to post them here for help
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 10
Reputation: suriname0 is an unknown quantity at this point 
Solved Threads: 0
suriname0 suriname0 is offline Offline
Newbie Poster

Re: Writing Servlets (Maybe)

 
0
  #3
Jul 13th, 2007
Short of having no idea what "Enterprize Edition" is, thank you. That looks like an excellent source. Also, it looks confusing. I'll give a pre-emptive sigh for the dozens of questions on this forum...
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Writing Servlets (Maybe)

 
0
  #4
Jul 13th, 2007
"Enterprise Edition" is just the name they gave to their collection of classes for web and "enterprise" services. They are separate from the Standard Edition (regular) java classes and require an application server (somewhat like a web server) architecture for their use. Tomcat is one such server that allows you to interact with servlets and JSP pages. It can be used by itself or integrated with a web server such as Apache.

In the section "About The Examples" (http://java.sun.com/javaee/5/docs/tu...5.html#wp87965 ), you will find links to download all you need to get started: J2SE, J2EE, and Netbeans (an development tool to write, deploy, and test your code).
Last edited by Ezzaral; Jul 13th, 2007 at 2:41 pm. Reason: added info about examples
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Writing Servlets (Maybe)

 
0
  #5
Jul 13th, 2007
Originally Posted by suriname0 View Post
Also, it looks confusing. I'll give a pre-emptive sigh for the dozens of questions on this forum...
Yes, there is a lot of info in the Sun tutorial and that volume might actually a bit harder to understand the bare basics. You may want to look at this info first to get a quick take on the basics of JSP:
http://www.jsptut.com/
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 10
Reputation: suriname0 is an unknown quantity at this point 
Solved Threads: 0
suriname0 suriname0 is offline Offline
Newbie Poster

Re: Writing Servlets (Maybe)

 
0
  #6
Jul 13th, 2007
Thank you again. That tutorial was very helpful, and was even simple enough for me to understand.

Also, thanks for the links to the downloads. I'm sure I can figure it out from here. (And if not, you'll hear from me...)
Last edited by suriname0; Jul 13th, 2007 at 9:54 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 83
Reputation: ProgrammersTalk is an unknown quantity at this point 
Solved Threads: 7
ProgrammersTalk's Avatar
ProgrammersTalk ProgrammersTalk is offline Offline
Junior Poster in Training

Re: Writing Servlets (Maybe)

 
0
  #7
Jul 17th, 2007
JSP is more difficult than PHP, you may want to try other options
The ProgrammersTalk Community | Programming & Marketing | Buying & Selling Script
Hang out place of novice and intermediate programmers
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,188
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 482
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Writing Servlets (Maybe)

 
1
  #8
Jul 17th, 2007
In your case I will stay on the forum which you so strongly promote and improve it as it is dreadful...
Either provide help as requested or don't say anything
Last edited by peter_budo; Jul 17th, 2007 at 7:17 am.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC