开发者

Should I learn Java before JSP?

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?


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)


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:

  • Java web development, what skills do I need?
  • How to avoid Java code in JSP?


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