| | |
Writing Servlets (Maybe)
Thread Solved |
•
•
Join Date: Jun 2007
Posts: 10
Reputation:
Solved Threads: 0
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.
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.
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
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
"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).
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
•
•
•
•
Also, it looks confusing. I'll give a pre-emptive sigh for the dozens of questions on this forum...
http://www.jsptut.com/
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
Hang out place of novice and intermediate programmers
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
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- Servlets and HTML (HTML and CSS)
Other Threads in the Java Forum
- Previous Thread: First Attempt at Arrays
- Next Thread: Help implementing a binary search tree in Java
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program programming project recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows






