Java Video Tutorial 43

preview_player
Показать описание

Here is part 1 of my Java Server Pages video tutorial. Unlike Java Servlets a JSP file allows you to easily co-mingle HTML, JavaScript and Java code all in one file. You do that by placing different types of Java code in special brackets.

It sounds harder than it is and after this video you'll be writing your own JSPs.
Рекомендации по теме
Комментарии
Автор

Thanks Derek! I was planning to start programing websites with JSP instead of PHP.

Your video helped me showing JSP in practice! It was like a kicking start.

accountnick
Автор

print outputs the information without skipping to the next line. println skips to the next line. That is how they differ. Yes JSP is for server related functions. I was just demonstrating different ways you can use it. I didn't get heavily into the web side of java because it would require about a hundred videos to cover the right way. I plan on covering it in the future after I finish with programming Android with java

derekbanas
Автор

Yes you don't need System. Sorry about the confusion. In my opinion most of the time there is no downside to using php over java server side as long as the program isn't very complex. This is a judgement call and many people will have different opinions based off of the past experiences. One negative is that Java can be more expensive to use hosting wise. Normally I end up using PHP for that reason alone.

derekbanas
Автор

Sorry, but I haven't covered them in detail yet. I'll do it ASAP. I don't watch other peoples videos because I don't want to be influenced

derekbanas
Автор

Hello Switzerland :) I may be silly, but I'm still amused by the fact that people all over the world are watching my videos. I think is has something to do with the fact that I've never traveled and I barely leave my house. I definitely plan on covering spring, hibernate and other topics in reference to JEE. I got diverted into making Android tutorials for now, but I may have to cover some JEE topics for my Android tutorials. Thank you for the request

derekbanas
Автор

dts grt.. hope ull soon make a jsp series

sakshigarg
Автор

It should be though. Your videos are awesome!

noobian
Автор

Hi Derek, I've a few questions: 1) How come you use out.print? I thought in Java it needed to be system.out.println?
2) Also, in the example you add two numbers together; would you not do that in Javascript? I had a preconception of JSP that it was more for fetching results / methods etc from the backend and displaying them to the front end, is that wrong?
3) Since you only have one JSP video does that mean it's not worth using? Do you use PHP instead?
Thanks

risteardob
Автор

That's not hard to do with my videos :)

derekbanas
Автор

Ok thanks Derek, my first question referred to the lack of System, I thought in needed to be System.out.print as opposed to out.print.
Regarding JSP and PHP are they interchangeable? Would you ever use PHP to link / retrieve from a java back end? So for someone who knows java should you stick to JSP or is PHP better?

risteardob
Автор

In video description, you said it is Part 1, so is there part 2?

johnnybatafljeska
Автор

Hi Derek,

I wanted to know, do you have (or know of) a tutorial in which how to use multiple servlets is explained? I am having a hard time piling all the functionality in just the one servlet?

Thanks.

virajhardikar
Автор

Seconde, still one place on the podium !

MusicalSawMen
Автор

I have a question. Is there a way to turn input in a text area into a string? I tried
try

{

Area1 =

}
with Area1 being my text area and input1 being my string. Thank you for your help.

hannessolo
Автор

Hi Derek

Thank you very much for these tutorials, I really like them.

Question: I get this error when I run my calculate.jsp --> "Server Tomcat v7.0 Server at localhost failed to start" I tried to look  for help in google, couldn't get a solution. 

do you have a solution to this?

MrSpidjo
Автор

oooohhhh... minecraft modding tutorials if you can please :) :)

FraserKillip
Автор

where is the part 2 of your JSP tutorial ?

invinciblekd
Автор

it would be awesome if you could make a bigger project like an online banking system with java ee and spring (especially with your experience in this business). "Arthur vin" is doing something like that right know on YT, but honestly I like your way of explaining things better (not that he's bad).
greetings from switzerland :)

sgwuerzbubi