How to invoke a jsp page from java which does not use Servlets?

Hello,
I am working in Documentum. I am trying to invoke a jsp page from another java page which does not use Servlets.
I tried doing this by just instantiating the java class related to the jsp page from my present java class.In my java class related to the jsp page, I have defined onInit() and onRender() methods.
Now, I am trying to call the jsp page from my present java class by just instantiating the java class related to the jsp page. This throws a java.lang.NullPointerException.
Any comments or suggestions on this.Any help would be appreciated.
Thanks,
Ranjith M.V

RanjithM.V wrote:
Hello,
Thanks for the reply. One important thing I forgot to mention. I am also using xml component.And?
As this is the standard way used for coding in Documentum, I do not want to use Beans.Well, JSP's should, in and of themselves, contain no functional code. It should all be only display.
Without that is it not possible?What did I say? I said,
masijade wrote:
It is possible, but I very, very, very, much doubt, that it would be worth the effort.And, if you don't know how, a forum is not truely going to be able to help you implement it (at least not in less than a few years time, at which point it would be outdated).
>
Appreciate your understanding and help.
Thanks,
Ranjith M.V

Similar Messages

  • How to open a JSP page from a form ??? plz help

    hi ..
    i want to know how to open a jsp page from a oracle apps form using a button .
    the requirement is that whenever we click on the button created on the form, it opens a jsp page.
    plz help me ..its urgent !! :-(

    In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
    Here is an example to hyperlink ans button to open a new page:
    # From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
    # Create a second portlet page, called PortletPage2.jsp, for the project.
    # Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
    # Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
    # Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
    # Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
    # Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
    # Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
    Sherry
    Creator Team

  • How to call a jsp page from oaf and run in jDeveloper

    Hi all,
    I created sample jsp and then tried.
    String temp = "sample.jsp?";
    pageContext.setForwardURL(temp,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    It worked.
    But when i tried with one of the custom page that i downloaded from server it is giving error.
    But now i need to call that page.
    Its Code is given on below link:
    Re: how to call a jsp page from oaf
    Please help me to do this.
    Thanks in advance.
    Regards,
    Raj

    Raj,
    1. Hope you have placed the custom jsp page (which you have downloaded from server) under "jdevhome\jdev\myhtml\OA_HTML" directory ?
    2. Try to run the custom jsp page from Jdeveloper directly and check whether its working properly or not ?
    (i.e. add jsp page to any project in Jdeveloper then right click on jsp page and select Run xxx.jsp)
    3. If page errors out then custom jsp page seems require few parameters to run it successfully. Pass all requied parameters and test.
    4. There is no problem in the way you are calling jsp page from OAF page.
    regards,
    Anand

  • How to call a JSP page from Applications menu?

    Hi partners,
    I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
    Any idea will be really appreciated.
    Thanks in advance.
    Frank Mtz.

    Hi Frank,
    if u know the solution please share it with me. i'm looking for the same scenario.
    thanks in advance,
    anish

  • How can I deactivate a device from Sync, which is not available already?

    How can I deactivate a device from Sync, which is not available already? It would be good to have a list of my synced devices.

    '''To deactivate synced devices:'''
    1. Open the Sync options window.
    2. Click on Deactivate This Device. A prompt will appear.
    3. Click Reset All Information to confirm. Your device's data will no longer be synced with the server's Sync data and you'll be logged out of your Sync account.
    For more Information on Adding, renaming and deactivating your devices
    please follow the link [https://support.mozilla.org/en-US/kb/how-do-i-manage-my-firefox-sync-account?esab=a&s=sync+devices&r=0&as=s#w_adding-renaming-and-deactivating-your-devices Managing Sync Devices]

  • How to Open another jsp page from jsp page

    Hi,
    I am new to JSP. I need help to handle issue given below:
    I have created one JSP Page for Login which contains Username and Password with a Submit Button. Once user inputs UserName and Password and Press Submit Button, It calls another JSP Page "Validate_login"
    Validate_Login JSP does a JDBC call to Databse and validate User Name and Password. Now i want to open a "Employee.jsp" page if Username and Password matches with the one in database.
    Pls advice what function or tag should i use to open this page in If (condition) true section.. I tried Window.open but it return back with error.

    I tried with the function suggested by Doly. But nothing is happening. It doesn't redirect to any page. only a blank page comes.
    here is complete code . pls correct me if i am wrong somewhere.
    this is code of Validate_Login.jsp page which is invoked when user press login button on login.jsp.
    my purpose is to validate username and password from database and redirect to employee.jsp if it is ok else back to login.jsp
    here is source of Validate_login.jsp
    =============================================================
    <%@ page language="java" import="java.sql.*" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Validate Login</title>
    </head>
    <body>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String viewPATH = "c:/MyData.mdb";
    String dsnPATH = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb); " +
    "DBQ="+viewPATH+"; " +
    "UserCommitSync=Yes; " +
    "Threads=3; " +
    "SafeTransactions=0; " +
    "PageTimeout=5; " +
    "MaxScanRows=8; " +
    "MaxBufferSize=2048; " +
    "DriverId=281; " +
    "DefaultDir=C:/ProgramFiles/CommonFiles/ODBC/DataSources";
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         conn = DriverManager.getConnection(dsnPATH, "", "");
         stmt = conn.createStatement();
    rs= stmt.executeQuery("SELECT * FROM Employee where emp_id='"+username+"'");
    while(rs.next())
    String pass = rs.getString("password");
    if (pass.equals(password))
    { response.sendRedirect("Employee.jsp");}
    else
    { response.sendRedirect("login.jsp");}
    catch(Exception e)
    e.printStackTrace();
    finally
         if(stmt!=null) stmt.close();
         if(conn!=null) conn.close();
    %>
    </body>
    </html>

  • DOS 11g SOA have the Locator API's - How to Invoke a BPEL process from Java

    In BPEL 10.1.3.1, a java client could use the "Locator" API's to look up a BPEL service and invoke it directly from Java,
    Is that still present in SOA 11g ? Or is there another way to look up the BPEL process ...
    Here's an example of the 10g BPEL Service locator facilities :
    Get the BPEL service locator. This is retrieved as follows:
    loc = new Locator(domain, domainPassword);
    The initial installation BPEL domain is "domain" and the initial password is "bpel". We then use the locator to get the delivery service. We could also use the locator to retrieve the workflow service.
    IDeliveryService svc = (IDeliveryService)loc.lookupService(IDeliveryService.SERVICE_NAME);
    Now we have the delivery service we can "deliver" requests to the BPEL process. To do this we first need to create a new message.
    NormalizedMessage msg = new NormalizedMessage();
    String content = "<SyncHelloWorldProcessRequest xmlns=\"http://antony.blog/SyncHelloWorld\">"+
    "<input>"+
    name+
    "</input>"+
    "</SyncHelloWorldProcessRequest>";
    msg.addPart(msgPart, content);

    Can you please tell me how to include adf binding.ws in composite.xml ? My composite.xml for your ref:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle SOA Modeler version 1.0 at [11/1/10 5:41 PM]. -->
    <composite name="BPEL2"
    revision="1.0"
    label="2010-11-01_17-41-11_593"
    mode="active"
    state="on"
    xmlns="http://xmlns.oracle.com/sca/1.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/">
    <import namespace="http://xmlns.oracle.com/CallBPEL_jws/BPEL2/BPELProcess1"
    location="BPELProcess1.wsdl" importType="wsdl"/>
    <service name="bpelprocess1_client_ep" ui:wsdlLocation="BPELProcess1.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/CallBPEL_jws/BPEL2/BPELProcess1#wsdl.interface(BPELProcess1)"/>
    <binding.ws port="http://xmlns.oracle.com/CallBPEL_jws/BPEL2/BPELProcess1#wsdl.endpoint(bpelprocess1_client_ep/BPELProcess1_pt)"/>
    </service>
    <component name="BPELProcess1">
    <implementation.bpel src="BPELProcess1.bpel"/>
    </component>
    <wire>
    <source.uri>bpelprocess1_client_ep</source.uri>
    <target.uri>BPELProcess1/bpelprocess1_client</target.uri>
    </wire>
    </composite>
    Eric, when I select the BPEL wsdl file in "Create Web Service Data Control" wizard, immediately I am getting the error. When I click 'OK', the 'Service' dropdown is disabled and blank in the wizard.
    Thanks for pointing to the sample application URL. But it is built in jdev 10g. Can I migrate it to 11g?
    Thanks both of you!

  • How to convert a .jsp to a .java/.class file for use in peoplesoft

    Hi java/jsp experts,
    I want to convert a .jsp to a .java/.class file. is there a tool available, please let me know if you have any pointers....
    or can i do it manually:
    these are a few lines that the .jsp contains, and i would like to translate this to be in .java/.class format:
    <%@ page import="sun.misc.BASE64Encoder, javax.crypto., javax.crypto.spec."%>
    <%@ page import="java.util.StringTokenizer" %>
    <%@ page import="java.util.Map" %>
    <%!
    sb.append("<input type=\"hidden\" name=\"orderPage_serialNumber\" value=\"");
    sb.append(serialNumber);
    sb.append("\">\n");
    return sb.toString();
    %>
    how can i translate the above import statements and html elements from jsp to java, please let me know.
    Once i have the .java file created from the .jsp, I will compile .java to create the .class file and invoke the .class in peoplecode by using java apis available in peopletools.
    Thanks in advance.

    Is there a way convert a binary .exe file( compiled by
    another compiler) into Java .class/.jar file ? Anyone
    know of a free program that can do this?It's not possible. There are many decompilers and disassemblers for Java but nothing will take you from ANY binary to Java source. It would be the end of computing as we know it and the beginning of a new era -:)

  • How I can delete a page from BC if customer not pay for it?

    How I can delete a web page from BC. My customer does not pay for the website since the end of 2014. He does not want it anymore. The can not open admin panel  I can not delete a page and remove all records of domains assigned to this page.
    Support from BC was useless:
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:08:07 am)
    You can't delete a site with over due invoice
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:09:06 am)
    Anything else I may assist you with today?
    ireneusz (Sat, 1/31/2015, 02:11:01 am)
    if the customer does not pay and I want to delete a page that I have to pay for it?
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:11:09 am)
    Yes
    ireneusz (Sat, 1/31/2015, 02:14:17 am)
    and what happens if I do not pay and customer don't pay also? Site is still running? and I do not I wanna to.
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:15:17 am)
    It will be disabled after 21 days of the dua date
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:15:22 am)
    Due
    ireneusz (Sat, 1/31/2015, 02:16:33 am)
    it is ok. thanks
    Aishvarya Raj Rastogi (Sat, 1/31/2015, 02:16:38 am)
    Thank you for contacting us and have a great day.
    After 3 months of site is still running and online
    the only thing I can do is remove the template via ftp
    Wiadomość była edytowana przez: Ireneusz Szandala

    Log in to your website, click site settings > site management > delete site. Hope this helps!

  • How to print a specific page from a given PDF document, using command line, please?

    Hello,
    I need your advise, please. My customer requires to print a specfic page from a pdf document they receive, using command line or 3rd party solution.
    Anything you can advise, please? I have seen AcroRD32.exe options, but can only print the whole document.
    Kind Regards

    Not sure if there are any examples. The Acrobat SDK is a must, but it is best treated as documentation to study rather than examples to copy. The examples only illustrate a tiny fraction of the capabiliies.
    (One other note: the solution must involve the client owning Acrobat; Acrobat is not for server use).

  • Weblogic 8.1 JAAS login.configuration.provider from java.security does not seem to work?

    We configure a custom implementation of the JAAS
    javax.security.auth.login.Configuration class for our applications security
    framework in JRE_LIB/security/java.security using the entry
    login.configuration.provider=com.foo.SecurityConfiguration
    However, this does not seem get picked up and the configuration provider
    class instead seems to default to
    weblogic.security.service.ServerConfiguration
    instead.
    Has anyone else seen this?
    We're using the JDK bundled with Weblogic 8.1
    TIA for your help

    Thanks for all the posting re. this issue....
    I think the way Weblogic implemented "support" for JAAS in 8.1 totally
    blows. In fact, when I asked BEA support about this, they basically sent me
    an email saying that "Weblogic owns the JAAS configuration" so if you have a
    security framework that is application server agnostic, but leverages JAAS
    then you are screwed when deploying on Weblogic 8.1.
    I looked for a workaround and believe that instead of using an entry in
    java.security for your custom configuration class, if you set the JVM
    parameter
    -Dlogin.configuration.provider=com.foo.SecurityConfiguration
    then what happens is that the Weblogic custom class
    weblogic.security.service.ServerConfiguration is invoked by JAAS. It tries
    to load the login module configuration and if that fails, it delegates to
    com.foo.SecurityConfiguration. So this should enable both the weblogic
    security framework and a custom security framework that are both based on
    JAAS
    I'm currently testing this out
    "Lloyd Fernandes" <[email protected]> wrote in message
    news:[email protected]...
    >
    Robert Greig <[email protected]> wrote:
    Lloyd Fernandes wrote:
    "Lloyd Fernandes" <[email protected]> wrote:
    "Prashant Nayak" <[email protected]> wrote:
    We configure a custom implementation of the JAAS
    javax.security.auth.login.Configuration class for our applications
    security
    framework in JRE_LIB/security/java.security using the entry
    login.configuration.provider=com.foo.SecurityConfiguration
    However, this does not seem get picked up and the configuration
    provider
    class instead seems to default to
    weblogic.security.service.ServerConfiguration
    instead.
    Has anyone else seen this?
    We're using the JDK bundled with Weblogic 8.1
    TIA for your help
    As per documentation in the API JAVADOCS forjavax.security.auth.login.Configuration
    >>>>
    >>>>
    The default Configuration implementation can be changed by settingthe
    value of
    the "login.configuration.provider" security property (in the Java
    security
    properties
    file) to the fully qualified name of the desired Configurationimplementation
    class. The Java security properties file is located in the file named
    <JAVA_HOME>/lib/security/java.security,
    where <JAVA_HOME> refers to the directory where the JDK was installed.
    Have you tried to use a startup class to set the configuration providerusing
    javax.security.auth.login.setConfiguration(YourConfigClass);
    Weblogic probably uses this to set the configuration class to it'sown.
    You have to consider whether this is really something you want to do
    however. If you want to get WLS to use a custom authenticator use its
    SSPIs. You can configure the order etc. in the admin console.
    By overriding the configuration you override it for the server as a
    whole which can mean for example that you cannot login to the admin
    console. Having said this, from memory, I believe that the property is
    ignored in WLS. However you can still call
    Configuration.setConfiguration if you really want to.
    The fact that there is a "global static" in the Configuration class is
    a
    Bad Thing IMHO, that was never really designed for an app server
    environment.
    Robert
    If it is a bad thing to have a static how come Weblogic uses it instead ofthe
    standard way of modifying the property in java security file - it isbecause
    weblogic wants it's own way of implementing instead of using using the'plugable
    module' architecture of JAAS.
    When weblogic advertised that it will support JAAS the impression was thatWeblogic
    would provide a login module that will implement the security mechanism itwanted
    - instead it went it's own way.
    Also consider the following
    1. JAAS specifies a mechanism for multiple configurations based on a'application'.
    This is not possible in the current 'weblogic security mechanism'
    2. Weblogic says it supports JAAS but what it does not tell you is that inorder
    to use available login modules you have to write a whole bunch of code tosupport
    principal validators and authenticators. (I begin to wonder if write oncedeploy
    anywhere is not part of Sun's certification process anymore)

  • TS1591 I come from Kenya which does not have an apple store, how else can I purchase iTunes or movies? I am in London visiting, is it possible to purchase a gift card and use it to buy music or movies. My billing address is in Kenya...need urgent assistan

    How can I make use of I tunes if my country doesn't have apple store?

    If you're just visiting the UK, then you probably cannot open an iTunes Store account there, even if you purchase an iTunes prepaid card, since opening an account requires a valid mailing address there. If you have such an address, you could open an account, but you could not use that account once you return to Kenya since the terms of the iTunes Stores all (at the demand of the content owners) prohibit use from outside of the relevant country, so you'd have to use up the credit from the card before you leave the UK.
    Until such time as Apple is able to obtain the rights to sell music and movies in Kenya, you'll need to look to other sources for such content, at least on an ongoing basis.
    Regards.

  • My document.numbers can not be opened how can i recover the version from yesterday i was not using time machine and it was not in icloud. is there an app i can buy that might help

    my document.numbers can not be opened how can i recover the version from yesterday? i was not using time machine and it was not in icloud. is there an app i can buy that might help

    Thanks Andy,
    I wish I could have told my sister about this as she could not open my homepage back before my new iWeb site. She now can open my site without the yet in case denial window does appear = I thank you.
    I think my iWeb site works as Noone has said otherwise from any platform etc...
    Alex L
    I do agree that should not have to be a consideration for any users so i agree that it would be great if Apple could allow simplicity to run seemlessly.
    I have had this problem since Homepage, and here is
    what has worked for me. I send out the link, and
    then for PC users I send the link with "<" after the address (without quotation
    marks. e.g., <http://site.com>).
    I also put a note that if that doesn't work, to just
    copy and paste the link into a browser. With that I
    have only had 1 person say they still can't open.
    Everyone else gets it to work.
    It's a lot to do and seems like a hassle, but you get
    used to it.
    Hope this helps!
    Andy Martini
    PS - APPLE! When are you going to fix this??! It
    seems like such a small thing yet you guys have been
    stumped for YEARS on this!

  • Java Dynpro does not used portal default theme.

    Dear Expert,
    We have recently upgraded our support pack and everything works fine except the portal theme. We have our customize portal theme and we make it as the default portal theme. Everything looks fine with the portal where the customize theme is loaded. However when I call up some standard Java Web Dynpro application such as the Overview page or Leave Application, it is using the SAP default template (SAP_TRADESHOW). So it is a bit wierd where each part of the portal is using our customize theme but the content area where the Java Dynpro is loaded is using the SAP default theme.
    When i am trying to view the source of the content area (Overview Page). It is showing something like this.
      <link rel="stylesheet" type="text/css" href="../../../resources/sap.com/tc~wd~dispwda/global/SSR/themes/sap_tradeshow/ur/ur_ie6.css">
      <style type="text/css">
        .hidden {
          position: absolute;
          top: 0px;
          left: 0px;
          margin: 0px;
          border: 0px;
          width: 0px;
          height: 0px
      </style>
    When I compare it with my production (before the support pack upgrade and everything is fine), the code are as below.
      <link rel="stylesheet" type="text/css" href="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/ACNTHEMEI/ur/ur_7.0_ie6.css?7.0.13.1.0">
      <style type="text/css">
        .hidden {
          position: absolute;
          top: 0px;
          left: 0px;
          margin: 0px;
          border: 0px;
          width: 0px;
          height: 0px
      </style>
    Anyone know how to default the standard Java Dynpro to use the customize portal default there?
    Thanks.
    Regards,
    Bryan.

    Brian,
    WebDynpro application will not use the protal theme.
    Thanks,
    Hamendra

  • URGENT:How to pass parameter to page from java portlet

    Hi,
    All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
    Thanks,
    Ceren

    Hmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
    (java.net.URLDecoder.decode(String s) decodes btw)

Maybe you are looking for

  • Error while running Deferral for August month in RERX module

    Hi Form, Can any body help me as I am getting error while running Deferral run for August month. Error Description is "Accrual subobject IS10000000001000057/4BC487BDCA9200E8E1008000AC10025F not found" We had already taken advance rent for the custome

  • Addind text in a new line within a  text box

    Hi everyone, I have a classic text box component that i am using inside director. I want to show some text inside this text box in such a way that it should come in. For example I am adding "Item 1" , "item 2", " item 3" then every item should be pla

  • Mail, mail

    When I am using mail and sending mails the sent mails are not being stored in the mail server (Yahoo, Gmail)

  • Snapshot Rep. between 2 schemas in same instance

    Hi, I need to have two copies of my data within one instance. One copy is updateable by an admin user and the other copy is read- only by other users. The problem is that I want to allow the admin user to update the data without the others being affe

  • Database Performance task

    Hi, Who takes up the task of database performance tuning....is it the BW consulant or anyother? Thanks