Any Java API - access for Form Manager forms

Hi All,
I have designed the forms using Adobe designer. Then I have deployed the forms in Form Server.
I want open/view that forms in separate jsp/java application instead using Form Manager.
Any Java API is available for viewing forms?
Please help me.
Thanks,
Sara

Hi Howard,
Thanks for your reply. As per developer_guide, I have creatd one jsp and tested in jboss application. I have faced one problem.
Please help me....
my jsp code:
String sFormQuery = "LeaveRequestForm.xdp";
String sFormPreference = "MSDHTML";
String sContentRootURI = "http://localhost:8080/LeaveRequest/forms";
String sTargetURL = "http://localhost:8080/LeaveRequest/LeaveRequestForm";
String sApplicationWebRoot = "http://localhost:8080/LeaveRequest";
try
EJBClient formServer = new EJBClient();
Hashtable props = new Hashtable();
props.put("INITIAL_CONTEXT_FACTORY","org.jnp.interfaces.NamingContextFactory");
props.put("URL_PKG_PREFIXES","org.jboss.naming");
props.put("PROVIDER_URL", "localhost:8080");
InitialContext initialContext = new InitialContext(props);
formServer.setInitialContext(initialContext);
com.adobe.formServer.interfaces.IOutputContext myOutputContext = (com.adobe.formServer.interfaces.IOutputContext)formServer.renderForm(sFormQuery,sFormPre ference, null, "CacheEnabled=false",
null, sApplicationWebRoot, sTargetURL, sContentRootURI, null );
ServletOutputStream oOutput = response.getOutputStream();
response.setContentType(myOutputContext.getContentType());
byte[] cContent = myOutputContext.getOutputContent();
oOutput.write(cContent);
catch(Exception e)
out.println(e);
Error Message:
com.adobe.formServer.interfaces.RenderFormException: java.lang.ClassCastException

