Cant acess the sample code

I am not able to acess the sourcefiles on the page
http://otn.oracle.com/sample_code/tech/java/jsp/htdocs/jspdemo/jspdemosrc.html
Any help on this would be appreciated.
Thanks

Hi Asha,
The page you are referring to was with respect to a older version of the JSP sample code. Please refer to the updated samples at the location: http://otn.oracle.com/sample_code/tech/java/jsps/ojsp/content.html
These samples are certified against Oracle9iAS Containers for J2EE(OC4J). You can download the JAR file(OjspSamples.jar) from this page and deploy the EAR file in it with OC4J. The Install.html file in the JAR file has instructions to setup the samples with OC4J. Once setup, all the source files can be accessed through the application pages itself. Hope that helps.
Regards,
Srinivas
OTN Team.

Similar Messages

  • Where can I get the sample code of gantt chart?

    hi, all
    I want to use gantt chart component.I find this video http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html.
    where can I get the sample code in this video?
    I have got the demo <strong>dvt-faces-demo.ear</strong>.but in this demo, the code of events process is too simple.I want more detail code of date change, denpendency change and so on.
    this is my mail [email protected]
    Thanks
    Best Regards
    kenshin
    Edited by: Himura Kenshin on 2010-8-20 上午4:57
    Edited by: Himura Kenshin on 2010-8-20 上午9:03

    Hi Katia,
    Essentially the same sample app which was referenced above (http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/DVT_Gantt_Chart/ADFDVTGanttChartDemo.html). There are many features implemented in this sample which I'll be "reinventing the wheel" with. Its been a bit since I worked with the gantt component as I had to abandon for other development but will be getting back into it here shortly.
    Namely as I remember, I had difficult time getting the gantt to load quickly with large amount of tasks, difficulty getting the selected item when using context menus or buttons defined within the control, and a few other minor issues which could be fixed as I was using the first release of 11g and cannot remember specifics. I'll let you know as I get back into it if I see similar problems.
    For example, if you go to the ADF Demo Site (http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/index.jspx) and click on "Project Gantt Custom Menu and Toolbar - add menus and buttons on the Project Gantt Menu and Toolbar". The buttons work, however if you first select a row in the left and then click the button, you have to click twice for it to work (in my findings the action listener never "fires"). So in my case I want to select a row and then have a custom event for that selected row when I click the button. There were other similar findings I had when I tried to go off of the examples.
    Hope this helps.
    Thank you,
    Kris

  • How can I install the sample code in my pc?

    I have installed Oracle 8.17 on my pc, my operating system is Win2000. But now I cannot install the sample code on OTN. the requirement is winNT, is that the problem? I think Win2000 should be okay. Who can give me some advice, thank you in advance!!!

    Do what Ethmoid mentioned:  publish your site to a folder on your hard drive and open the html file with a text or html editor like the free TextWrangler.   That's the only way to view or edit the code created by iWeb when it publishes the website.
    However, there is a website design application, Flux, that can open a published iWeb site and view the code and webpage simultaneously.
    OT

  • I had lost my old I phone 4s and bought a new one but now i found my old one and its been so long i cant remember the  pass code to unlock it what do i do

    i had lost my old I phone 4s and bought a new one but now i found my old one and its been so long i cant remember the  pass code to unlock it what do i do

    http://support.apple.com/kb/HT1212

  • Where Can the Sample Code for That Balloon Game Demoed on WWDC for Swift Be Downloaded

    Hi. I can't find the balloon game sample code used in the WWDC in the Sample Code for iOS or OS X (assuming it's available for download). If it is available for download by Apple, where can it be downloaded?
    Thank you in advance.
    God bless, Cor. 13

    The assets are in the .playground file's file package. Select the .playground file in the Finder, right-click, and choose Show Package Contents to browse the file package. The graphics files are in the Resources folder inside the file package.

  • When I ran the sample code(WebLogicContextExample.java)

    Hi:
    when I ran the sample code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some errors.
    Any Body can help me. Thx a lot!
    Anny Chen
    Here's error message:
    C:\weblogic>java examples.jndi.WebLogicContextExample
    WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
    Copyright (C) 2000 WebGain, Inc.
    null
    java.lang.NoSuchMethodError: java.lang.NoSuchMethodException: getNameInNamespace
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
    Context_WLStub.java:127)
    at weblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
    tub.java:146)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at weblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
    java:86)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
    tInputStreamBase.java:248)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
    ectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
    nputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
    tInputStreamBase.java:308)
    at weblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
    9)
    at weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
    le(WLObjectInputStreamBase.java:269)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
    tInputStreamBase.java:254)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
    ectInputStreamBase.java:202)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
    nputStreamBase.java:949)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
    tInputStreamBase.java:308)
    at weblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
    Stream2.java:25)
    at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
    oteContextFactoryImpl_WLStub.java:99)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
    ialContextFactoryDelegate.java:316)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
    textFactoryDelegate.java:242)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java, Compiled Code)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:148)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:123)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
    71)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
    at javax.naming.InitialContext.<init>(InitialContext.java:146)
    at examples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
    :107)
    Initial context created
    Subcontext 'example' created
    Bound 'Example String created at 2000/1/3 &#19979;&#21320; 05:48:18' to 'example.one' for th
    e first time.
    Example finished successfully.

    This is very likely a CLASSPATH issue. Make sure weblogicaux.jar is
    at the head of your CLASSPATH.
    Mike
    "pamal" <[email protected]> wrote in message
    news:[email protected]...
    I just installed 5.1 with sp2 and have the same problem. Anyone know
    about this one?
    Anny Chen wrote:
    Hi:
    when I ran the sample
    code(c:\weblogic\examples\jndi\WebLogicContextExample.java) occuring some
    errors.
    Any Body can help me. Thx a lot!
    Anny Chen
    Here's error message:
    C:\weblogic>java examples.jndi.WebLogicContextExample
    WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
    Copyright (C) 2000 WebGain, Inc.
    null
    java.lang.NoSuchMethodError: java.lang.NoSuchMethodException:getNameInNamespace
    >>
    atweblogic.jndi.toolkit.BasicWLContext_WLStub.ensureInitialized(BasicWL
    Context_WLStub.java:127)
    atweblogic.jndi.toolkit.BasicWLContext_WLStub.<init>(BasicWLContext_WLS
    tub.java:146)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    atweblogic.common.internal.ClassTableEntry.newInstance(ClassTableEntry.
    java:86)
    atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
    tInputStreamBase.java:248)
    atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
    ectInputStreamBase.java:202)
    atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
    nputStreamBase.java:949)
    atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
    tInputStreamBase.java:308)
    atweblogic.jndi.toolkit.WLContextStub.readExternal(WLContextStub.java:7
    9)
    atweblogic.common.internal.WLObjectInputStreamBase.readPublicSerializab
    le(WLObjectInputStreamBase.java:269)
    atweblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjec
    tInputStreamBase.java:254)
    atweblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObj
    ectInputStreamBase.java:202)
    atweblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectI
    nputStreamBase.java:949)
    atweblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjec
    tInputStreamBase.java:308)
    atweblogic.rmi.extensions.AbstractInputStream2.readObject(AbstractInput
    Stream2.java:25)
    atweblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Rem
    oteContextFactoryImpl_WLStub.java:99)
    atweblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInit
    ialContextFactoryDelegate.java:316)
    atweblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialCon
    textFactoryDelegate.java:242)
    atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java, Compiled Code)
    atweblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
    tialContextFactoryDelegate.java:148)
    atweblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:123)
    atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:7
    71)
    atjavax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169
    at javax.naming.InitialContext.<init>(InitialContext.java:146)
    atexamples.jndi.WebLogicContextExample.main(WebLogicContextExample.java
    :107)
    Initial context created
    Subcontext 'example' created
    Bound 'Example String created at 2000/1/3 &#19979;&#21320; 05:48:18' to'example.one' for th
    e first time.
    Example finished successfully.

  • Where to download the sample code of Expense Tracker application

    Several JSC2 tutorial articles mention a sample application called Expense Tracker. Does anyone know where to download it? The links in the articles are invalid now.
    Thanks in advance

    Sorry for the inconvenience. The sample code is getting updated to work with the latest release of Creator. It will be replaced soon.

  • HELP!how to show lines in the sample code 'docsig'

    I want to show my handwritten in the pdf and my code is based on the sample code 'docsig',
    can anyone read the following code, and tell me the reason why it not show the line. Thanks!
    //from the project 'docsig' in the acrobat sdk 9.0 sample code
    CosObj DSHandler::CreateN2XObject( CosDoc cosDoc, const CosObj sigField, const CosObj sigAnnot, const ASFixedRect* const pBBoxRec )
    //Define a stream to draw a line
    char buf [500];
    sprintf(buf,"150 250 m 150 350 l S");
    //Get the stream length
    ASUns32 streamLength = (ASUns32)strlen(buf);
    //Create a CosObj object that represents the stream length
    CosObj LengthEntry = CosNewInteger(cosDoc, false,streamLength);
    //Create a CosObj that represents a stream dictionary
    //and sets its key-value pairs
    CosObj AttrDict = CosNewDict(cosDoc, false, 5);
    char *Length_KStr = "Length";
    CosDictPutKeyString(AttrDict, Length_KStr, LengthEntry);
                    CosObj  cosStm =  CosNewStream64(
                                   cosDoc,                                                  // cos document to use the newly created stream
                                    true ,                                                                      // cos stream is indirect object?
                                   0,                                                    // input stream
                                   0,                                                                                             // start reading from stream position
                                    false ,                                                    // stream is decoded?
                                   AttrDict,                                                // attributes dictionary
                                    CosNewNull(),      // encode params
                                   -1,                                                                                           // decode length
                                    false                                                                       // allowing delayed reading of input stream
        return cosStm;
    Why I just get a blank signature ? It should draw a line, but not showed in the pdf file.

    you need to change the following piece of code
    case 10:   // * pressed
    case 11:   // # pressed
    clearText = true;
    if (first) // first operand
    if(lcdField.getText().length()==0)
    result = 0.0;
    else
    result = Double.parseDouble(lcdField.getText());
    first = false;
    prevOperator = i;
    else //second operand already entered, so calculate total
    switch(prevOperator)
    case 10: //divide button
    result /= Double.parseDouble(lcdField.getText());
    break;
    case 11: //multiply button
    result *= Double.parseDouble(lcdField.getText());
    break;
    lcdField.setText(Double.toString(result));
    if(i==14) //equal button
    first = true;
    else
    prevOperator = i; //save last operator
    break;
    }its gets excuted when you press the * or # buuton

  • How do i reset my security questions if i dont remember them & i cant acess the password and security page?

    How do i reset my security questions if i dont remember them & i cant acess the password and security page? HELP ME PLEASE!!!!

    The Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • How can I get the sample code for crawler plugins?

    Hi,
    One SES document mentioned that there are three sample crawler plugins, which reside in $ORACLE_HOME/search/sample/agent. However, I couldn't find them. Did I miss installing something? Can anyone share with me the sample code?
    Thanks.
    Jun Gao

    The original 10.1.6 sample plugins are no longer distributed in 10.1.8.1 as there were a few problems with them. I would suggest you take a look at
    Simple File Crawler
    http://www.oracle.com/technology/products/oses/pdf/Buidling_Custom_CrawlersJan12_07.doc
    Sourcecode here:
    http://www.oracle.com/technology/products/oses/files/simplefilecrawlerpluginmanager.java
    and here
    http://www.oracle.com/technology/products/oses/files/simplefilecrawlerplugin.java
    And the two crawlers under "Sample Code" on the OTN page:
    http://www.oracle.com/technology/products/oses/index.html

  • Methods in SSOEnablerUtil class does not match the sample code

    Hi,
    Please refer to the sample code at:
    http://otn.oracle.com/sample_code/products/iportal/htdocs/sso/ssoover.html
    This mentions that the bakeAppCookie() and unbakeAppCookie() are methods in the SSOEnablerUtil class. I have downloaded iAS 9.0.2 from OTN.
    The SSOEnablerUtil class does not have the above mentioned methods. Are these methods similar to the encryptCookie() and decryptCookie() methods in the SSOEnabler class?
    Please do let me know.
    Thanks,
    Rashmi.

    This was a part of the old package.

  • Error while running the Sample code

    Hi,
    I am using jdeveloper 10.3 and I was trying to run the sample application that is present in the following url. I didnt change any thing in the code.
    http://www.oracle.com/technology/sample_code/products/jdev/readmes/samples/ldapdatacontrol/ldapapplication/public_html/index.html
    But While running the Test.java I get the following error. Is there any one who can help me in this please?
    javax.naming.OperationNotSupportedException: [LDAP: error code 53 - Please enter more characters]; remaining name 'dc=yourcompany,dc=users'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3058)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
    at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1808)
    at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321)
    at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
    at dc.ldap.model.LDAPSearch.executeSearch(LDAPSearch.java:55)
    at dc.ldap.runtime.Test.main(Test.java:19)
    Exception in thread "main" java.lang.NullPointerException
    Thanks,
    Haripriya.S

    Probably you'll get more answers when you post this kinda questions in the JDev forum.

  • Issues in Deploying the Sample code

    Hi,
    I downloaded  BusinessObjects Enterprise Java SDK Sample Code from SDK Developer Library.  I unzipped the content to a folder(Sample) in tomcat/webapps.  Now when I launched the application using the following url http://localhost:8080/Sample/start.jsp
    I am getting the following error.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.exception.SDKException resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.CrystalEnterprise resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.IEnterpriseSession resolves to a package
    Generated servlet error:
    Only a type can be imported. com.crystaldecisions.sdk.framework.ISessionMgr resolves to a package
    An error occurred at line: 36 in the jsp file: /start.jsp
    Generated servlet error:
    ISessionMgr cannot be resolved to a type
    An error occurred at line: 36 in the jsp file: /start.jsp
    Generated servlet error:
    CrystalEnterprise cannot be resolved
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Please let me know whether I have to do any configuration to make this application running.
    Thanks and Regards,
    Subbu S

    You can find the neccessary jar files here:
    C:Program FilesBusiness ObjectsCommon4.0javalib
    Check the developer guide for guidance on exactly which jars are required:
    https://www.sdn.sap.com/irj/boc/sdklibrary
    BusinessObjects Enterprise Java SDK > Developer Guide > Setting up the development environment > Web application setup > JAR files needed for deployment of Business Objects Software

  • How to run the sample code using the sdk?

    Hi,
    I want to run the jsp code from the enterprize sdk available in the sdn community. Can any one tell me how to execute these jsp sample codes and what is the pre-requisite regarding the set up.
    I already have the deployment ready.
    thanks
    AMar

    Hi Amar,
    To execute samples code, it is same what is required for normal J2EE application.
    Make sure add all the jars to your web application.
    These jars can be found on your BO server installation if windows.
    For BOE XI 3.x
    C:\Program Files\Business Objects\common\4.0\java\lib
    C:\Program Files\Business Objects\common\4.0\java\lib\external
    For BOE XI R2
    C:\Program Files\Business Objects\common\3.5\java\lib
    C:\Program Files\Business Objects\common\3.5\java\lib\external
    Thanks,
    Praveen.

  • Urgent can any one please gimem the sample code any simple BDC

    Hi all,
    Can any provide me with a simpel BDC code which involes the upload of the billing date and it's line items in a sales order creation  transaction.it's a urgent requirement.
    weg

    Hi,
    Refer this link u will get sample code and steps to proceed with
    http://www.sapdevelopment.co.uk/bdc/bdc_call.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    Thanks & Regards,
    Judith.

Maybe you are looking for