Trying to implement 2 interfaces

I am wondering how i might implement two different interfaces into a class (ItemListener and ActionListener) so that i can have checkboxes and buttons that will create events. The class already extends Applet so that i can't just extend an adapter and then implement one interface, i need to be able to inherit from Applet and each interface. Will i have to just create another class that implements one of them and create objects of that class?

Hi,
there's not problem to implement more than one interface:
public class MyClass extends Applet implements ItemListener, ActionListenerRegards
Ldinka

Similar Messages

  • No implementation interfaces created using jaxb 2.0 ?

    Hi,
    I've downloaded the jaxb 2.0 RI and am trying to follow the short tutorial at http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html.
    On trying to bind the schema via xsj,sh, which also is meant to generate the implementation interfaces (in an impl directory), I see these aren't created - the other classes are generated OK. Where or how should they be created ?
    thanks

    I am on the same boat. Have you found the answer to this?
    Thanks,
    Juan

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader.

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader.
    For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer.
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>".
    Current Situation: The above command line parameter when executed is working as expected in a User's Workspace.
    When executed in a command line on the Application Server, it is working as expected.
    But, the same is not working while executing it from Deployed environment.
    Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2.
    Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Trying to implement a VPD policy but got the following error ORA-20001

    hey good day,
    I'm trying to implement a VPD policy to my application. After I have performed the below task (Label 1) in oracle 10g database. When I'm about to access my application page in ApEx 3.2.1 I got the following error
    ORA-20001: get_dbms_sql_cursor error ORA-28110: policy function or package CHARLES.VPD_PREDICATE has error
    any form of assistance will be greatly appreciated.
    thanks in advance
    Label 1
    USER is "VPD_ADMIN"
    SQL> create or replace context empnum_ctx using set_empnum_ctx_pkg;
    Context created.
    SQL> CREATE OR REPLACE PACKAGE set_empnum_ctx_pkg IS
      2    PROCEDURE set_empnum;
      3  END;
      4  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY set_empnum_ctx_pkg IS
      2    PROCEDURE set_empnum IS
      3     emp_id NUMBER;
      4    BEGIN
      5     SELECT EMPNUM INTO emp_id FROM CHARLES.INSTRUCTOR
      6     WHERE upper(username) = nvl(v('APP_USER'), USER);
      7     DBMS_SESSION.SET_CONTEXT('empnum_ctx', 'empnum', emp_id);
      8
      9    EXCEPTION
    10      WHEN NO_DATA_FOUND THEN NULL;
    11    END;
    12  END;
    13  /
    Package body created.
    SQL> create or replace package vpd_policy as
      2    function vpd_predicate(object_schema in varchar2 default null, object_name in varchar2 default null)
      3     return varchar2;
      4  end;
      5  /
    Package created.
    SQL> create or replace package body vpd_policy as  function vpd_predicate(
      2   object_schema in varchar2 default null, object_name in varchar2 default null)
      3     return varchar2 as
      4
      5      BEGIN
      6     if (USER = 'ADMIN') and (v('APP_USER') is null) or
      7        (USER = 'MICHAEL.GRAY') and (v('APP_USER') is NULL) then
      8       return '';
      9     else
    10       return '(
    11             exists (
    12                     select  "INSTRUCTOR"."EMPNUM" as "EMPNUM",
    13                             "INSTRUCTOR"."FIRSTNAME" as "FIRSTNAME",
    14                             "INSTRUCTOR"."LASTNAME" as "LASTNAME",
    15                             "LOAD"."COURSEID" as "COURSEID",
    16                             "COURSE"."CREDIT" as "CREDIT",
    17                             "COURSE"."HPW" as "HPW",
    18                             "LOAD"."CAMPID" as "CAMPID",
    19                             "LOAD"."YR" as "YR",
    20                             "INSTRUCTOR"."POS" as "POS",
    21                             "INSTRUCTOR"."USERNAME" as "USERNAME",
    22                             "INSTRUCTOR"."DEPARTMENT_NAME" as "DEPARTMENT_NAME",
    23                             "LOAD"."SEMESTER" as "SEMESTER"
    24                     from    "COURSE" "COURSE",
    25                             "INSTRUCTOR" "INSTRUCTOR",
    26                             "LOAD" "LOAD"
    27                     where   "INSTRUCTOR"."EMPNUM"="LOAD"."EMPNUM"
    28                     and     "LOAD"."COURSEID"="COURSE"."COURSEID"
    29                     and     department_name = (
    30                                     select department_name from departments
    31                                     where upper (assigned_to) = nvl(v(''APP_USER''),USER) )
    32                                     )
    33
    34                     or upper(username) = nvl(v(''APP_USER''), USER)
    35                                                ) ';
    36
    37     END IF;
    38  END vpd_predicate;
    39  END vpd_policy;
    40  /
    Package body created.
    SQL> begin
      2  dbms_rls.add_policy(
      3  object_schema => 'charles',
      4  object_name => 'load',
      5  policy_name => 'Loading Policy',
      6  function_schema => 'charles',
      7  policy_function => 'vpd_predicate',
      8  statement_types => 'select, update, insert, delete');
      9  end;
    10  /
    PL/SQL procedure successfully completed.

    ORA-20001 isn't an Oracle error message it was coded into your application by a developer: Look it up.
    Consider too the following:
    EXCEPTION
       WHEN NO_DATA_FOUND THEN NULL;so if the employee identifier is not found ... is this really what you want? If an employee isn't valid shouldn't you know it?

  • Trying to implement a mail queue

    I'm trying to implement a very basic mail queue using ExecutorService and a Callable split into a producer which builds the email and an email queue and a consumer to send the queued message out but I keep getting:
    java.lang.NullPointerException
         at javax.mail.Transport.send(Transport.java:97)
         at org.bedework.mail.sendMail.call(sendMail.java:45)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I'm not sure how to get the transport variable passed across and read by the consumer thread.
    The consumer code is:
    public class sendMail implements Callable<Object> {
         private ArrayBlockingQueue<Object>  queuedMail;
         private Transport trans;
         private MimeMessage msg;
         private Logger log = Logger.getLogger(sendMail.class);
         public sendMail (ArrayBlockingQueue<Object> queuedMail, Transport trans) {
              this.trans = trans;
              this.queuedMail = queuedMail;
         public Object call() throws Exception {
              try {
                   queuedMail.poll();
                   synchronized (queuedMail) {
                      if (queuedMail.isEmpty()) {
                         queuedMail.wait(1000);
                   try {
                        trans.send(msg);
                        Thread.sleep(1000);
                   } catch (Exception e) {
                        e.printStackTrace();
              } catch (Exception e) {
                   e.printStackTrace();
              return null;
    }The code that calls it is:
    tr = sess.getTransport(config.getProtocol());
            pool.submit(new buildMail(sess, cal, originator, to, subject));
            pool.submit(new sendMail (mailqueue, tr));I'd be grateful for any pointers in getting this sorted out.

    First, read this FAQ item:
    [http://java.sun.com/products/javamail/FAQ.html#send|http://java.sun.com/products/javamail/FAQ.html#send]
    Then explain to me how "msg" is ever set in your sendMail class.

  • Trying to implement EAP/TLS using java (as part of RADIUS server)

    Hi
    This is a cross port since I didn't know which forum to post in!
    I'm trying to implement a RADIUS server (EAP/TLS) as part of my master thesis. I'm not used to Java SSL libraries and can't get it to work. The server will respond to an accesspoint that uses 802.1x. I have created certificates using openssl and imported the "cert-clt.pl2"and "root.pem" to a laptop trying to connect to the accesspoint. On the server side i imported the "cacert.pem" and "cert-srv.der" using keytool to a keystore. In my code I read the keystore and create the SSLEngine with following code:
              KeyStore ksKeys = KeyStore.getInstance("JKS");
                ksKeys.load(new FileInputStream("certs/FeebeeCommunity.keystore"), passphrase);
                KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
                kmf.init(ksKeys, passphrase);
                KeyStore ksTrust = KeyStore.getInstance("JKS");
                ksTrust.load(new FileInputStream("FeebeeCommunity.keystore"), passphrase);
                TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
                tmf.init(ksKeys);
                sslContext = SSLContext.getInstance("TLS");
                sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);
                sslEngine = sslContext.createSSLEngine();
                sslEngine.setUseClientMode(false);
                sslEngine.setNeedClientAuth(true);
                sslEngine.setWantClientAuth(true);
                sslEngine.setEnableSessionCreation(true);
                appBuffer = ByteBuffer.allocate(sslEngine.getSession().getApplicationBufferSize());
                appBuffer.clear();
                netBuffer = ByteBuffer.allocate(sslEngine.getSession().getPacketBufferSize());
                netBuffer.clear();All I want to do with TLS is a handshake.
    I'm not talking ssl using sockets instead I receive and send all TLS data encapsulated in EAP packet that are incapsulated in RADIUS packets. I start off with sending TLS-Start upon I recive TLS data. I handle it with the following code:
           SSLEngineResult result = null;
            SSLEngineResult.HandshakeStatus hsStatus = null;
            if( internalState != EAPTLSState.Handshaking ) {
                if( internalState == EAPTLSState.None ) {
                    TLSPacket tlsPacket = new TLSPacket( packet.getData() );
                    peerIdentity = tlsPacket.getData();
                    internalState = EAPTLSState.Starting;
                    try {
                        sslEngine.beginHandshake();
                    } catch (SSLException e) {
                        e.printStackTrace();
                    return;
                else if(internalState == EAPTLSState.Starting ) {
                    internalState = EAPTLSState.Handshaking;
                    try {
                        sslEngine.beginHandshake();
                    } catch (SSLException e) {
                        e.printStackTrace();
            TLSPacket tlsPacket = new TLSPacket( packet.getData() );
            netBuffer.put( tlsPacket.getData() );
            netBuffer.flip();
            while(true) {
                hsStatus = sslEngine.getHandshakeStatus();
                if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_TASK) {
                    Runnable task;
                    while((task=sslEngine.getDelegatedTask()) != null) {
                        new Thread(task).start();
                else if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_UNWRAP) {
                    try {
                        result = sslEngine.unwrap( netBuffer, appBuffer );
                    } catch (SSLException e) {
                        e.printStackTrace();
                else {
                    return;
            }When I try to send data I use the following code:
               SSLEngineResult.HandshakeStatus hsStatus = null;
                SSLEngineResult result = null;
    //            netBuffer = ByteBuffer.allocate(EAPTLSMethod.BUFFER_SIZE);
                netBuffer.clear();
                while(true) {
                    hsStatus = sslEngine.getHandshakeStatus();
                    if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_TASK) {
                        Runnable task;
                        while((task=sslEngine.getDelegatedTask()) != null) {
                            new Thread(task).start();
                    else if(hsStatus == SSLEngineResult.HandshakeStatus.NEED_WRAP) {
                        try {
                            result = sslEngine.wrap( dummyBuffer, netBuffer );
                        } catch (SSLException e) {
                            e.printStackTrace();
                    else {
                        if( result != null && result.getStatus() == SSLEngineResult.Status.OK ) {
                            int size = Math.min(result.bytesProduced(),this.MTU);
                            byte [] tlsData = new byte[size];
                            netBuffer.flip();
                            netBuffer.get(tlsData,0,size);
                            TLSPacket tlsPacket = new TLSPacket((byte)0,tlsData);
                            if( size < result.bytesProduced() ) {
                                tlsPacket.setFlag(TLSFlag.MoreFragments);
                            return new EAPTLSRequestPacket( ID,
                                    (short)(tlsPacket.getData().length + 6),
                                    stateMachine.getCurrentMethod(), tlsPacket );
                        else {
                            return null;
                    }After I sent TLS-Start I receive data and manage to process it but when then trying to produce TLS data I get the following error:
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:992)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:459)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1054)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1026)
    at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:411)
    at RadiusServerSimulator.EAPModule.EAPTLSMethod.buildReq(EAPTLSMethod.java:125)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.methodRequest(EAPStateMachine.java:358)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.run(EAPStateMachine.java:262)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1352)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:164)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:638)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:450)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:178)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
    at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:437)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:930)
    Any help wold be most greatfull, if any questions or anything unclear plz let me know.
    add some additional information here is a debug output
    Before this I have sent a TLS-star package and this is when I receive new information and then try to create the answer
    [Raw read]: length = 5
    0000: 16 03 01 00 41 ....A
    [Raw read]: length = 65
    0000: 01 00 00 3D 03 01 41 A4 FC 16 A8 14 89 F0 59 81 ...=..A.......Y.
    0010: C8 C9 29 C2 09 D1 0A 70 18 58 DC 2E B0 C8 14 90 ..)....p.X......
    0020: D4 FD A4 C6 32 C9 00 00 16 00 04 00 05 00 0A 00 ....2...........
    0030: 09 00 64 00 62 00 03 00 06 00 13 00 12 00 63 01 ..d.b.........c.
    0040: 00 .
    Thread-2, READ: TLSv1 Handshake, length = 65
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1084488726 bytes = { 168, 20, 137, 240, 89, 129, 200, 201, 4
    1, 194, 9, 209, 10, 112, 24, 88, 220, 46, 176, 200, 20, 144, 212, 253, 164, 198,
    50, 201 }
    Session ID: {}
    Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, SSL_RSA_WITH
    _3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_RSA_EXPORT1024_WITH_RC4_56_SHA,
    SSL_RSA_EXPORT1024_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EX
    PORT_WITH_RC2_CBC_40_MD5, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_DE
    S_CBC_SHA, SSL_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA]
    Compression Methods: { 0 }
    [read] MD5 and SHA1 hashes: len = 65
    0000: 01 00 00 3D 03 01 41 A4 FC 16 A8 14 89 F0 59 81 ...=..A.......Y.
    0010: C8 C9 29 C2 09 D1 0A 70 18 58 DC 2E B0 C8 14 90 ..)....p.X......
    0020: D4 FD A4 C6 32 C9 00 00 16 00 04 00 05 00 0A 00 ....2...........
    0030: 09 00 64 00 62 00 03 00 06 00 13 00 12 00 63 01 ..d.b.........c.
    0040: 00 .
    Thread-5, fatal error: 40: no cipher suites in common
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    Thread-5, SEND TLSv1 ALERT: fatal, description = handshake_failure
    Thread-5, WRITE: TLSv1 Alert, length = 2
    Thread-2, fatal: engine already closed. Rethrowing javax.net.ssl.SSLHandshakeEx
    ception: no cipher suites in common
    javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:9
    92)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineI
    mpl.java:459)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineIm
    pl.java:1054)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:10
    26)
    at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:411)
    at RadiusServerSimulator.EAPModule.EAPTLSMethod.buildReq(EAPTLSMethod.ja
    va:153)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.methodRequest(EAPStat
    eMachine.java:358)
    at RadiusServerSimulator.EAPModule.EAPStateMachine.run(EAPStateMachine.j
    ava:262)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.net.ssl.SSLHandshakeException: no cipher suites in common
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
    at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1
    352)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:164)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.chooseCipherSuite(Serve
    rHandshaker.java:638)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHands
    haker.java:450)
    at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHa
    ndshaker.java:178)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:4
    95)
    at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:437)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.
    java:930)
    ... 1 more

    I am developing a simple client/server SSL app using sdk 1.4 (no SSLEngine) and am faced with the same problem. Could anybody track down the problem further?

  • I have tried to implement jasper report but getting exceptions at run time

    I have tried to implement jasper report but getting exceptions at run time and I couldn't get the reason of these exceptions. please give me idea to solve this problem.
    I am using following jar files for this :
    commons-beanutils-1.6.1.jar
    commons-digester-1.7.jar
    commons-logging.jar
    jasperreports-1.2.0.jar
    code is as follows:-
    (1) xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jasperReport
    PUBLIC "-//JasperReports//DTD Report Design//EN"
    "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
    <jasperReport name="Simple_Report">
    <detail>
    <band height="20">
    <staticText>
    <reportElement x="180" y="0" width="200" height="20"/>
    <text><![CDATA[Hello World!]]></text>
    </staticText>
    </band>
    </detail>
    </jasperReport>
    (2.) java file
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.xml.*;
    import org.xml.sax.*;
    import org.apache.commons.digester.Digester;
    import org.apache.commons.digester.RuleSetBase;
    import java.util.*;
    public class JasperReportsIntro
    public static void main(String[] args)
    JasperReport jasperReport;
    JasperPrint jasperPrint;
    try
         jasperReport = JasperCompileManager.compileReport(
    "jasperreports_demo.jrxml");
    jasperPrint = JasperFillManager.fillReport(
    jasperReport, new HashMap(), new JREmptyDataSource());
    // JasperExportManager.exportReportToPdfFile(
    // jasperPrint, "jasperReports/simple_report.pdf");
    catch (JRException e)
    e.printStackTrace();
    I am getting exceptions like:
    net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
    /home/navneet/Simple_Report_1143636234024_954843.java:4: package net.sf.jasperreports.engine does not exist
    import net.sf.jasperreports.engine.*;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:5: package net.sf.jasperreports.engine.fill does not exist
    import net.sf.jasperreports.engine.fill.*;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:18: cannot find symbol
    symbol: class JREvaluator
    public class Simple_Report_1143636234024_954843 extends JREvaluator
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:25: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:26: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_CONNECTION = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:27: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:28: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_IS_IGNORE_PAGINATION = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:29: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_CLASS_LOADER = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:30: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_VIRTUALIZER = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:31: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_LOCALE = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:32: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_DATA_SOURCE = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:33: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_SCRIPTLET = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:34: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    private JRFillParameter parameter_REPORT_MAX_COUNT = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:35: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    private JRFillVariable variable_PAGE_NUMBER = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:36: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    private JRFillVariable variable_COLUMN_NUMBER = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:37: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    private JRFillVariable variable_REPORT_COUNT = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:38: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    private JRFillVariable variable_PAGE_COUNT = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:39: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    private JRFillVariable variable_COLUMN_COUNT = null;
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:62: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:63: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:64: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:65: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:66: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:67: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:68: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:69: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:70: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:71: cannot find symbol
    symbol : class JRFillParameter
    location: class Simple_Report_1143636234024_954843
    parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:88: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:89: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:90: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:91: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT");
    ^
    /home/navneet/Simple_Report_1143636234024_954843.java:92: cannot find symbol
    symbol : class JRFillVariable
    location: class Simple_Report_1143636234024_954843
    variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT");
    ^
    33 errors
    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)
    at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:131)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:211)
    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:144)
    at com.appnetix.app.portal.financials.reports.RoyaltyReportAction.execute(RoyaltyReportAction.java:68)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at com.appnetix.app.control.web.AppnetixRequestProcessor.process(AppnetixRequestProcessor.java:149)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at com.appnetix.app.control.web.AppnetixControllerServlet.doPost(AppnetixControllerServlet.java:262)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)

    You have no permission to create a report. You have to create a permisson-entry into your server.policy. Then it would be work.

  • I tried to implement photo albums using iweb and got a publishing error.

    I tried to implement photo albums using iweb and got a publishing error. All was fine with my site until I added the photo album page. The software doesnt say what the error is exactly, only that it is a publishing error to my ftp
    Exact message "There was an error communicating with the FTP server. Try again later, or check with your service provider."
    If I reduce the albums inside to 1 then it seems to work but that takes away from the usefullness of multiple albums.
    my iWeb version is 3.0.4 (601)

    Publish your site to a folder on your hard drive to see if the publication will proceed successfully and open the site locally with your browser to confirm all of the alums are there and work.  If they do try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    If you're still not able to publish from iWeb to your server download and use the free  Cyberduck to upload your website files to the server. Users have found that CD has been successful when iWeb had problems.
    OT

  • Public class implements interface

    I am taking my first crack at interfaces: I have superclass A which is a parent of class B, which implements interface C. I need to use class B to make 3 variable instances within class A. I think I will use interface C to make calculations based on the 3 variables. Where do you recommend that I declare and set values for the 3 variables if I need to output the values at the top, in superclass A?
    I'm just a little unclear on pulling these objcts together... thanks in advance.

    I am taking my first crack at interfaces: I have
    superclass A which is a parent of class B, which
    implements interface C. I need to use class B to make
    3 variable instances within class A. I think I will
    use interface C to make calculations based on the 3
    variables. Where do you recommend that I declare and
    set values for the 3 variables if I need to output the
    values at the top, in superclass A?
    I'm just a little unclear on pulling these objcts
    together... thanks in advance. If your variables are going to be used by your superclass A then they had better be declared there. You can work with them whereever you want.
    I'm not sure what you are saying about "...use interface C to make calculations based on the 3 variables." You can't do calculations inside an interface. Furthermore, if B extends A and implements C then A and C are going to be completely separate entities. Any reference to C, even if it is actually an object of type B, will not be able to use anything in A--unless you cast it to B, in which case there is no use in making an interface at all.
    I probably just confused you, but oh well...
    Jeff

  • Implementing interface views

    I have to add a main view to the portfolio items and integrate  the view WI_DMS of the web dynpro component DMS_DPR to the same. When I try to do it, it says  'WI_DMS does not implement a valid interface". Is there any way to implement the valid interface dynamically? PLease help.

    >i have been using ( implementing ) interfaces in the components, for example i used iwd_value_help. however i still have no clarity how WD framework is able to communicate with the component implementing interface iwd_value_help.
    Web Dynpro can create a component usage based upon the interface type alone.  This is very similar to normal ABAP OO when you create/get an instance of a class but only know the interface.  Basically this is polymorphism at the component level.
    >the basic question here is, what is wd framework, is it class implementing interfaces generated when we create views and other stuff. and this class( WD fw ) is going to call these implemented methods of the interface??
    Simple answer: yes, exactly as you describe.  Everything relates back to generated and local classes.  The framework can interact with them becuase all the generated classes implement SAP provide framework interfaces.

  • Trying to implement MAA on 4node race

    Subject: Trying to implement MAA on 4node race
    RDBMS Version: 10.2.0.3
    Operating System and Version: Solaris 5.9
    Error Number (if applicable): ORA-12154
    Product (i.e. SQL*Loader, Import, etc.): DATAGUARD
    Product Version: 10.2.0.3
    Trying to implement MAA on 4node race
    Can anyone clarify my questions related to RAC & DATAGUARD.
    We are trying to implement 4node physical standby, our primary is a 4node RAC.
    How does oracle ship the archive logs and apply at the secondary(physical standby). Does we need to mount all the instances on the physical standby or only one instance?
    what we have done is mounted one instance recovered the primary database at physical standby.
    We are currently shipping the logs manually and recovering at the physical. we are hoping that the automatic shipping of archive logs and recovery at the physical, will catch up when its current. Is my assumption correct???
    On the primary we see the following eroors:
    Redo shipping client performing standby login
    OCIServerAttach failed -1
    .. Detailed OCI error val is 12154 and errmsg is 'ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 14:56:12.338 61287 kcrr.c
    Error 12154 received logging on to the standby
    Error 12154 connecting to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    Error 12154 attaching to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 14:56:12.338 61287 kcrr.c
    PING[ARC1]: Heartbeat failed to connect to standby 'CP00TSG002'. Error is 12154.
    *** 2007-11-05 14:56:12.338 59530 kcrr.c
    kcrrfail: dest:3 err:12154 force:0 blast:1
    *** 2007-11-05 15:01:16.450
    Redo shipping client performing standby login
    OCIServerAttach failed -1
    .. Detailed OCI error val is 12154 and errmsg is 'ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 15:01:18.208 61287 kcrr.c
    Error 12154 received logging on to the standby
    Error 12154 connecting to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    Error 12154 attaching to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 15:01:18.209 61287 kcrr.c
    PING[ARC1]: Heartbeat failed to connect to standby 'CP00TSG002'. Error is 12154.
    *** 2007-11-05 15:01:18.209 59530 kcrr.c
    kcrrfail: dest:3 err:12154 force:0 blast:1
    *** 2007-11-05 15:06:22.682
    Redo shipping client performing standby login
    OCIServerAttach failed -1
    .. Detailed OCI error val is 12154 and errmsg is 'ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 15:06:23.460 61287 kcrr.c
    Error 12154 received logging on to the standby
    Error 12154 connecting to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    Error 12154 attaching to destination LOG_ARCHIVE_DEST_3 standby host 'CP00TSG002'
    ORA-12154: TNS:could not resolve the connect identifier specified
    *** 2007-11-05 15:06:23.460 61287 kcrr.c
    PING[ARC1]: Heartbeat failed to connect to standby 'CP00TSG002'. Error is 12154.
    *** 2007-11-05 15:06:23.460 59530 kcrr.c
    kcrrfail: dest:3 err:12154 force:0 blast:1
    we are unable to find why we are getting these errors.
    Can anyone let me know how MAA functions. I mean..4 node RAC shipping logs and applying at 4 node physical standby.........
    Message was edited by:
    raghu559

    Hi josefli
    i got quite different response from oracle metalink forum. can you explain me about this and how we can achive failover?
    here is what it said:
    In a RAC configuration, you need to make sure you load balance
    the archive receiving on standby site. If you just use
    one instance to receive all the archive logs and apply them,
    it could potentially create bottleneck on a very busy
    environment. So you have to use all the RAC instances
    even on the DR site and they all need to be mounted.
    You need to designate one instance as the applier, which would
    run the MRP, and all the instances as receiver.
    Primary 1 ===> Standby 1 (receiver and applier)
    Primary 2 ===> Standby 2 (receiver only)
    Primary 3 ===> Standby 3 (receiver only)
    Primary 4 ===> Standby 4 (receiver only)
    Let us assume your database name is "finp"
    Primary Site
    finp1.log_archive_dest_2='SERVICE=finp1_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp2.log_archive_dest_2='SERVICE=finp2_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp3.log_archive_dest_2='SERVICE=finp3_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp4.log_archive_dest_2='SERVICE=finp4_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp1.fal_client=finp1_stby
    finp2.fal_client=finp2_stby
    finp3.fal_client=finp3_stby
    finp4.fal_client=finp4_stby
    finp1.fal_server=finp1_stby, finp2_stby, finp3_stby, finp4_stby
    finp2.fal_server=finp2_stby, finp3_stby, finp4_stby, finp1_stby
    finp3.fal_server=finp3_stby, finp4_stby, finp1_stby, finp2_stby
    finp4.fal_server=finp4_stby, finp1_stby, finp2_stby, finp3_stby
    *.log_archive_dest_state_2=enable
    Add tns entries for finp1_stby, finp2_stby, finp3_stby and finp4_stby on
    primary site tnsnames.ora. All these entries would be pointing
    to DR site.
    Standby Site
    finp1.log_archive_dest_2='SERVICE=finp1_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp2.log_archive_dest_2='SERVICE=finp2_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp3.log_archive_dest_2='SERVICE=finp3_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp4.log_archive_dest_2='SERVICE=finp4_stby LGWR ASYNC=20480 NOAFFIRM reopen=10 max_failure=5 net_timeout=180 delay=0'
    finp1.fal_client=finp1_stby
    finp2.fal_client=finp2_stby
    finp3.fal_client=finp3_stby
    finp4.fal_client=finp4_stby
    finp1.fal_server=finp1_stby, finp2_stby, finp3_stby, finp4_stby
    finp2.fal_server=finp2_stby, finp3_stby, finp4_stby, finp1_stby
    finp3.fal_server=finp3_stby, finp4_stby, finp1_stby, finp2_stby
    finp4.fal_server=finp4_stby, finp1_stby, finp2_stby, finp3_stby
    *.log_archive_dest_state_2=defer
    Add tns entries for finp1_stby, finp2_stby, finp3_stby and finp4_stby on
    standby site tnsnames.ora. All these entries would be pointing
    to primary site.
    What is good about this type of setup is that if one of the
    server is unavailable, still the configuration would work
    withoout any chagnes. During switch over and switch back,
    you don't need to any changes on spfile or tnsnames.ora file.
    Note the fal_server is listing all the server names so that
    it could get the archive files from other servers if
    one of the server would be unavailable.
    So i need to place all the instances on physical standby in mount stage? like i said currently we are recovering on one instance. Do we need to make any changes to other 3 instances(physical standby)? or just do a startup mount on those 3nodes?

  • Perspective for Java technologies : implementing interface on late.

    In Java, to implements the adapter pattern's; we have to create a new class that have a link with the adaptee class and implements the adapter interface.
    class MyAdapter implements IAdapter
          public MyAdapter( Adaptee a );
    }or, if we need protected methods :
    class MyAdapter extends implements IAdapter
         public MyAdapter( Adaptee a );
    }then, to call the method void foo( IAdapter i ); ;
    we have to do xxx.foo( new MyAdapter( adaptee ) );it could be simpler if java allowed to implement interfaces after defining the java class.
    public class Adaptee
    }and then, in another file, something like,
    implementation of  IAdapter for class Adaptee
    }would be equivalent to
    public class Adaptee implements IAdapter
    }The advantage of the first method is that you can adapt very easy external classes from external jar file.
    thank's for coments.

    An interface is a contract which tells the compiler
    that a class that implements it implements a set of
    method signature which perform certain actions.That's right, but my idea is not to change the interface, but to change the external class, making it implements the existing interface.
    If you overlay an interface on someone else's class,
    the signature match (if there is one) could happen by
    coincidence. There's no guarantee that a method with
    a signature that matches one in your interface
    actually has the same function.I didn't say that an external class should be viewed as an interface without a specific implementation of this interface for the external class. But, instead of making a new class extending the first and implementing the interface, just define a specific implementation of the interface for this class, as if it was make at class declaration.

  • Trying ot implement AJAX

    Hi I am trying to implement AJAx functionality in my JSP page.. It will work to bring or open the callup window when ever any one puts mouse over any image.
    Well i am sending an product ID to my servlet and getting response in form of XML text but i am not able to track the response from servlet the command i am using for it is...
    var ro;
    function createRequestObject(objurl,objurl1)
    var url1 = "<%= link("catalog", "catProductDescription", extraParam) %>" ;
    document.dataForm.OP.value = "description";
    var url = url1 + "&ProdId=" + objurl ;
    if(window.XMLHttpRequest)
    ro = new XMLHttpRequest();
    else if(window.ActiveXObject)
    ro = newActiveXObject("Microsoft.XMLHTTP");
    ro.open("GET", url, true);
    ro.onreadystatechange = handleResponse;
    ro.send(null);
    function handleResponse()
    if(ro.status == 200)
    var message = ro.responseXML.getElementsByTagNam("message") [0];
    setMessage(message.childNodes[0].nodeValue);
    function setMessage(message)
    alert(message);
    I am trying to send product description from Servlet by using:
         response.setContentType("text/xml");
         response.setHeader("Cache-Control", "no-cache" );
         response.getWriter().write(msProdBean.getDescription());
    please try to guide me with proper code.

    try this handle response function
    function handleResponse()
    if(ro.readyState == 4)
            var response = ro.responseText;
            var update = new Array();
             if(response.indexOf('||' != -1))
              update = response.split('||');
              // access the response string from servlet with this variable, update[0];
              // eg: alert(update[0]) ;
            }

  • Implementation interface

    Hi guys. I have a test on array and inheritance and polymorphism. I didn't quite understand what is the benefit of implementing interfaces.
    Something like this:
    public class static Child extends Parent implement A,B,C
    Where A,B,C are interfaces.
    I need to get this straigth before the final test tomorrow. Thanks a lot.

    By implementing an interface, a class declares what it does. This means that the compiler and other classes can determine whether that class is suitable for some operations.
    So given your example Child which implements interfaces A, B, and C, there could be another class with method:
    public boolean doSomething(A aclass) {
    }This method can be given an instance of your "Child" class, or a different class which also implements the A interface.
    Interfaces say what a class does, as opposed to how it does it.

