943,724 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 1510
  • Java RSS
Jul 13th, 2007
0

Writing Servlets (Maybe)

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suriname0 is offline Offline
10 posts
since Jun 2007
Jul 13th, 2007
0

Re: Writing Servlets (Maybe)

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
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jul 13th, 2007
0

Re: Writing Servlets (Maybe)

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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suriname0 is offline Offline
10 posts
since Jun 2007
Jul 13th, 2007
0

Re: Writing Servlets (Maybe)

"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
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jul 13th, 2007
0

Re: Writing Servlets (Maybe)

Click to Expand / Collapse  Quote originally posted by suriname0 ...
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/
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Jul 13th, 2007
0

Re: Writing Servlets (Maybe)

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
suriname0 is offline Offline
10 posts
since Jun 2007
Jul 17th, 2007
0

Re: Writing Servlets (Maybe)

JSP is more difficult than PHP, you may want to try other options
Reputation Points: 21
Solved Threads: 7
Junior Poster in Training
ProgrammersTalk is offline Offline
83 posts
since Jun 2007
Jul 17th, 2007
1

Re: Writing Servlets (Maybe)

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.
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: First Attempt at Arrays
Next Thread in Java Forum Timeline: Help implementing a binary search tree in Java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC