How to use the Oracle FTS search from my own program ?

Hi,
Due to certain reasons, we cann't use the UI that comes up with the Oracle help. Now I am wondering, If anybody has attempted to build something like the following:
Have thier own JSP from where they had this search input box
Accept the data (input) that's punched there by the user
Use the code engine to query the .idx file with the input
then whatever comes back as a result of that search (as a list or whatever), loop thru and display them as hrefs in thier own UI.
If somebody has done this, I would appreciate if they could share thier code.
Thanks very much.
-Ram

Brian,
Thanks very much for quick response.
First to answer your questions ....
Yes, you have got it right. We want it to use for a help system and this is about OHW.
The reasons for not being able to use the UI as is because: We want the UI to have our look and feel.
As such we wrote some code that would also take care of the the context sensitivity (of course using the topicID's etc). We have a Data initialization bean on the top of each page and that sets the topicId for that page from the Mapping file and so when the user presses the F1 key it shows up the right help page.
Now the challenge is: Search
What I want to do is:
Provide a search field (<input type="Text" name="searchFieldName">) on my page and thus accept the input (let's say request.getParameter("searchFieldName")) and write some code by which I will pass that off to your engine .. and which will then look at the .idx file and return the results to me as a collection or something like that, so that then I can use that to render the search results in my page. (I guess you must be doing something similiar, right).
So did that make sense ? I will appreciate if you can provide me some code examples or directions pertaining to this.
I looked at your method's (orcale help jar file) and tried to proceed but lost my way.
Thanks a lot
-Ram

Similar Messages

  • How to use the DLLs which created from c++ in Java?

    And How to use the DLLs which created from JNI in C++?

    Huh?
    Are you asking how to do JNI - you should read the tutorial.
    Are you asking how to load it - then use System.loadLibrary()
    Are you asking what to do with the output from javah - put it in a C file and write some code, compile it into a dll.

  • How to use the repository; uploading reports from DEV to PROD...

    Hello...
    I'm fairly new to CR-XIr2 (SP3) but have worked with Crystal Reports since v6.0.  I'm trying to figure out how to create a dynamic parameter list that someone can select an item from, which will get sent as an input parameter to the SQL Server 2005 stored proc that populates the report.  I'm also trying to figure out if there's an easy way to copy reports from a DEV environment into PROD.  We have BOE.
    Basically, I would like to find out resources online or in books on how to use the BOE repository for dynamic and/or cascading parameters (i.e. pulling a list of text values & their associated IDs from a lookup table that won't be used in the report), images (i.e. corporate logo), etc..  What complicates things for us is that IT is now requiring us to use a DEV environmentit was really easy when we had unlimited access in PROD!  We also need to put together a process where reports & other repository objects that are copied from DEV to PROD access the correct db, etc.  (Crystal Report in DEV accesses DEV db/repository/etc.when copied to PROD it accesses PROD db/repository/etc.)
    Anyway, I'm just looking for info on where to begin--whether it be a book, a BO/SAP knowledge base article, in-class training from a specific company, etc.  Thanks!

    Hey Markian,
    Can you let me know the process you have followed to migrate from Dev to Prod.
    We can migrate all the reports and objects and database fields through migrate wizard where you can import all the objects, reports and database fields and users to production enterprise.
    Just follow the above scenario and let us know if you are facing any error.
    Try  publish the reports using import wizard and run it in the crystal designer.
    Regards,
    Naveen.

  • How to use the Oracle 10g JDBC OCI driver in JBoss ?

    Greetings,
    I deployed ojdbc14.jar in JBoss and I created an Oracle datasource. I have the following questions:
    1. In the datasource descriptor file I have:
    <connection-url>jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=xe)))</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    Is it enough in order to use the Oracle 10g JDBC OCI driver ?
    2. After having looked-up the datasource and created a connection, the classe of these objects are org.jboss.resource.adapter.jdbc.WrapperDataSource and, respectivelly, org.jboss.resource.adapter.jdbc.WrappedConnection. How can I have access to oracle.jdbc.oci and oracle.jdbc.pool packages ?
    Many thanks in advance,
    Nicolas

    Hello
    We were banging our heads on a similar thing, maybe this will help
    We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
    1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
    The method to do this is getInnermostDelegate()
    Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
    See below for the snippet of code
    // now switch the user and reselect
    if (conn instanceof DelegatingConnection) {
    properties.put("PROXY_USER_NAME","peter/peter");
    oraConn =((DelegatingConnection)conn).getInnermostDelegate();
    if (oraConn == null)
    out.println("oraConn is null\n");
    ((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
    2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
    By default, Tomcat does not allow you to call this method, it will always return null
    You have to change the xml to allow it to return an object
    It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
    Here is the setting:
    <parameter>
    <!-- NOTE: This is necessary to enable access to the Oracle connection object -->
    <name>accessToUnderlyingConnectionAllowed</name>
    <value>true</value>
    </parameter>
    Note, this setting was also put in the conf/server.xml file
    Thanks
    Peter

  • How to Use the Wiki Page Ribbon Functionalists in own APP development?

    Hello Pros,
    I am developing an APP tool for dynamically modifying the contents on the Wiki Page on SharePoint for some format purpose. I hope to use the Ribbon functionalists provided by Wiki Page Editor like configuring the font on that APP. I have an editable div
    on the page and hope to use the Ribbon Buttons as used in the Wiki Page to control the contents of this div. Is it possible or I just have to develop those functionalists by myself instead of loading the Ribbon to my APP.
    And other problems I have got the solutions like accessing to my APP with parameter or using the REST to control the contents on Wiki Page.
    Hope to hear your responses. Thanks.

    I've not used JBuilder much, but if it has ant support, then it should
    be pretty straight-forward.
    -- Rob
    Rick Ni wrote:
    How to use the "split development directory structure" in JBuilder9 ?
    Have /APP-INF supported ?

  • How to use the oracle jdbc driver

    hi all,
    i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
    the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
    Class oracle.jdbc.driver.OracleDriver not found in type declration.
    if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at TestOracle.<init>(TestOracle.java:33)
    at TestOracle.main(TestOracle.java:126)
    can someone help me out to better understand what is wrong
    it seems the drivers are not install but again the dba assures me they are
    import java.sql.*;
    import java.io.*;
    public class TestOracle {
    public TestOracle()
    // Load the Oracle JDBC driver
    // Connect to the database
    // search the dossiers numbers in the right table depending on criteria
    // if demands comes from extranet verify to only send back the dossier
    // numbers that are linked to the customer
    // Load the Oracle JDBC driver
    try
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         //Class.forName("oracle.djbc.driver.OracleDriver");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    catch( Throwable t ){t.printStackTrace();}
    //SQLException,IOException,ClassNotFoundException,
    //IllegalAccessException,InstantiationException
    try
         // Connect to the database
         // You can put a database name after the @ sign in the connection URL.
         Connection conn =
              //DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
              DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
         Statement stmt = conn.createStatement ();
         ResultSet r = stmt.executeQuery("select * from Dossier");
         stmt.close();
         System.out.println("trouver:" + r.getString("Dossier_Number"));
    catch (SQLException e){e.printStackTrace();}
    public static void main(String[] args)
    TestOracle testOracle1 = new TestOracle();
    here is the code iuse

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • How to use the column names generated from Dynamic SQL

    Hi,
    I have a problem with Dynamic SQL.
    I have written an SQL which will dynamically generate the Select statement with from and where clause in it.
    But that select statement when executed will get me hundreds of rows and i want to insert each row separately into one more table.
    For that i have used a ref cursor to open and insert the table.
    In the select list the column names will also be as follows: COLUMN1, COLUMN2, COLUMN3,....COLUMNn
    Please find below the sample code:
    TYPE ref_csr IS REF CURSOR;
    insert_csr ref_csr;
    v_select VARCHAR2 (4000) := NULL;
    v_table VARCHAR2 (4000) := NULL;
    v_where VARCHAR2 (4000) := NULL;
    v_ins_tab VARCHAR2 (4000) := NULL;
    v_insert VARCHAR2 (4000) := NULL;
    v_ins_query VARCHAR2 (4000) := NULL;
    OPEN insert_csr FOR CASE
    WHEN v_where IS NOT NULL
    THEN 'SELECT '
    || v_select
    || ' FROM '
    || v_table
    || v_where
    || ';'
    ELSE 'SELECT ' || v_select || ' FROM ' || v_table || ';'
    END;
    LOOP
    v_ins_query :=
    'INSERT INTO '
    || v_ins_tab
    || '('
    || v_insert
    || ') VALUES ('
    || How to fetch the column names here
    || ');';
    EXECUTE IMMEDIATE v_ins_query;
    END LOOP;
    Please help me out with the above problem.
    Edited by: kumar0828 on Feb 7, 2013 10:40 PM
    Edited by: kumar0828 on Feb 7, 2013 10:42 PM

    >
    I Built the statement as required but i need the column list because the first column value of each row should be inserted into one more table.
    So i was asking how to fetch the column list in a ref cursor so that value can be inserted in one more table.
    >
    Then add a RETURNING INTO clause to the query to have Oracle return the first column values into a collection.
    See the PL/SQL Language doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/returninginto_clause.htm#sthref2307

  • How to use the Oracle AQ JMS API using Toplink

    My application is using AQ using PL/SQL. We want to convert the PL/SQL code to the JMS interface Oracle offers, the problem is that I need to use a java.sql.Connection object in order to connect to the AQ. I don't own the java.sql.Connection in Toplink. How can I enqueue/dequeue to a JMS AQ using Toplink?

    In the upcoming 10.1.3 release, TopLink supports mapping to/from Oracle AQ messages through a JCA adapter. This functionality is currently available in the 10.1.3 developer preview release on the Oracle OTN web site. If you have an earlier version of TopLink, using AQ directly may make more sense with TopLink only being used to access an existing JDBC connection.
    To use AQ directly a JDBC connection is required - then the AQ JMS interface can be used to access any messages. If TopLink has a JDBC connection with Oracle AQ, it (the JDBC connection) can be accessed via session.getAccessor().getConnection(). Also, if a J2EE datasource/connection pool is being used a JDBC connection could be obtained there as well. One thing to note is that creating a new JDBC connection would be 'safer', as this would avoid having the connection managed when it shouldn't be.
    For information on how Oracle TopLink provides EIS access to AQ, please refer to: http://www.oracle.com/technology/products/ias/toplink/preview/howto/eisAq/index.htm

  • How to use the Oracle Cloud Database Service

    Hi,
    I got the trial version of Oracle cloud Database service. How to use that?
    I wanted it to deploy the schema for my application. It needs the db to be pingable. I should be able to ping the db using the tnsping command.
    Can any body help in this regard?
    Regards
    Anil

    Anil -
    You cannot communicate with the Database Cloud Service from outside the Public Cloud with SQL*Net or over TCP/IP, as explained in the FAQ, located here https://cloud.oracle.com/mycloud/f?p=service:database_faq:0:::::.   The Database Cloud Service is a PaaS, not a DBaaS, so you won't be able to ping it in the way you describe.
    Hope this helps.
    - Rick Greenwald

  • How to Use the Oracle Security (dynamic connection)  ADF Struts ?

    Hello All
    I need to use the security from Oracle in my application, I mean I use a connection to my DB , but This connection would have to be dynamic, I have to create different users with grants to my tables , and The users would have to connect to my application directly , I read something in the forum , but I'm not sure if it's possible , because I have appmodule created and they are connected to a same user. I need this be dynamic Could I use do This?. Someone have the same requirement?. Someone can help me , pleaser, Urgent!!
    Thanks all.
    Regards.

    Hello
    We were banging our heads on a similar thing, maybe this will help
    We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
    1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
    The method to do this is getInnermostDelegate()
    Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
    See below for the snippet of code
    // now switch the user and reselect
    if (conn instanceof DelegatingConnection) {
    properties.put("PROXY_USER_NAME","peter/peter");
    oraConn =((DelegatingConnection)conn).getInnermostDelegate();
    if (oraConn == null)
    out.println("oraConn is null\n");
    ((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
    2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
    By default, Tomcat does not allow you to call this method, it will always return null
    You have to change the xml to allow it to return an object
    It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
    Here is the setting:
    <parameter>
    <!-- NOTE: This is necessary to enable access to the Oracle connection object -->
    <name>accessToUnderlyingConnectionAllowed</name>
    <value>true</value>
    </parameter>
    Note, this setting was also put in the conf/server.xml file
    Thanks
    Peter

  • How to use the Keying of CompactPCI in my own designed PXI-module?

    as title.
    I've designed a own PXI-module.Since I havn't seen the CompactPCI Keying in J1 before, I don't know how to use it, or it is just necessary for special application field?

    Hello,
    Please refer to the link below, I think it will have all of the information that you need concerning keying of CompactPCI and PXI modules:
    http://digital.ni.com/public.nsf/websearch/98907157CE1428A286256BC900607485?OpenDocument
    Regards,
    Andrew Mierau
    Applications Engineer
    National Instruments

  • How to use the Oracle's SET ROLE?

    Hi all,
    does anyone know how I can call SET ROLE (for Oracle) from java before the report is produced with
    Crystal Reports API?
    I'm using Crystal Reports 2008 for the report design and new crystal report java sdk of JRC (v12.2 with SP1) which know as CRJ in my J2EE application.
    I tried to insert a Command (SET ROLE role) into a working fine report.
    The report runned into Crystal Reports 2008 works fine.
    Since has been made a high number of reports without a SET ROLE, to avoid to modify all the reports already made, I tried to run the SET ROLE from JAVA adding a CommandTable to report.
    Below the code inserted into java class:
              ConnectionInfos connInfos = new ConnectionInfos();
              IConnectionInfo iConnInfo = new ConnectionInfo();
              PropertyBag propertyBag = new PropertyBag();
              try {
              String usernameOracle = GestoreContesto.getAttributo("usernameOracleReport");
              String passwordOracle = GestoreContesto.getAttributo("passwordOracleReport");
              String connectString = GestoreContesto.getAttributo("dbUrl");
              String driverName = "oracle.jdbc.OracleDriver";
              //String driverName = "oracle.jdbc.OracleConnectionCacheImpl";
              //String JNDIName = "jdbc/nsisrdatasource";
              String userName = usernameOracle;               
              String password = passwordOracle;
              String TRUSTED_CONNECTION = "false";
              String SERVER_TYPE = "JDBC (JNDI)";
              String USE_JDBC = "true";
              String DATABASE_DLL = "crdb_jdbc.dll";
              //String JNDI_OPTIONAL_NAME = JNDIName;
              String CONNECTION_URL = connectString;
              String DATABASE_CLASS_NAME = driverName;
              propertyBag.put("Trusted_Connection", TRUSTED_CONNECTION);
              propertyBag.put("Server Type", SERVER_TYPE);
              propertyBag.put("Use JDBC", USE_JDBC);
              propertyBag.put("Database DLL",DATABASE_DLL );
              //propertyBag.put("JNDIOptionalName",JNDI_OPTIONAL_NAME );
              propertyBag.put("Connection URL", CONNECTION_URL);
              propertyBag.put("Database Class Name", DATABASE_CLASS_NAME);
              iConnInfo.setAttributes(propertyBag);
              iConnInfo.setUserName(userName);
              iConnInfo.setPassword(password);
              connInfos.add(iConnInfo);
              String TableName = "Custom_Query";
              String TableAlias= "Custom_Query";
              CommandTable table = new CommandTable ();
              table.setAlias (TableAlias);
              table.setName (TableName);
              table.setConnectionInfo(iConnInfo);
              table.setCommandText("SET ROLE role");
              databaseController.addTable(table, null);
              catch (ReportSDKException e) {
                   System.out.println("......");
    When I tries to render a report from Java I received this ERROR:
    15:32:52,935 INFO  [STDOUT] 15:32:52,935 FATAL [JRCCommunicationAdapter] Request failed and JRC Command failed to be undone
    15:32:52,966 INFO  [STDOUT] 15:32:52,951 ERROR [JRCCommunicationAdapter]  detected an exception: Nessun risultato restituito dalla query.
         at com.crystaldecisions.reports.queryengine.Table.u7(Unknown Source)
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(Unknown Source)
         at com.crystaldecisions.reports.common.CommandManager.a(Unknown Source)
         at com.crystaldecisions.reports.common.Document.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
         at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.an.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.b0.b(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.bb.int(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown Source)
         at it.ServletHelper.querySetRole(ServletHelper.java:627)
    It's a big problem. If anyone has any idea, I'd greatly appreciate it.
    Thanks

    Hi all,
    running a report with two command from java (the first contains a simple "SEt ROLE role",
    the second contains a simple select) is raised the error "No results returned by the query" while in
    Crystal Reports 2008's preview the report works fine.
    Therefore I ask: "Is it possible to run a report that contains a query without result from Java?
    How can do with the SET ROLE command, which is essential for me?"
    Thanks

  • How to use the grow/shrink effect from the gallery

    I'm not interested in the entire gallery, however, the
    grow/shrink effect is very nice.
    I tried looking for it in dreamweaver....
    and then I tried grabbing gallery.js and spryeffects.js
    I get errors.....Has anyone extracted this particular
    behavior? There are a number of places it can be useful.
    Thanks,

    Oh, I think I have found something ot there, sorry if I was a little impatient...
    "3d fog only works with 2 different 3d image types and does not work with a AE 3d scene."
    And one of that 3d images is "RPF" or something like that, a file that contains some 3D or depth info as far as I can imagine... So... really there is no effect like this to simulate fog quickly & easily into a simple 3D After Effects composition? Cause it'd be very usefull... of course I can imagine several ways to "fake" it, but a simple effect for each 3D layer it'd be great to avoid complications... Well, anyway any imput or advice it'll be very welcomed, CHEERS!

  • How to get the current process Id from a java program

    Can we fetch the process id froma a program as we do it in c++ as getCurrentProcessId()

    why not to launch a process like ("rundll.exe _params_") and get its output data
    sorry, i'm not in WinAPI to continue with params, but you should know i think or consult somebody.
    or there is special java package, which can call windows functions. you can find it in Microsoft Java SDK.

  • How to use the 3of9 font in report in concurrent program

    Dear All,
    I have developed a report in 6i, and selected the font 3of9.ttf in Report Builder, which is a Barcode type font. but when i register the report as concurrent program and run the report concurrent program it is not showing me the field value in barcode format.
    Then i tried to ftp the font to unix server at location "$OA_JRE_TOP/jre/lib/fonts/3of9000.ttf" also created the xdo.cfg file at "$OA_JRE_TOP/lib" folder.
    But still i am not getting the expected result.
    Can anyone help me out to resolve this issue?
    Thanks & Regards,
    CAK

    You can't just copy a Windows font to Unix. You need specific Unix installation steps. That I know, for the rest I am unfamiliar with Unix fonts.
    Some info can be found here:
    http://www.idautomation.com/kb/unix-finst.html
    For specific problems with E-Business Suite, ask that in the EBS forum.

Maybe you are looking for