Maybe you are looking for

  • How to download scanner driver without Software Update Lion

    I checked on the printer and scanner page that Lion supports my old Epson Perfection 2450 scanner http://support.apple.com/kb/HT3669#epson Lion cannot seem to recognize my scanner, I have tried everything... Is there a way to redownload the driver bu

  • Aa acting

    According to posting cycle, you should post period 012 next this is the error system showin when iam planning to run dep in the 01 for 2008 this how can i chnge to run dep to 01 2008

  • Hashtable equalent data type in PLSQL

    Hi, From java i am calling stored procedure, i want to pass hashtable to it.Data in hashtable consists of key and value. Key is some integer and value is an Object[](array) So i want to know datatype equal to Hashtable in PLSQL. Can anyone help out i

  • All RSS feeds shows as empty

    All my RSS feeds shows as empty and refuse to update, the only RSS feeds that dont show up as empty are the one that are not updated.. once a site of which my RSS feeds has data updates.. my RSS feed gos "empty" == This happened == Every time Firefox

  • Dual display via splitter troubleshooting

    Hello, I have: a i5 Mac Mini 10.9 two LG HDMI monitors a Monoprice monitor splitter Both screens are live and mirrored but no "arrangement" tab appears in System Pref>Displays; the system said there is only one monitor.  Your thoughts? Thanks, Wise(e