01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Deploying Your <strong>Reports</strong><br />

Note: The WEB-INF direc<strong>to</strong>ry must contain <strong>the</strong> JSP tag library for<br />

<strong>Oracle</strong> <strong>Reports</strong>, called reports_tld.jar. In <strong>Oracle</strong> Developer<br />

Suite, you can find <strong>the</strong> tag library here:<br />

ORACLE_HOME\reports\j2ee\reports_ids\web\WEB-INF\lib<br />

where ORACLE_HOME is <strong>the</strong> direc<strong>to</strong>ry where <strong>the</strong> <strong>Oracle</strong> Developer<br />

Suite is installed.<br />

In <strong>Oracle</strong> Application Server, you can find <strong>the</strong> tag library here:<br />

ORACLE_HOME\j2ee\OC4J_BI_<br />

Forms\applications\reports\web\WEB_INF\lib.<br />

2. Make sure your JSP-based <strong>Web</strong> report points <strong>to</strong> <strong>the</strong> location of <strong>the</strong> JSP tag library<br />

for <strong>Oracle</strong> <strong>Reports</strong>. O<strong>the</strong>rwise, <strong>the</strong> report will not run.<br />

3. Create a new WAR file, ei<strong>the</strong>r manually or using a <strong>to</strong>ol, such as <strong>Oracle</strong> JDeveloper.<br />

Make sure you create <strong>the</strong> WAR file according <strong>to</strong> <strong>the</strong> appropriate J2EE format.<br />

4. If your JSP report contains a paper layout and you want <strong>to</strong> deploy your report <strong>to</strong><br />

paper, open <strong>the</strong> web.xml file.<br />

Note: In <strong>Oracle</strong> Developer Suite, <strong>the</strong> web.xml file is located here:<br />

ORACLE_HOME/reports/j2ee/reports_ids/web/WEB-INF<br />

On <strong>Oracle</strong> Application Server, <strong>the</strong> web.xml file is located here:<br />

ORACLE_HOME/j2ee/OC4J_BI_<br />

Forms/applications/reports/web/WEB-INF .<br />

If you are deploying a JSP report that only contains a <strong>Web</strong> layout, continue <strong>to</strong> Step<br />

7.<br />

5. Add <strong>the</strong> following code <strong>to</strong> <strong>the</strong> web.xml file.<br />

<br />

rwservlet<br />

oracle.reports.rwclient.RWClient<br />

yes<br />

<br />

<br />

rwservlet<br />

/rwservlet*<br />

<br />

This new definition will redirect all URLs ending with /rwservlet <strong>to</strong> <strong>the</strong> servlet<br />

you’ve defined.<br />

Note: You can change <strong>the</strong> servlet name and URL.<br />

6. Save <strong>the</strong> web.xml file.<br />

7. Create an EAR file from <strong>the</strong> WAR file. Once <strong>the</strong>se files are compiled, note where<br />

<strong>the</strong>y are saved.<br />

13-8 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!