Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #31463 > unrolled thread

Any good book/website with samples how to run Java in web applications?

Started bydffdfdfdfdfdfddf@gmail.com
First post2015-04-04 23:04 -0700
Last post2015-04-08 19:29 +0200
Articles 10 — 5 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Any good book/website with samples how to run Java in web applications? dffdfdfdfdfdfddf@gmail.com - 2015-04-04 23:04 -0700
    Re: Any good book/website with samples how to run Java in web applications? Arne Vajhøj <arne@vajhoej.dk> - 2015-04-05 13:27 -0400
      Re: Any good book/website with samples how to run Java in web applications? dffdfdfdfdfdfddf@gmail.com - 2015-04-05 13:58 -0700
        Re: Any good book/website with samples how to run Java in web applications? Arne Vajhøj <arne@vajhoej.dk> - 2015-04-05 17:19 -0400
          Re: Any good book/website with samples how to run Java in web applications? dffdfdfdfdfdfddf@gmail.com - 2015-04-05 15:39 -0700
            Re: Any good book/website with samples how to run Java in web applications? Arne Vajhøj <arne@vajhoej.dk> - 2015-04-05 19:08 -0400
              Re: Any good book/website with samples how to run Java in web applications? dffdfdfdfdfdfddf@gmail.com - 2015-04-05 17:41 -0700
                Re: Any good book/website with samples how to run Java in web applications? Martin Gregorie <martin@address-in-sig.invalid> - 2015-04-06 14:30 +0000
                Re: Any good book/website with samples how to run Java in web applications? Robbie Brown <rob@example.com> - 2015-04-08 13:59 +0100
        Re: Any good book/website with samples how to run Java in web applications? Robert Klemme <shortcutter@googlemail.com> - 2015-04-08 19:29 +0200

#31463 — Any good book/website with samples how to run Java in web applications?

Fromdffdfdfdfdfdfddf@gmail.com
Date2015-04-04 23:04 -0700
SubjectAny good book/website with samples how to run Java in web applications?
Message-ID<f7a6a891-b9cb-4a97-b1b6-19614010dea7@googlegroups.com>
I am trying to find a recent book or a website that provides a decent selection of code samples in Java for web applications. Since the main use of Java in web application is on the server side, the samples have to include the requests/responses between a client and server, etc. Also, it would be very helpful to have explanations how the Java code is incorporated into the server side, meaning how the compiled classes are stored on the server, how to run the test cases in order to see how it all works. All this with references to specific software packages used for this type of setup so that all this can be reproduced and played with in real time. My assumption is that all such software is available for free or for a free trial.

[toc] | [next] | [standalone]


#31470

FromArne Vajhøj <arne@vajhoej.dk>
Date2015-04-05 13:27 -0400
Message-ID<5521706b$0$286$14726298@news.sunsite.dk>
In reply to#31463
On 4/5/2015 2:04 AM, dffdfdfdfdfdfddf@gmail.com wrote:
> I am trying to find a recent book or a website that provides a decent
> selection of code samples in Java for web applications. Since the
> main use of Java in web application is on the server side, the
> samples have to include the requests/responses between a client and
> server, etc. Also, it would be very helpful to have explanations how
> the Java code is incorporated into the server side, meaning how the
> compiled classes are stored on the server, how to run the test cases
> in order to see how it all works. All this with references to
> specific software packages used for this type of setup so that all
> this can be reproduced and played with in real time. My assumption is
> that all such software is available for free or for a free trial.

There is the official Java EE tutorial.

There must be thousands of tutorials on the internet.

There must be hundreds of books.

Just start reading.

I would not be concerned about starting with something not
very recent.

Learning servlet, JSP and taglibs is something you should do anyway
even though JSF and facelets exist today.

Arne


[toc] | [prev] | [next] | [standalone]


#31475

Fromdffdfdfdfdfdfddf@gmail.com
Date2015-04-05 13:58 -0700
Message-ID<a46e7d84-5484-4db5-8177-d9a786a1cd1e@googlegroups.com>
In reply to#31470
On Sunday, April 5, 2015 at 1:27:18 PM UTC-4, Arne Vajhøj wrote:
> 
> There is the official Java EE tutorial.
> 
> There must be thousands of tutorials on the internet.
> 
> There must be hundreds of books.
> 
> Just start reading.
> 
> I would not be concerned about starting with something not
> very recent.
> 
> Learning servlet, JSP and taglibs is something you should do anyway
> even though JSF and facelets exist today.
> 
> Arne

Most of the books out there are just too slow and dwell too much on syntax. 
I have an extensive software development experience in C and other languages, also I am an impatient type who wants to see the big picture from the start. 
Hence I need to set up the whole development environment and play with simple demos that show all the concepts used in a web development.

