tags:

views:

134

answers:

6

I have the opportunity for a new job in which I'd be moving from PHP to JSP. I've done a little java in the past but am just wondering if I should revise my java knowledge before attempting to learn JSP?

+1  A: 

Not necessarily. JSP should not contain any line of raw Java code. But you'd like to learn Java before learning Servlets. That is where you write Java code in.

See also:

BalusC
+1  A: 

I hardly come across projects based only on JSP, mostly the servlets are pure java code and some logic is implemented in the JSPs for tables, ..

Refreshing java-knowledge for pure JSP projects is always a plus, but not necessary.

Molske
thanks I think I will refresh my knowledge
iamjonesy
+4  A: 

If you are going to write business logic too (not only views in JSP), then knowing the Java language is required.

On the other hand, if somebody else codes all the business logic for you, and all you are left with is objects injected into your JSP, you might get away with just using JSTL alone to control the formatting of your views. (i.e, no scriptlets in your views)

Bakkal
Thanks Bakkal! I think as a minimum I'm going to get my existing knowledge back up to scratch
iamjonesy
+1  A: 

For simple scripts, it's not necessary. But if you want to do something more complex, you are going to need servlets and others java classes, so you are going to need learn Java.

Angel Aparicio
A: 

Yes you need to work on your java basics as some times you need to take help from core java classes as per requirement.

JSP is not same like PHP. most of the frameworks of the jsp or J2EE are using POJO (Plain Old Java Objects) which are need to written in core Java classes.

I had worked on PHP for 2 years now working on Java. Mainly on core java is as much useful in JSP programming.

For playing with forms you no need to have Core Java competency. But for Enterprise Solutions you require it.

Ashay
A: 

Hi,

I guess this link would help you.

http://stackoverflow.com/questions/1480481/java-ee-technologies-after-learning-se/1480504#1480504

Kalpak

Kalpak