Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
SCJP
Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Originally posted by Tim Holloway:
I got confused on that myself originally, and I'm afraid that most of the writeups and examples were done by people who already knew so well they thought it was obvious.
Gratuitous plug. Keep an eye out for the April issue of Java Pro magazine (it's available online if you can't get the print edition), where Your Humble Servant attempts to explain exactly what Struts really IS, And hopefully doesn't make too big a fool of himself trying.
Even in 4000 words (considered an oversize article for that publication) it's hard to completely explain what Struts contains and how to use it, but very briefly:
Struts is a collection of JSP tag libraries
AND
A "master dispatcher servlet" that breaks down URIs and routes them to user-written secondary dispatchers
AND
a set of extensible classes to implement these secondary dispatchers
AND
another set extensible of classes to assist in providing a data model to pair with JSP views of those models
AND
miscellaneous "helper" classes they found useful.
All of which fits in a remarkably small JAR and can be used (or ignored) as needed. One thing I like about Struts is that it's not one of these systems where you have to commit utterly to it or not use it at all. Makes migration much easier.
If you declare such beans in your ActionMapping configuration file (see " Building the Controller Components"), the Struts controller servlet will automatically perform the following services for you, before invoking the appropriate Action method:
* Check in the user's session for an instance of a bean of the appropriate class, under the appropriate key.
* Blah blah
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Originally posted by Adam Hardy:
Pardon my ignorance but what's the point of that? What is request scope? Scoped to all requests or just to each individually?
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
I am Arthur, King of the Britons. And this is a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|