Where to learn JSP

I need to learn JSP, but I'm not a programmer where should I start?

[75 byte] By [mikes1212a] at [2007-11-27 11:15:01]
# 1

I suggest reading a book on XHTML since JSP builds on your knowledge of that. One book is 'XHTML, the definitive guide"

JSP assumes you either have knowledge of Java, java servlets, and creating a whole web site. If you dont, then in order to use JSP, you need to be on a team with people who do and will write the underlying java code for you, where you will be restricted to creating the GUI front end. They will also have to show you how to display the java objects they provide for you on the JSP page.

Personnaly, I think you should not mess with JSP until you learn Java. You should be a good web designer in about 3 years if you study hard and work through various book examples.

George123a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I am a Forms Designer (Adobe Acrobat) for a credit union, and I was just hired by our Lotus Notes Domino folks to develope forms using BEA AquaLogic. The hiring manager says that he wants me to start with working on the front end of things. He wants me to learn Java, but not right away. Instaed he wants me to begin with JSP pages. I hope he will allow me to have Dreamweaver as one of my tools for forms developemnt.

I have little programming experience even with the 200 or so Acrobat eFroms I have developed; which contain a fair amount of Javascript for added functionality. I am a graphic designer of sorts b/c I work with Quark Express, Adobe illustrator and Photoshop. So this will be quite a jump to the other side!

I looked on Amazon and they have "HTML & XHTML: The Definitive Guide (6th Edition) by O'reilly." What about a book like "Java for the Web with Servlets, JSP, and EJB: A Developer's Guide to J2EE Solution, by New Riders?" Would this be too advanced?

Michael

mikes1212a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

If you have a java web developer, you can work with him, dividing the design process into the front end (thats you), and all the backend (that's him). This will work well if he follows a separation of concerns design where no business logic is put into the JSP page (it shouldnt). You dont need to know a lot about java, and you should be able to get a fair amount of useful info out of a JSP book if you concentrate on its ability to create the GUI and not too much on the java issues. Keep away from servlets and especially EJB, its advanced info for java programmers only. Also keep away from discussions on J2EE. J2EE is a discusson of all the technologies (EJB, servlets, xml, etc) that go into making up a web site. I book I'll recommend is 'web development with java server pages' by manning. My copy is pretty old, but it sticks with JSP discussion mosty and not too much java.

I would still suggest buying XHTML definitive guide' as a reference for what various tags do and what thier attributes are. If you buy on-line (amazon.com) its much cheaper. Good luck!

George123a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Use online, the very best resource and develope your jsp using IBM Websphere/RAD tool. You will learn things very easily.

skp71a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

1- http://java.sun.com/products/jsp/docs.html

2- http://courses.coreservlets.com/Course-Materials/csajsp2.html

java_2006a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

Hi,

Refer Complete Reference basically and learn other books via online itself, lot of good books available for jsp ,

whatever it is, with out practical you cant improve your skills, so side by side do more on jsp

drvijayy2k2a at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7

1- http://www.visualbuilder.com/jsp/tutorial/

2- http://www.roseindia.net/jsp/usingbeansinjsp.shtml

Vansha at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8

That roseindia article is funny. The introduction is OK, but when it comes to real code ...

public boolean connect() throws ClassNotFoundException,SQLException {

Class.forName(dbDriver);

dbCon = DriverManager.getConnection(dbURL);

return true;

}

When does it return false? What's the benefit of returning true?

public ResultSet execSQL(String sql) throws SQLException {}

Passing Statements or ResultSets around as parameters or return types is bad design.

The code also doesn't close the connection, the statement, nor the resultset in case of exceptions, which causes memory and resource leaks.

And this is also funny:return (r == null) ? null : r;

they explained it as:

What this statement does is that, if the value of r is null, it returns a null value and if it is a non null value, it returns the value of r. Though this statement seems redundant, it is useful for preventing any errors that might occur due to improper value being set in r.

So, if r is null, then return null .. What's the difference between null and null?

The same applies to:return (r == 0) ? 0 : r;

Further on there is no clear separation in the code. The "data tier" is spread over the "bean" and the scriptlets. Yes, scriptlets.

Bad article.

BalusCa at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9

The best solution is to buy the Head First Book for JSP and Servlet. It is lucid and the best for learning JSp's

DhurjatiCa at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 10

Agree, the books written by Bert Bates and Kathy Sierra are very pleased to read.

http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596005407

BalusCa at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 11

Hi is it all possible to develop an online chat using Jsp and Ajax. my understanding is Jsp loads only once when the page initially loads. if it is possible how then do the messages get loaded or distributed server side. please help if you can. thanks

trymorechirume@unia at 2007-7-29 14:10:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...