The Struts controller servlet requires an action path to initiate a web page, and running a web page from the Navigator directly bypasses the Struts controller. To run a Struts web page, you must invoke an existing action request URI.
Note: While running an ADF-enabled web page in your browser, if you modify the page's UI model references (for example, by dropping components from the Data Control Palette), you must close the browser and run the application again. Refreshing the browser to display the recompiled web page does not reload the UI model definitions.
To run an Oracle ADF web application:
Right-click the project that contains the web application and choose Run. A dialog will prompt you to select among Struts page flow's available data actions or data pages.
OR
Open the Struts page flow from your project, right-click the data page or data action that forwards to the desired page in the diagram and choose Run.
OR
Expand the Web Content and WEB-INF folders. Right-click the struts-config.xml node, choose Run and the name of the data action or data page from the Struts page flow to invoke.
Solaris only: When you run a Struts web page in
JDeveloper on Solaris using the embedded OC4J server, the console
displays a series of harmless warning messages that begin:
Warning: translation table syntax error: Unknown keysym name:
SunCopy.
You can ignore these error messages.
Notes About Running an Oracle ADF Business Component Client
When you want to run a web page that accesses Oracle ADF Business
Components in any mode besides local mode, you must first set the
runtime configuration in the view-controller project's
DataBindings.cpx
file. At runtime, the .cpx
file
metadata definitions you specify, will create the Oracle ADF data
binding context and permit the client application to access the business
services using the specified runtime configuration. To select the
runtime configuration to use with the ADF Business Components client,
see Running an Oracle ADF
Business Components Client Application.
When you run your Oracle ADF Business Components client using the remote
EJB configuration (by choosing AppModuleAS as client project's runtime
configuration), the message log may display Cannot initialize data
model
. In this case, you must first create a web application
archive (WAR) file in the client project and add
ModelEJB.deploy to the WAR file's profile dependencies. For
details about creating a WAR file and setting its profile dependencies,
see Granting Client Access to
an ADF Business Components EJB Session Bean.
Copyright © 1997, 2004, Oracle. All rights reserved.