BEA WebLogic Server™ 8.1 Unleashed
by Mark Artiges, Gupreet Singh Bhasin, Bernard Ciconte, Malcolm Garland, Saranathan Govindarajan, James Huang, Subramanian Kovilmadam, Kunal Mittal, Paul J. Perrone, Tom Schwenk, Steve Steffen
Configuring Struts
To tie into the power of Struts with your WebLogic Server 8.1 application, the web.xml file must be modified with Struts framework information. The web.xml file is located in the WEB-INF directory and contains information about the Web application. To modify this file, use a simple text editor or an XML editor. The first thing that must be done is to register the action servlet within web.xml. Looking at the sample code shown in Listing 19.1, <servlet> .. </servlet> tags encapsulate this entire procedure. Line 2 registers the action name to the Struts action class in Line 3. The first parameter value supplied, application (in lines 4–7),must refer to a properties file that keeps user-defined text references used with Struts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access