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 ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.