Java EE (J2EE) Tutorial for beginners Part7

preview_player
Показать описание
Java EE (J2EE) Tutorial for beginners Part7: Spring Framework + Spring Webflow + Spring Security + JPA (Hibernate) + JSF 2.0 (PrimeFaces) + Apache Maven 2 + Apache Tomcat + Subclipse + Oracle RDBMS + Eclipse IDE
Рекомендации по теме
Комментарии
Автор

Amazing series.Very helpful and nicely put. Keep up the good work!

pompeez
Автор

really helpful for me before my knowledge in J2EE is zero.Easy understanable.Masallah :-)

afifasultana
Автор

thank you, i hope you don't give up very good work

selmi
Автор

Very Nicely done! Works smoothly...

Many Thanks!

venkatramanmn
Автор

thank you for the time you put in this tutorials...
they Are really helpful

daraLorelai
Автор

if we want to forward servlet to index.jsp at first we must use:

||

because at very first beginning firstname and lastname are null. after forwarding if we submit when the fields are blank. now firstname and lastname are not null they are just empty strings. like this -> ""

the most correct way is first null check for first run of application and then equals("") check for blank submits.

utopcu
Автор

Hey man i realy need to say thanks for this awesome tutorial !

glrk
Автор

I've changed some lines, because the check of null values doesn't work on my Server:

String name = request.getParameter("name");

if ((name==null) || (name.isEmpty())){
getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
return;
}

PaoloGuagliumi
Автор

We will define OracleDataSource bean with URL, user and password properties..., and pass dataSource reference to Spring's entity manager factory bean so that JPA and hibernate takes care of data source pooling. That will be in one of the next videos.
If i'll have enough time I will show how to use JNDI resources for that purpose. Let's say if there will be enough interest from public, I'll try to find some time.
But if you are talking about Servlets&JSP case - that won't be covered in that tut.

arthurvin
Автор

i didn't get it to work in the conditional statement : 
||

then i changed null with "" and it works ^^
so thanks man

mouradici
Автор

Great videos! Will you be uploading the code somewhere?

TheBzonga
Автор

Years of JavaScript hardcoding forces me to share this advice width you:
in OOP, if you want to check if a String is !=null, just do:

  if( string.length()>0 )   // do something.
  else   // gfy.

So, in our case, this tip would translate to:

  if(  ||  ) {
   // gfy.
} else {
   // do the output
}

redsanso
Автор

Hello Art, great stuff so far. Quick easy question in your example here why are we moving stuff in the request from getParameter to setAttribute in the servlet? In the output.jsp you can just grab from getParameter directly (both are in request after all) and access within scriplets. It would make more sense if we were grabbing from request and setting in session object. Thanks Man

lungolago
Автор

ahahah Duncan Mcloud :D
HIGHLANDEEEER! YEAH! :D
awesome :D

TheNacami
Автор

Nice job. I have two questions:
I did not understand why you tested for null.
What is the point of getting parameter from request and seting to the same value again?

stillalive
Автор

Perfect!! Thanks for the explanation :)

Adarsh
Автор

Hi Arthur,

Great videos and you are an excellent tutor. I really enjoy your videos. In part 4 video, you have selected the tomcat runtime environment from c:\Program Files. However, the downloaded tomcat was extracted in C:\J2EETutorial folder. Is this a mistake or am I missing something?

pnbalaji
Автор

Hey... Where are the other videos...? Waiting for the other videos...

nischintr
Автор

will you publish the code pls? i do not get first and lastname after submit, but if i run the output.jsp i get back the h1 text and null null

danielkovacs
Автор

This will work:

== null || == null || || {

setting it == "") will forward it to output.jsp, so the above answer will do the trick

jeremyadriandevera
join shbcf.ru