Recent Notes

Displaying keyword search results 81 - 91
Created by Dr. Xi on November 06, 2008 20:11:19    Last update: March 13, 2009 21:37:36
To run a web app in Oracle Application Server with precompiled JSPs (therefore, not recompiling a JSP when requested), add the following servlet section to web.xml: <?xml version="1.0" encoding="iso-8859-1"?> <we... Or, uncomment the relevant section in $ORACLE_HOME/j2ee/OC4J_INST/config/global-web-application.xml : <servlet> <servlet-name>jsp</servlet-...
Created by Dr. Xi on October 23, 2008 03:54:04    Last update: October 23, 2008 03:57:44
Add validator plugin in struts-config.xml <struts-config> . . . ... Set validate="true" on action form <struts-config> <!-- ========== Form Bean De... Add validation rules in validation.xml <?xml version='1.0' encoding='windows-1252'?> <... If you override validate , make sure super.validate is called. package com.example; import javax.servlet.h... Read the documentation: http://struts.apache.org/1.2.4/userGuide/dev_validator.html
Created by Dr. Xi on October 15, 2008 19:49:31    Last update: October 15, 2008 19:49:31
Ant script: <?xml version="1.0"?> <project name="OC4JDe... Deployment properties: # Deployment properties targetenv=Development ...
Created by Dr. Xi on May 14, 2008 22:55:22    Last update: May 14, 2008 23:07:49
This procedure works for Oracle application server 10.1.3.1, SOA suite. But should be applicable for standalone OC4J or JDeveloper installations with minor modifications. $ORACLE_HOME is the home directory for Oracle app server. $JDEV_HOME is the home directory for JDeveloper. 1. Change directory to $ORACLE_HOME/j2ee , mkdir lib 2. Copy xmlparserv2.jar from $JDEV_HOME to $ORACLE_HOME/j2ee/lib . 3. Copy ocj.jar and jdev_remote.jar from $JDEV_HOME/jdev/lib to $ORACLE_HOME/j2ee/home/lib . 4. Edit global-web-application.xml under your OC4J instance's config directory. Change the development attribute to true . <orion-web-app xmlns:xsi="http://www.w3.org/... 5. Add the following to the servlet section of global-web-application.xml : <servlet> <servlet-name>jsp</servlet-na... 6. Edit $ORACLE_HOME/opmn/conf/opmn.xml , add -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 to start-parameters/java-options : <process-type id="MYOC4J" module-id="OC4J" status=... 7. In Eclipse, open to port 4000 for remote debugging.
Created by Dr. Xi on April 24, 2008 22:10:53    Last update: April 24, 2008 22:10:53
You need to get the unstandard tag library . Put the taglibs-unstandard.jar under WEB-INF/lib , add a tag library reference in WEB-INF/web.xml and code the JSP like this: <%@ taglib uri="http://jakarta.apache.org/taglibs/...
Created by Dr. Xi on April 07, 2008 22:18:29    Last update: April 07, 2008 22:19:30
Oracle's documentation on how to set up Ant tasks for web services is ambiguous and tedious. Here's a simple Ant file to accomplish that task. <project name="TEST" basedir="." default="usage" x...
Created by Dr. Xi on December 12, 2007 20:30:01    Last update: December 12, 2007 20:32:23
This is a script to tail a log file through the web browser. It uses AJAX, apache web server, mod_python, UNIX utilities tail (requires the --lines switch) and wc . The log file may reside on the web server or any other host accessible from the web server through SSH. Although it's written in python, it should be easy to port to other languages such as Perl. Apache httpd.conf : LoadModule python_module modules/mod_python.so ... Python script: import time, os from os.path import basename ...
Created by Dr. Xi on November 15, 2007 04:40:44    Last update: November 15, 2007 04:40:44
Here's some simple Ajax code. The Ajax response is delivered as XML with attributes and an array of data payloads contained in CDATA sections: <?xml version="1.0" encoding="utf-8"?> <ajax-re... And the JavaScript that does the Ajax magic: // ajax.js function ajaxGet(url, ajaxCallback) ... And the HTML test code: <html> <head> <script language="JavaScript"...
Created by Dr. Xi on August 16, 2007 18:47:40    Last update: August 16, 2007 18:52:02
If you use quartz or the plain old java.util.Timer class to schedule jobs in an OC4J container, you need to enable the -userThreads switch with the OC4J container. This is the relevant section in $ORACLE_HOME/opmn/conf/opmn.xml : <process-type id="INST1" module-id="OC4J" status="... Or, you can add it through the Oracle em console. Go to the OC4J container, click "Administration" tab, then "Server Properties". Add "-userThreads" to "Start-parameters: OC4J Options". Debu Panda has written a good article on using quartz in the Oracle environment: Using Quartz Enterprise Scheduler in J2EE
Created by Dr. Xi on August 10, 2007 21:05:26    Last update: August 10, 2007 21:05:26
This style sheet transforms the struts-config.xml into HTML for easy viewing in a browser. It uses the DHTML JavaScript tooltip from http://www.walterzorn.com/tooltip/tooltip_e.htm . <?xml version="1.0" encoding="UTF-8"?> <xsl...
Created by Dr. Xi on May 08, 2007 23:09:39    Last update: May 08, 2007 23:13:07
First create a resource provider for Oracle AQ in orion-application.xml: <?xml version = '1.0' encoding = 'windows-1252... Then, hook up the EJB to the queue in orion-ejb-jar.xml: <?xml version = '1.0' encoding = 'windows-1252... Make sure the resource names ('rsname') match among the xml files. Full information is available from the Oracle document titled "Oracle Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0)". Look at Appendix A.
Previous  1 2 3 4 5 6 7 8 9 Next