It's simple if you have Orion running successfully.

1.  In you orion's config directory you need to set up a web-app. 
 Usually you use  "default-web-site.xml" to do this.  For instance add a 
line like:

<web-app application="bank" name="/home/user/dev/pages" 
root="/online-banking" />

This holds your JSPs.

2.  Then you can set up an application in your "server.xml" where all of 
your java classes go,  (you may not need this just to get JSP's to 
work-I'm not sure):

<application name="bank" path="/home/user/dev/com" />

3.  In the location you set up for your web-app in 
"default-web-site.xml" you need to put a "WEB-INF" directory that has a 
file called "web.xml".  It doesn't have to be very complicated:

<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>

<web-app>
  <display-name>Online Banking Application</display-name>
  <description>Online Banking Application</description>

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>

4.  Finally, you must have a "META-INF" directory where you specified 
your application in step 2, and it has to have a file called 
"application.xml":

<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE 
Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd";>

<application>

  <display-name>Online Banking Application</display-name>

  <module>
    <web>
      <web-uri>/home/user/dev/pages</web-uri>
      <context-root>/</context-root>
    </web>
  </module>

5.  Then just use your Orion default URL + the Root you specified 
earlier in step 1 in the form 
"http://<host_name>:<port_number>/online-banking" (if you use default 
port 80 then don't put the ":" and port number):

http://banking_server.com:8080/online-banking

it should load the "index.jsp" you specified in "web.xml" as a default 
home page!  Now just add pages, and change the URL to include a new page:

http://banking_server.com:8080/online-banking/CheckingAccount.jsp

It should load that new page.

Good luck,

Corey


Krishnan, Sri wrote:

>Hi,
>  I am trying to use jsp s with Orion. Can anyone let me know how do I get
>the JSP compiled and displayed on the web browser ?. I know that OC4J
>compiles the JSP, just could not figure out how to get the orion do that.
>
>Thanks alot for your help
>Sri
>

-- 
Corey J. Graham - Software Developer
Keystroke Technology Solutions
1511 3rd Ave.  Suite 700, Seattle, Wa 98101
(206) 576-4557




Reply via email to