aspose file tools*
The moose likes JSP and the fly likes help getting started with JSP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "help getting started with JSP Watch "help getting started with JSP New topic
Author

help getting started with JSP's

Thomas Whalen
Ranch Hand

Joined: Aug 26, 2001
Posts: 123
i am extremely new to JSP's. i have to be able to find simple, straight-forward, accurate tutorials on coding HelloWorld examples in JSP and Servlets on Tomcat 4.0 all the tutorials talk about putting bean files there, some jsp files here, some jsp files there. just not very helpful.


if you don't know, then ask. if you do know, then share. love is knowledge.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Are you jumping into JSP without understanding servlets first? I don't advise that approach - understand servlets first. It is also handy to download the servlet and JSP API documents from java.sun.com for reference.
Bill

------------------
author of:
Thomas Whalen
Ranch Hand

Joined: Aug 26, 2001
Posts: 123
yes, you are right. i am trying to use JSP without any prior knowledge of Servlets. perhaps Sun (or whereever i have seen those reviews on JSP/Servlets) could change their reviews to say that ASP is easier to use for most of the things that JSP can do? anyway, I am curious as to why I need to know how to work with Servlets before I work with JSP, since the JSP page is what you come to first in web interaction (as the user), that you don't need to use Servlets for everything. right? Please correct me if I am wrong.
vivek sivakumar
Ranch Hand

Joined: Aug 09, 2001
Posts: 187
well its not necessary to start with servlets , while jsp is just a extension of servlets or easy form for servlets , while jsp uses servlets but absolutely in a easier way so its better if u start using jsp .. may be u can use a servlet book to refer some method names etc which are used in jsp.. but starting jsp right a away does not impact in any way.


SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Thomas Whalen
Ranch Hand

Joined: Aug 26, 2001
Posts: 123
i noticed right away that JSP is not like ASP. i tried extracting a form value by using the 'Request.Form(VariableName)' method. it didn't work, and threw a ton of exceptions which i know nothing about. the only thing i could gather from the error messages was that FName and LName were declared in my form, but that they apparently are not sent through the HTTP string in the same way as ASP ???
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I am not sure if you have a JSP/Servlet book. Any book on both of them would have described how to retrieve form values. It's request.getParameter, request.getParameterValues, and request.getParameterNames. Which one you use depends on what you are trying to retrieve. Check the API or any of the several books out there.


------------------
Bosun
SCJP for the Java� 2 Platform


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
vivek sivakumar
Ranch Hand

Joined: Aug 09, 2001
Posts: 187
well i even had the same problem ,( well infact its a bug in tomcat if your are using it as ur container or might be if u use sendredirect process), i got rid of the error by using another form and then getting the values by request.getParameter, be careful about send redirect or just change the forms name (senseless but once it worked for me!!!) good luck!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help getting started with JSP's