What do I need to get started with JSP?
Dear All,
I would be grateful for a bit of clarification.
I want to do JSP and XML. I have installed SDK1.4 and jwsdp (on Win 2000), though I have been informed that all I needed was the sdk and Tomcat.
However, I see there is J2EE as well! Which seems to be the full bodied industrial application for managing distributed objects.
Am I on the right path in terms of my installation?
Are there any particular benefits of running jwsdp rather than just Tomcat?
Did people find the online java web services tutorial the best way of getting started (or am I using a sledgehammer to crack a walnut in terms of what I am trying to achieve?)
http://java.sun.com/webservices/docs/ea2/tutorial/index.html
Can anyone recommend any online info which would point me in the right direction?
Any comments much appreciated
Ivor
[888 byte] By [
ivorti] at [2007-9-19]

If all you want to do is jsp's, then the sdk and tomcat are plenty. They will allow you to connect to various datasources, and do all kinds of cool stuff. The WSDP is for developing web services. Running it gives you the ability to use jsp's, servlets, and to develope web services. Though, realistically, you can use any installation of Tomcat, as long as it has all of the appropriate J2EE api jars in the class path, to develope web services. A web service is simply a servlet that sends and recieves SOAP documents back and forth. To your client, it looks like its just calling a method on a local object, but the plumming is doing much more. J2EE is very cool. Using Tomcat is good if all you need to do is write some not-to-complicated jsp's and servlets. If you are looking to develope a more enterprise level, scalable, web based application, then you should be using J2EE api's like JTM, JTA, JDBC, EJB, JNDI, JMS, JavaMail, JAX, and many other J2EE api's. They allow you access to enterprise level sevices, and control. I used the WSDP tutorial to learn how to use Web services. I found it very informative. To some degree, it requires a good working knowledge of how server side java programming works, so if you don't have a good background in that, it might be somewhat challenging for you. Here's a thought for you. You could use an application server, like JBoss to do what you are trying to do. It would allow you to write simple application based off of jsp's and servlets. It would allow you to write web services. And it also is a J2EE application server. Also, it is open source and free. Go to www.jboss.org for more information. I have found this one of the best, most all encompassing java server solutions on the market. It uses tomcat as its servlet/jsp container, and it also give you local access to J2EE apis. This is a lot of information. If you where to tell me a little more about what you are trying to do, I might be able to give you more specific answer. What is it you are trying to accomplish? If you can tell me that, then I might be able to say, this or that would be the best way to go. Anyway. Happy Coding.
Nick.
www.mindoveradversity.com
>This is a lot of information.
Very much appreciated thanks Nick
> If you where to tell me a little more about what you are
> trying to do, I might be able to give you more
> specific answer. What is it you are trying to
> accomplish?
I've got a good foundation in Java and know Active Server Pages. First I want to get to grips with JSP and also multi formatting documents/output. From there I would like to create hosted applications with web front ends e.g. shopping cart functionality. I would like to be able to create a programme that could be sold to several different customers and hosted on my servers. (Or is it possible for the same application to provide the functionality behind several e.g. shops?)
Any more pointers very much appreciated.
Best wishes
Ivor
One more pointer I guess. If you are going to be doing a shopping cart, the most robust way to do it is with enterprise java beans(EJB). You can do it with JSP's, but it won't be as scalable as it would if you did it with EJB. Thats my only other thought. Happy Coding.
Cheers,
Nick
www.mindoveradversity.com
I think i was about in your situation 1 year ago. From ASP/CFM to JSP.
JSP is some sort of different from ASP etc. I suggest you go to Richard G Baldwin tutorial
(pls search for Richard G Baldwin) for JSP ,try setup the app server,then can move to servlet,
java bean and then ..EJB. Then you can try all the other fancy API including JAXM,JAXP,(XML etc)