webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How can I use Java API into JSP???

    Posted Mon June 17, 2002 09:19 AM

    Sir,
    So I will be using the Java API’s in a java extension file.And I can compile and run…But How can I use these Java API’s into the JSP.

    Can anyone help me pls?

    Thank u.

    dgdfgf


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: How can I use Java API into JSP???

    Posted Mon June 17, 2002 09:59 AM

    I’m not sure if I understand correctly, what do you mean by “java extension file”.

    Anyway. You can access X-Application’s Java API by embedding code like this into you JSP pages:

    <%@ page import=“com.softwareag.xtools.xapplication.jsp." %>
    <%@ page import="com.softwareag.xtools.xapplication.businessdocument.
    ” %>

    <% SessionContext sessionContext = ServletSessionContext.getSessionContext(pageContext); %>

    The SessionContext object holds the state of the current user’s session, in some sense it’s the mother of all X-Application objects. You can use it, e.g., to access a document like this:
    <% BusinessDocument document = sessionContext.getDocument(null); %>
    … work with document …


    Michael

    Software AG Germany, Darmstadt


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: How can I use Java API into JSP???

    Posted Mon June 17, 2002 10:16 AM

    Thank u sir!!

    But in your Examples API.You have stored the API files in .java extension??

    So always I should use the API’s only in the way you have given right?? I should not write it in separate .java file right??

    dgdfgf


    #Tamino
    #webMethods
    #API-Management


  • 4.  RE: How can I use Java API into JSP???

    Posted Mon June 17, 2002 10:39 AM

    I’m confused. What do you mean by “java extension”?

    Michael

    Software AG Germany, Darmstadt


    #webMethods
    #Tamino
    #API-Management


  • 5.  RE: How can I use Java API into JSP???

    Posted Mon June 17, 2002 11:39 AM

    Java extensions :-
    for example “CreaterPropertyDocuments.java”
    Like files with .java (this is java extension)

    dgdfgf


    #API-Management
    #webMethods
    #Tamino


  • 6.  RE: How can I use Java API into JSP???

    Posted Tue June 18, 2002 04:38 PM

    Hello,

    this topic will be moved to the Assistance Forum in the next days.
    The assistance forum is intended to be used for technical questions and answers.

    Thank you for your understanding.

    Regards,
    Christian.


    #API-Management
    #Tamino
    #webMethods