This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
1. In struts 1.x, how many times the struts-config.xml will be read? Fir each request or only once when the 1st request comes???
2. In struts 2 who will read the struts.xml. I know the ActionProxy is responsible to read it. If that is the case how the FD-->ActioMaper---> ActioMappoing will decide whether to include the action or not?? Here ActioMapping class also will read the struts.xml or what?? Please clear my doubts in details.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
In struts 1.x, how many times the struts-config.xml will be read? For each request or only once when the 1st request comes???
For each request the struts-config.xml will be read, not from the file but from the objects created with the configuration file.
When the first request comes, in the init() method, the ActionServlet reads the Struts Config file and creates appropriate Struts
configuration objects (data structures) into memory. Creating configuration objects is an one time process.
But for each and every request the configuration object is read to create ActionMapping object for that particular request.
Take up one idea. Make that one idea your life; dream of it; think of it; live on that idea. Let the brain, the body, muscles, nerves, every part of your body be full of that idea, and just leave every other idea alone. This is the way to success.