Reading some Java code samples detached from a quick hands-on playground is just not for me. I never learned much this way in the past. Most of the books include Java samples about theory like sort this or that, print this or that, etc. I need all concepts used in a web design.

I just came across one book "Professional Java for Web Applications" that has many of the things I am looking for, like it provides demos for each chapter and the names of free software used to run them. But there are many holes in the explanations that will probably lead me into wasting a lot of time when I try to test them out. Probably, I would have to keep an experienced Java coder around me to help me out and this could not be practical.

[toc] | [prev] | [next] | [standalone]


#31478

FromArne Vajhøj <arne@vajhoej.dk>
Date2015-04-05 17:19 -0400
Message-ID<5521a6e1$0$286$14726298@news.sunsite.dk>
In reply to#31475
On 4/5/2015 4:58 PM, dffdfdfdfdfdfddf@gmail.com wrote:
> On Sunday, April 5, 2015 at 1:27:18 PM UTC-4, Arne Vajhøj wrote:
>>
>> There is the official Java EE tutorial.
>>
>> There must be thousands of tutorials on the internet.
>>
>> There must be hundreds of books.
>>
>> Just start reading.
>>
>> I would not be concerned about starting with something not very
>> recent.
>>
>> Learning servlet, JSP and taglibs is something you should do
>> anyway even though JSF and facelets exist today.
>
> Most of the books out there are just too slow and dwell too much on
> syntax.

In my experience Java EE / Java web technology books rarely spend
much time on syntax.

>     I have an extensive software development experience in C and
> other languages, also I am an impatient type who wants to see the big
> picture from the start. Hence I need to set up the whole development
> environment and play with simple demos that show all the concepts
> used in a web development.
>
> Reading some Java code samples detached from a quick hands-on
> playground is just not for me. I never learned much this way in the
> past.

There are books that have exercises and runnable examples.

>     Most of the books include Java samples about theory like sort
> this or that, print this or that, etc. I need all concepts used in a
> web design.

????

If you are looking at Java books, then probably yes.

But not Java EE / Java web technology books.

First you learn Java.

And then you learn Java EE.

> I just came across one book "Professional Java for Web Applications"
> that has many of the things I am looking for, like it provides demos
> for each chapter and the names of free software used to run them.

Wrox books are often very good.

>                                                                   But
> there are many holes in the explanations that will probably lead me
> into wasting a lot of time when I try to test them out. Probably, I
> would have to keep an experienced Java coder around me to help me out
> and this could not be practical.

How much time do you plan on using to learn Java EE?

Arne

[toc] | [prev] | [next] | [standalone]


#31483

Fromdffdfdfdfdfdfddf@gmail.com
Date2015-04-05 15:39 -0700
Message-ID<2e99b9b5-d126-4a5e-b43e-b6d5ce5592ce@googlegroups.com>
In reply to#31478
On Sunday, April 5, 2015 at 5:19:42 PM UTC-4, Arne Vajhøj wrote:
> On 4/5/2015 4:58 PM, dffdfdfdfdfdfddf@gmail.com wrote:
> > On Sunday, April 5, 2015 at 1:27:18 PM UTC-4, Arne Vajhøj wrote:
> >>
> >> There is the official Java EE tutorial.
> >>
> >> There must be thousands of tutorials on the internet.
> >>
> >> There must be hundreds of books.
> >>
> >> Just start reading.
> >>
> >> I would not be concerned about starting with something not very
> >> recent.
> >>
> >> Learning servlet, JSP and taglibs is something you should do
> >> anyway even though JSF and facelets exist today.
> >
> > Most of the books out there are just too slow and dwell too much on
> > syntax.
> 
> In my experience Java EE / Java web technology books rarely spend
> much time on syntax.
> 

 The problem is that Java web technology books lack the info I want, meaning
 complete setup so that I could jump in and run all the demos without wasting time. I am not looking for help with syntax because I can always find a source to help me with syntax. The best help is a compiler.
 
> >     I have an extensive software development experience in C and
> > other languages, also I am an impatient type who wants to see the big
> > picture from the start. Hence I need to set up the whole development
> > environment and play with simple demos that show all the concepts
> > used in a web development.
> >
> > Reading some Java code samples detached from a quick hands-on
> > playground is just not for me. I never learned much this way in the
> > past.
> 
> There are books that have exercises and runnable examples.

  The issue here is what exercises/samples, I am looking for those that cover all concepts found in web design.

> 
> >     Most of the books include Java samples about theory like sort
> > this or that, print this or that, etc. I need all concepts used in a
> > web design.
> 
> ????
> 
> If you are looking at Java books, then probably yes.
> 
> But not Java EE / Java web technology books.
> 
> First you learn Java.
> 
> And then you learn Java EE.
 
 To me Java and Java EE is the same thing. In order to learn a language you have to cover all concepts from a major application of the language. 

