By Dave Newton
Read Online or Download Apache Struts 2 Web Application Development PDF
Similar web design books
How one can version company techniques in an SOA-compliant process utilizing BPMN, translate them into BPEL and execute them at the SOA platform. a pragmatic consultant with real-world examples illustrating all key techniques. This ebook is for CIOs, executives, SOA undertaking managers, enterprise technique analysts, BPM and SOA architects, who're chargeable for bettering the potency of commercial procedures via IT, or for designing SOA.
This ebook takes a transparent method, targeting one subject in line with bankruptcy, yet interspersing different matters within the mainline textual content and in bankruptcy detours. Taking a realistic technique, it discusses agile net improvement utilizing Struts 2, with lots of examples for higher realizing. This e-book is for Java builders who're drawn to constructing net purposes utilizing Struts.
Extra info for Apache Struts 2 Web Application Development
This seems unnecessarily cruel. However, I really want to foster an attitude of exploration, discovery, and familiarization, with the framework and the tools we can use to expand our own knowledge and skills. Yes, I'm a little mean. By poking around we learn much more than having all the answers handed to us on a silver platter. (Especially, as it's a simple matter of looking inside the blank application WAR file. ) The biggest drawback to this approach, despite its simplicity, is that as soon as we start adding libraries (which we do in the next chapter), we don't necessarily understand the relationships between required libraries.
We'll get to this magic soon! When we request /whichresult, we'll see either the odd or the even page. After a few clicks, we'll likely see both results, letting us know the magic of Convention is working. Configuring the Convention Plug-in with annotations If Convention's defaults don't suit us, we can use its annotations to configure the action. For example, the @Action annotation can change or add action mappings beyond what Convention automatically provides. Complete documentation, along with many examples, is available on the Struts 2 documentation wiki.
Even if the bulk of our application's functionality resides in service objects, actions are where the service objects are instantiated and used. In this chapter, we'll examine Struts 2 actions further. While the mantra of "actions are POJOs" echoes in our heads, extending the ActionSupport class provides us with quite a bit of functionality, including internationalization (I18N), validation, and so on. Much of this functionality is provided by a combination of interface implementations and interceptors.