Similar Messages

  • Any Java API available for character recognition.. Please help

    Hi,
    I am wondering if there are any Java API for identifying the character encoding of a text content. I came across NGramJ but not enough documentation to integrate with my application. Any help would be appreciated.
    Thanks.

    I used this but the CharsetToolKit identifies only among UTF-8, UTF-16LE and UTF-16 not any other encodings like TIS-620 etc. I am new to this as well, so not sure whether I am doing it right. Please advise.
    Also, if any samples of chardet would be appreciated.
    One thing not sure, is when I send a message has Thai characters from Hotmail having my browser setting to Thai encoding(TIS-620) but my Hotmail account language is English and sent to one of my exchange accounts. In the outlook, the message looks gibbrish.
    So I need the charset encoding detector to let me know what type of encoding is done on the content (as if you choose English as the language option, the Hotmail server doesn't have charset parameter in the content-type header) so that I can decode and re-encode to UTF-8.
    Any immediate response would be appreciated.

  • Any Java API doc for PJC

    Hi,
    I 've seen someone has asked about API doc for PJC (Pluggable java components) and there is no response on this matter.
    Can someone from Oracle give us some hints on this?
    Is this PJC still support in future version, it seems this will be phase out soon as the resource available for this components are so limited and it is discouraging people to use.
    But how are people able to progressively migrate traditional form to J2ee without some transitional products to support such migration?
    Regards,
    ana

    Hi,
    PJCs will stay, same for Java Importer. You are right that we didn't publish any Javadocs until yet. I'll takle this one up to again suggest to the developers. Only the minority of classes though are Forms classes, the rest are UI classes with consume from an internal group.Just to be clear, PJCs, JavaBeans and Java in Forms will not phase out.
    Note also that PJCs don't help you to migrate Forms to J2EE, they help you to use Java in Forms.
    Frank

  • Any Java API for dumping database?

    As far as I know, the normal way to dump a database is to execute some command on the console.
    Is there any Java API for dumping a database, so that the operation can be wrapped in the code?
    The database system that I'm using is MySQL. Please help. Thanks!

    By "dumping a database" I mean exporting data in the database into a text file, as a backup, that can be used when restoring the database. For example, in MySQL, I can run "mysqldump" on the command line to dump the database into a file.
    So far I still have no idea how to do this using JDBC or any other Java API. Please help!

  • Any java api for Touch Chip TCKDU02 finger print reader

    Hi
    I am new to this, and i want to know any java api
    that supports Touch Chip finger print reader
    a default that came with TouchChip TCKDU02 sdk does not support
    java,
    help me
    regards
    B.Rameshwari

    that supports Touch Chip finger print reader
    a default that came with TouchChip TCKDU02 sdk does
    not support
    java,
    help me sounds like you're not going to be able to interface with it
    if it has an interface in another language, you might be able to write a wrapper interface using JNI

  • Is there any java API throgh which My program can get harddisk,cpu ID adres

    hello
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use
    process p=Runtime.getTime().exec("cmd command");
    please other than this send any java api, progamming technique that remain same on all plate forms
    advance thanks
    best regards

    >
    Is there any java api throuh which i can get hard disk and processor serial numbers.
    i have already use ..>1) What business is that information to your app.? Or to put that another way. Why do you want to know?
    2) Those words are 'Java', 'API' and 'I' (which is always upper case).
    3) One upper case letter should be used at the start of each sentence, not just once at the start of a post.

  • Restrict read/edit access for a Manager, when Manager Visibility is enabled

    Customer wants to restrict read/edit access for a Manager on his/her subordinates' owned record, if manager Visibility is enabled at the company level.
    For example: If SM1 is a manager of SR1 and SM1 owner profile says that he has Edit Access on his owned records then, he will get Edit Access
    on the records owned by his sales rep.
    Current requirement here is Manager should not be able to edit the records of his sales rep but should able to only View. And manager also
    need the Edit/Read access on the records which they owned.
    Is there a possible workaround ?

    I have devised this to our customer:
    First, create a custom text field named "Reports To" on the object, say, Accounts.
    Second, user JoinFieldValue to set a default value for the "Reports To" field: equal to the "Reports To" User field value for the current owner.
    Third, add a new value named "Manager Read-Only" to 'Account Type' picklist. make sure that this picklist value is active.
    Fourthly, add a new page layout marking all Account Fields as 'read-only' and name it "Account Read-Only layout".
    Fifthly, create a new Account Dynamic Layout and set "Account Read-Only layout"
    for Field Type = "Manager Read-Only".
    Sixthly, create a new workflow rule condition for Account object ( before modified record saved ). Use the workflow rule condition similar to UserValue('<Alias>') = [<ReportsTo>] and set the workflow action to update 'Account Type' picklist value to
    "Manager Read-Only".
    This is just an example. Customer needs to improvise on this.
    Any more suggestions please ?

  • Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile

    Where can I find "Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile"?
    Thanks a lot for your time.

    Hi, this is referring to the JavaDocs for Java methods/classes supported by ADF Mobile. You can typically right (or ctrl) click on any ADF Mobile specific Java method and select "JavaDoc". You can open up a sample app that contains any Java class - for example the HR sample app, and find any method with name "adfmf*". You should be able to see the Java doc for the ADF Mobile related methods/classes.
    Thanks,
    Joe Huang

  • Java API docs for MapViewer

    I'm looking for the Java API docs for the oracle.lbs.mapclient.MapViewer bean.
    The mapviewer .pdf file has an API section, but only inludes descriptions of some of the arguments passed to the various methods. I'm using the 9.04 release - where should I look for these docs and/or source code?
    Thanks,
    Eric Everman
    USGS

    OK - I found them. They are part of the 9.04 kit as part of the web application.
    ***NOTE: It would be if oracle had all of its javadoc in one location, rather then rely on installations to provide docs.***
    If others are looking for them, they are available as part of the installed web application at:
    host:port:context/mapclient
    Or, if you want file access to them, unzip the mapviewer.ear file that comes with the kit. From that unzip the web.war file. The viewerbean API docs are then located in the mapclient subdirectory.

  • Is there any Java API to interact/integrate with Adobe LiveCycle Policy Server

    Hi,
    We are already using Adobe LiveCycle Policy server & has manual process in place to send documents to clients.
    Going forward we want to automate this document generation process. We are using Java, JEE in our application.
    We are planning to use below steps to automate this process.
    1) Administrator will create a Template in Adobe Policy Server and will map users intended to receive mails with this template
    2) Our application will interact with Adobe Policy Server and use Template ID to generate PDF document and send mails to client.
    Can anyone please let me know if there is any Java API which can be used to perform the above second step.
    Thanks a lot for your help.
    Best Regards - Roy

    Hi Steven,
    What you refer to is PDF Generator version 7.x Postscript edition.
    In version 7 of the product there were 3 editions:
    1. PDF Generator Professional
    Create PDF files from a wide range of source files:
    Print (PS, EPS, PRN)
    Image (JPG, GIF, BMP, TIFF, PSD)
    Standard office formats (DOC, XLS, PPT, WPD, MPP)
    Text (TXT, RTF)
    Web (HTML)
    Design files (DWG, VSD)
    Generate all types of Adobe PDF file formats:
    PDF 1.3, 1.4, 1.5, 1.6
    PDF/X-1a and PDF/X-3 for prepress document exchange
    PDF/A for archiving with easy search and retrieval
    Searchable PDF files from images
    Convert PDF files to:
    HTML documents
    Text (TXT, RTF, accessible)
    Images (TIFF, PNG, JPEG)
    Print (PS, EPS)
    2. PDF Generator Elements
    Create PDF files from a wide range of source files:
    Print (PS, EPS, PRN)
    Image (JPG, GIF, BMP, TIFF, PSD)
    Standard office formats (DOC, XLS, PPT, WPD, MPP)
    Text (TXT, RTF)
    Web (HTML)
    Design files (DWG, VSD)
    Generate all types of Adobe PDF file formats:
    PDF 1.3, 1.4, 1.5, 1.6
    PDF/X-1a and PDF/X-3 for prepress document exchange
    PDF/A for archiving with easy search and retrieval
    Convert PDF files to:
    HTML documents
    Text (TXT, RTF, accessible)
    Print (PS, EPS)
    3. PDF Generator Postscript
    Create PDF files from a wide range of source files:
    Print (PS, EPS, PRN)
    Generate all types of Adobe PDF file formats:
    PDF 1.3, 1.4, 1.5, 1.6
    PDF/X-1a and PDF/X-3 for prepress document exchange
    PDF/A for archiving with easy search and retrieval
    So basically what you have is the very limited edition, doing exactly what you said. For more functionality you should opt for one of the other editions (that for version 7.x)
    Today's version is the newer LC PDF Generator ES. You can look for its specifications at http://www.adobe.com/products/livecycle/pdfgenerator/
    Thanks

  • Is there any Java API equivalent to Javascript eval() method?

    Is there any Java API equivalent to Javascript eval() method?
    Regards
    Rakesh

    No there isn't however you can use Jython (or another scripting language of your choice) to reproduce this functionality.

  • I need Java API documentation for Adapter Modules

    Hi
    Please provide me Java API documentation for Adatper Modules
    Regards
    Sowmya

    Use this
    https://help.sap.com/javadocs/pi/SP3/xpi/index.html
    http://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm
    which is part of
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/frameset.htm
    Regards,
    Prateek

  • Where can I get a java API specification for jdk 6 update 7?

    Where can I get a java API specification for jdk 6 update 7?
    About jdk-6u7-windows-i586-p.exe

    Flying_eagle wrote:
    I don't know what is it called. I think maybe it's a specification about api that lists java api and explains how to use them.
    Such as a html file just like a dictionary.Well, the API documentation I posted a link of in reply #1 is not an explanation of how to use the Java classes. It is more a reference. When you need a thorough explanation, I recommend doing some tutorials, or buying a book.

  • Where's the Oracle Forms Java API documentation for 11g?

    Hi,
    Can anyone point me in the direction of the Oracle Forms Java API documentation?
    The only thing I can find is this: http://www.oratransplant.nl/1012jdapiDoc/oracle/forms/jdapi/JdapiModule.html but this seems to be for 10.1.2 and it doesn’t correspond to the version I’m using (11.1.1.3).
    Help appreciated,
    Donal.

    i couldn't find the api either however if you implement the class you will simply get compiler errors explaining what you left out.

  • Suggest a java API to flatten dynamic XFA forms

    I have a dynamic XFA form created using LiveCycle designer 8.2
    I want to flatten the form programatically for further processing.
    Does Adobe provide any API for this ?
    Thnks.,

    Michael Mitiaguin (guest) wrote:
    : Previously two APIs were supported.
    : Just citing :
    : "The C Application Program Interface (C API) is a
    : state-of-the-art programmatic interface to Oracle TextServer3
    : with ConText,
    : and is shipped as part of the Oracle Text Developer's
    Workbench.
    : It consists of a set of C-coded functions that you can use to
    : build calls to Oracle TextServer3 into your own applications.
    : The Forms 4 Application Program Interface (API) is a
    : state-of-the-art programmatic interface to Oracle TextServer3
    : with
    : ConText, and is shipped as part of Oracle Text Developer's
    : Workbench. It consists of a set of PL/SQL functions and
    : procedures that you can use to build calls to Oracle
    TextServer3
    : into your own Oracle Forms 4 applications. "
    : What about Java API for the time being ? I am interested in
    : feasibily of Java application with quite typical functionality.
    : VCR screen for navigation among records which satisfy
    : advanced search conditions. Each record is a huge chunk of text
    : ( let's say presented by TextAreaControl or probably specific
    : JavaBean component. I know ctv32.ocx existence for viewing
    : something in native format in regard to Windows applications )
    : and I want to navigate from hit to hit having them highlighted.
    There is no specific functionality in JDeveloper for this API.
    For a generic JAVA API in Intermedia, I could find no references
    to one.
    You may want to search for more info on Intermedia at:
    http://www.oracle.com/database/options/intermedia.html
    Regards,
    -Chris
    null

Maybe you are looking for