> 
> > I just came across one book "Professional Java for Web Applications"
> > that has many of the things I am looking for, like it provides demos
> > for each chapter and the names of free software used to run them.
> 
> Wrox books are often very good.
> 
> >                                                                   But
> > there are many holes in the explanations that will probably lead me
> > into wasting a lot of time when I try to test them out. Probably, I
> > would have to keep an experienced Java coder around me to help me out
> > and this could not be practical.
> 
> How much time do you plan on using to learn Java EE?
> 

 I plan to learn Java and Java EE at the same time, the basics can be learned relatively fast and only by running the demos and using a good development kit with good debugging/tracing capabilities.





[toc] | [prev] | [next] | [standalone]


#31484

FromArne Vajhøj <arne@vajhoej.dk>
Date2015-04-05 19:08 -0400
Message-ID<5521c072$0$287$14726298@news.sunsite.dk>
In reply to#31483
On 4/5/2015 6:39 PM, dffdfdfdfdfdfddf@gmail.com wrote:
> On Sunday, April 5, 2015 at 5:19:42 PM UTC-4, Arne Vajhøj wrote:
>> On 4/5/2015 4:58 PM, dffdfdfdfdfdfddf@gmail.com wrote:
>>>      I have an extensive software development experience in C and
>>> other languages, also I am an impatient type who wants to see the big
>>> picture from the start. Hence I need to set up the whole development
>>> environment and play with simple demos that show all the concepts
>>> used in a web development.
>>>
>>> Reading some Java code samples detached from a quick hands-on
>>> playground is just not for me. I never learned much this way in the
>>> past.
>>
>> There are books that have exercises and runnable examples.
>
>    The issue here is what exercises/samples, I am looking for those that cover all concepts found in web design.

All concepts in web design? That is a lot!

But maybe 100 volumes of 1000 pages each can do it.

>>>      Most of the books include Java samples about theory like sort
>>> this or that, print this or that, etc. I need all concepts used in a
>>> web design.
>>
>> ????
>>
>> If you are looking at Java books, then probably yes.
>>
>> But not Java EE / Java web technology books.
>>
>> First you learn Java.
>>
>> And then you learn Java EE.
>
>   To me Java and Java EE is the same thing. In order to learn a language you have to cover all concepts from a major application of the language.

I think you will end up neither learning Java nor Java EE.

Java is medium size language, Java library is a huge library, Java EE
itself is a huge set of technologies and other Java EE relevant stuff
is gigantic.

You need to take one step at a time.

>>>                                                                    But
>>> there are many holes in the explanations that will probably lead me
>>> into wasting a lot of time when I try to test them out. Probably, I
>>> would have to keep an experienced Java coder around me to help me out
>>> and this could not be practical.
>>
>> How much time do you plan on using to learn Java EE?
>>
>
>   I plan to learn Java and Java EE at the same time, the basics can be learned relatively fast and only by running the demos and using a good development kit with good debugging/tracing capabilities.

Something as big as Java and Java EE takes time.

Arne

[toc] | [prev] | [next] | [standalone]


#31485

Fromdffdfdfdfdfdfddf@gmail.com
Date2015-04-05 17:41 -0700
Message-ID<36ac06c9-fa14-4b9b-9e12-87d093741ce5@googlegroups.com>
In reply to#31484
On Sunday, April 5, 2015 at 7:08:55 PM UTC-4, Arne Vajhøj wrote:

> >   I plan to learn Java and Java EE at the same time, the basics can be learned relatively fast and only by running the demos and using a good development kit with good debugging/tracing capabilities.
> 
> Something as big as Java and Java EE takes time.
> 
> Arne

You are missing the point. I did not say that I plan to quickly learn both, only the basic concepts. You should know what are the basic concepts in a server/client web design. I want to put my hands and eyes on the execution of basic demos as fast as I can. Nobody says it will complete my training, it is only a good start. Besides, all this should be obvious to any experienced software engineer. This is nothing unusual

[toc] | [prev] | [next] | [standalone]


#31494

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2015-04-06 14:30 +0000
Message-ID<mfu5ao$9ud$1@dont-email.me>
In reply to#31485
On Sun, 05 Apr 2015 17:41:58 -0700, dffdfdfdfdfdfddf wrote:

> On Sunday, April 5, 2015 at 7:08:55 PM UTC-4, Arne Vajhøj wrote:
> 
>> >   I plan to learn Java and Java EE at the same time, the basics can
>> >   be learned relatively fast and only by running the demos and using
>> >   a good development kit with good debugging/tracing capabilities.
>> 
>> Something as big as Java and Java EE takes time.
>> 
>> Arne
> 
> You are missing the point. I did not say that I plan to quickly learn
> both, only the basic concepts. You should know what are the basic
> concepts in a server/client web design. I want to put my hands and eyes
> on the execution of basic demos as fast as I can. Nobody says it will
> complete my training, it is only a good start. Besides, all this should
> be obvious to any experienced software engineer. This is nothing unusual
>
Try this sequence, then. I had 20 years and several languages and OSen 
under my belt when I learnt Java and this worked for me: 

1) download and install the following from Oracle:
   - the current Java SE SDK (Software Development Kit). This includes
     the runtime and libraries (JRE, java Runtime Environment) so you
     don't need to download the JRE as well

   - the Java documentation set from Oracle. This is not part of the SDK
     and contains the library documentation as well as the language spec.
     IMO a locally installed copy is essential.

2) download and install ant or maven (Java make equivalents: ant is
   easier to use and is supported by most Java IDEs)

3) if you want an IDE, decide which one you want, download and install it.
   Eclipse and the Oracle are free, IntelliJ is not.

4) I used a WROX book, Ivor Horton's 'Beginning Java' when I was learning
   Java. It was OK: I bet there are many worse books out there.

   The only significant thing it didn't cover is the use of javadocs
   and the art of writing comments and using annotations so that javadocs
   generates good class and package documentation: if you don't use these
   well your name will be cursed by future programmers.

5) You'll probably want RDBMS access, so install a suitable RDBMS 
   (Derby, MariaDB and PostgreSQL are FOSS) and its JBDC driver.

   With this you can write GUI database apps with or without network
   access.

6) Then add on the Oracle Java EE extension package, install one of the
   app servers such as JBOSS or Tomcat and get stuck into Java EE.

This is the appropriate order to work in because Java EE is essentially 
Java SE plus additional libraries (OK, there may be a preprocessor or two 
as well but lets not quibble about details).


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#31535

FromRobbie Brown <rob@example.com>
Date2015-04-08 13:59 +0100
Message-ID<mg38l2$4h1$1@dont-email.me>
In reply to#31485
On 06/04/15 01:41, dffdfdfdfdfdfddf@gmail.com wrote:
> On Sunday, April 5, 2015 at 7:08:55 PM UTC-4, Arne Vajhøj wrote:
>
>>>    I plan to learn Java and Java EE at the same time, the basics can be learned relatively fast and only by running the demos and using a good development kit with good debugging/tracing capabilities.
>>
>> Something as big as Java and Java EE takes time.
>>
>> Arne
>
> You are missing the point. I did not say that I plan to quickly learn both, only the basic concepts. You should know what are the basic concepts in a server/client web design. I want to put my hands and eyes on the execution of basic demos as fast as I can. Nobody says it will complete my training, it is only a good start. Besides, all this should be obvious to any experienced software engineer. This is nothing unusual

http://tomcat.apache.org/tomcat-8.0-doc/index.html

particularly

http://tomcat.apache.org/tomcat-8.0-doc/appdev/installation.html

Can't think of a better place to start.

Once you get this sorted out you can get a container (for example 
https://glassfish.java.net/)  and start to mess your head up with EJB 
and distributed transactions and what have you.

Not much point though if you don't understand basic Java concepts like 
classpath, package, jar etc

Others have pointed you to the relevant language docs

IME books are mostly obsolete when they roll of the press. YMMV of course.

Rob

-- 
Not floundering ... just fishing

[toc] | [prev] | [next] | [standalone]


#31537

FromRobert Klemme <shortcutter@googlemail.com>
Date2015-04-08 19:29 +0200
Message-ID<col6r0FfcskU1@mid.individual.net>
In reply to#31475
On 05.04.2015 22:58, dffdfdfdfdfdfddf@gmail.com wrote:
> Most of the books out there are just too slow and dwell too much on
> syntax. I have an extensive software development experience in C and
> other languages, also I am an impatient type who wants to see the big
> picture from the start. Hence I need to set up the whole development
> environment and play with simple demos that show all the concepts
> used in a web development.

To me that sounds a bit contradictory: a big picture for me is a high 
level overview where I can see all parts - just very abstract.  A live 
demo may also show a complete application but you will see a lot of details.

> Reading some Java code samples detached from a quick hands-on
> playground is just not for me. I never learned much this way in the
> past. Most of the books include Java samples about theory like sort
> this or that, print this or that, etc. I need all concepts used in a
> web design.

Really all?  Besides the already mentioned JEE technologies that would 
also include CSS, JavaScript, potentially a UI framework like AngularJS 
or ExtJS, XPath, knowledge about HTTP(S), maybe even load balancing and 
proxies.  The landscape is quite huge.

The key question is: what is your goal, i.e. what do you want to do with 
the knowledge you gain?

> I just came across one book "Professional Java for Web Applications"
> that has many of the things I am looking for, like it provides demos
> for each chapter and the names of free software used to run them. But
> there are many holes in the explanations that will probably lead me
> into wasting a lot of time when I try to test them out.

Another way to waste time would be to search for the perfect book... ;-)

Cheers

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web