How to refer a base class action directly

Hi ,
I have a jsp associated to controller b which extends controller a.
There is an action in controller a.
From the jsp it self(With out coming to the controller b ) can i refer an action in controller A.

Hi,
You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
-Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
-Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
-Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
-Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
-Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html

Similar Messages

  • How to specify a base class for Remote Interface in Workshop 9.2? -- URGENT

    Hi,
    I am trying to create a UUP EJB in WebLogic 9.2 workshop. I am using @FileGeneration to create my home & remote interfaces. And the generated remote interface is extending javax.ejb.EJBObject;I want my remote interface to extend com.bea.p13n.property.EntityPropertyManager which in turn implements javax.ejb.EJBObject. Can someone tell how i can do it in Workshop?.
    I came across Predefined Variable: remote.baseClass and as per docume
    ntation..."If specified, the value of this variable will be used as the base class for all generated remote classes. Where i should specify it?. @FileGeneration does nt have any option for it. Any help is grtly appreciated.
    Following are my code snippets:
    IMPL Class
    @FileGeneration(remoteClass = Constants.Bool.TRUE,remoteHome = Constants.Bool.TRUE, localClass = Constants.Bool.FALSE, localHome = Constants.Bool.FALSE,remoteClassName = "MyEntityPropertyManager",remoteHomeName = "MyEntityPropertyManagerHome")
    public class MyEntityPropertyManagerImpl extends GenericSessionBean implements
              SessionBean {
    //code
    }

    This question was posted to both the bea.workshop.developer.general and weblogic.developer.interest.workshop (I had replied to the later on 10/19); after seeing an identical question today on this list want to include a reference to that reply here:
    http://forums.bea.com/bea/message.jspa?messageID=600044925&tstart=0
    -Rob

  • How to refer to root class from a package in Java 1.4

    Hi
    I have written a class at root level and it is being called be a different class which is defined in a package, when I am trying to import base class it is giving compilation error in Java 1.4.0 and Java 1.4.1 version but code work fine with java 1.2.2
    For you reference here is sample code
    First class AddNumbers defined at root
    public class AddNumbers{
         int iResult=0;
         public AddNumbers(int a, int b){
              iResult= a+b;
         public int getSum(){
              return iResult;
    second class PlayNumbers is defined in package TreeTest
    package TreeTest;
    import AddNumbers;
    public class PlayNumbers{
         int iNum1 =5;
         int iNum2 = 10;
         int iRes;
         public PlayNumbers(){
              AddNumbers ad = new AddNumbers(iNum1,iNum2);
              iRes = ad.getSum();
              System.out.println("Result is ="+iRes);
    public static void main(String [] arg){
              new PlayNumbers();
    Could anyone suggest how to invoke AddNumbers class in JDK1.4.1
    Thanks
    AKM

    The root package should never have been automatically included for compilation purposes.
    In order to access a class in the root package import it as you should for any other class.
    import AddNumbers;
    is the proper way to do this.
    The only time you don't need to use an import statement is if the class you wish to reference is in the same package as the class that refers to it. Again, you should really import such classes as it makes things explicitly clear which classes you are referring to.

  • How to refer to a Class linkage set in Library from external code?

    If one uses [Embed] to refer to external graphic assets its easy to instantiate and use them.
    However, I've got a png in an Fla, with the Class identifier set to "Symbols", Base class is BitmapData.
    I need to instantiate it like this:
    var symbols:BitmapData = new Symbols(1, 1);
    addChild(new Bitmap(symbols));
    Of course the compiler complains about a call to a possibly undefined method Symbols.
    For a temporary fix I guess i'll put the graphic external to the swf, but for this project it needs to be in the library along with everything else.

    If you have a symbol in your library with a Class identity of "Symbols" then you should only need to use...
    var symbols:Symbols = new Symbols();
    addChild(symbols);
    As far as the 1,1 argumets go, are those not something you could assign when the instance is created?

  • ClassFileTransformer and how to transform the base class first

    Hello,
    I've written a ClassFileTransformer that uses ASM to enhance classes at load time.
    But some of the enhancements depends on possible enhancements to the super class.
    Example: under some coditions a method doWork() is inserted. This method did not exist in any class (doWork is just an example, I use a name that is not accepted by the compiler but allowed by the JLS).
      public class A {}
      public class B extends A {}If the method doWork() was inserted into class A, then the doWork() of B has to call doWork() of class A:
       super.doWork().Currently I try to load the base class by using
       loader.loadClass(superName.replace('/', '.'));this loads the super class but without passing my transformer !
    How can I solve this ?

    Looking at the comments in ClassFileTransformer.java and the code in ClassLoader, it seems the transformers are called only for class files that get a ClassFormatError. Transformers are intended to fix old broken/incompatible class files on the fly.
    I guess the intended way to do what you are doing is to define a custom class loader. Read class into byte[], transform, call defineClass() on the transformed byte[]. Google for java custom class loader for examples.

  • AS3: How to create one base class for classes loaded in multiple swfs?

    Our application have 3 different modules and all use
    fscommand and ExternalInterface alot. Now the problem is we are
    combining all those modules, but they all will reside in different
    swfs. Is there any way that they extend to same base class and its
    static members have only one instance accessible by all
    three?

    Hi,
    You can achieve this via Workshop 9.2 by using the exported Ant script for your project as follows:
    -Ensure that all Jars needed to resolve com.bea.p13n.property.EntityPropertyManager (this particular class is found in weblogic92/common/p13n/lib/p13n_ejb.jar) and all referenced classes are added to the Java build path for your WebLogic EJB project (Properties->Java Build Path->Libraries)
    -Export the "Workshop Ant Script" for your WebLogic EJB project (File->Export->Workshop Ant Script); this will generate a "build.xml" Ant script under your project root directory.
    -Edit this default build script as follows: in the call to the "ejbgen" task within the "build" target, add the attribute: propertyFile="ejbgen.properties"
    -Create a file "ejbgen.properties" under the root of your WebLogic EJB project and add the following entry:
    YourSessionBeanClassName.remote.baseClass=com.bea.p13n.property.EntityPropertyManager
    -Add a "<path refid="java.classpath"/>" within the "<classpath>" for the "java" task element that calls "weblogic.ejbc" (this will ensure that the p13n classes are resolved by EJBC)
    Follow the instructions for executing the Ant build script found here: http://edocs.bea.com/workshop/docs92/ws_platform/ideuserguide/conUseCustomAntBuild.html
    For more information on the EJBGen property file support, see: http://e-docs.bea.com/wls/docs92/ejb/EJBGen_reference.html

  • How to refer to the class in the regular function module

    Hi ABAP guru's
    I wish to get details of GET_REQUID parameter of method IF_RSBK_REQUEST_GENERAL that is available in
    class CL_RSBK_REQUEST.
    I am writing a ABAP function module and I wish to use this class in that function
    module. Can someone help to write this code on how to read value of GET_REQUID in my function module?
    Here is ny sample code  which is not working--
            l_r_request_main = cl_rsbk_request->N_REQUID
           l_r_request = IF_RSBK_REQUEST_GENERAL->GET_REQUID( ).
         catch cx_rs_not_found.
           continue.
        call method l_r_request->get_tstate
          exporting
            i_check_if_active = rs_c_true
          receiving
            r_tstate          = l_tstate.
    Thanks for your help in advance
    Ag

    Hi anjali,
                   Tables are like multi line containers ,which can act as both import and export parameters .
                   means,the data in the table can be used by the function module during  its execution and the                same table can be populated with result after the fm execution .
      you can also refer :http://help.sap.com/saphelp_erp60_sp/helpdata/en/d1/801ece454211d189710000e8322d00/content.htm 
    Regards,
    Krishna.

  • How to refer to the class in regular functional module

    Hi ABAP guru's
    I wish to get details of GET_REQUID parameter of method IF_RSBK_REQUEST_GENERAL that is available in
    class CL_RSBK_REQUEST.
    I am writing a ABAP function module and I wish to use this class in that function
    module. Can someone help to write this code on how to read value of GET_REQUID in my function module?
    Thanks for your help in advance
    Ag

    Hi Allgon,
    welcome to the SAP Community Network. I hope you become a valuable member by contributing regularly.
    You need to appreciate a few things.
    Firstly read Welcome and Rules of Engagement.
    It includes the following suggestions...
    Please...
    - Use the correct or most appropriate forum,
    - Do not cross-post or multiple-post, and
    - Search for information before asking basic questions, again.
    Cheers
    Graham Robbo

  • How to refer the parent class object from an inner class

    Hi,
    I have a class X, which contains an inner private class Y. Class X has a method getY which returns an object of class Y. Class Y has a method getParent. I want to return the object of parent class from this. The code is like this:
    public inerface IY;
    public class X {
    private class Y implements IY {
    public getParent {
    // ... return the object of parent class which created the object of this inner class
    public IY getY() {
    return new Y();
    Can somebody help me with this...

    interface IY {
    public class X {
        private class Y
            implements IY {
            private X parent;
            public Y(X x)
                parent = x;
            public X getParent()
                // ... return the object of parent class which created the object of this inner class
                return parent;
        public IY getY()
            return new Y(this);
    }Filip

  • Class Action Lawsuit -- Comcast wake up --

    Comcast Wake up!!! --  your billing practice and customer service is horrible--  you are ripping your customers off Please let me know how to facilicate a lawsuite -- Class Action Lawsuite against the biggest injustice -- and fraudulent billing practice! Can someone please help me and tell me where to sign or how to initiate a class action lawsuite? Comcast is the worst company in the world. Its a monopoly and rips off customers. This is my second experienced dealing with Comcast. The lure you in with affodable pricing but when you want to disconnect or downgrade your service -- you are out of luck and get ready to be screwed no matter how reasonable and responsive you are.
    Please let me know where to sign.  I am as MAD!!!
    If you try to disconnect services they pile on you new fines and charges. They never pick up the equipment and charge you for not returning their equipment. Takes them 60 days to respond to a disconnect request and then takes them 30 more day after that to disconnect you. Meanwhile they keep charging you and if you dispute the charges there is noone to speak with and the charges keep mounting. Their customer service are clueless and have no power to make any decision. They keep apploogizing on the phone but they have no idea where to look and what to do.
    They try to exhaust you and they hold the key and they hold the charges.Let me know where PLEASE - we need to put a stop to this!!!! -- this is the WORST customer service and billing practice experience I have ever seen. I am not a complainer -- never sued anyone or disputed bills but this has been a blood boiling infuriating experience. Someone has to pay!
    let me know what to do?Thanks,EK Atlanta

    YOU may not be able to phycally sue comcast...  but the FCC , FTC and Attorney General can on the behalf of you and several others. Those agencies are the neutral parties ... they won't sue unless you take action first, you have to file a complsint, simply follow the prompts and copy & paste your complaints. It's less effort than going back and forth here and will help even better. Definitely complain to Comcast,  why? Because there needs to be documentation that you informed them of dissatisfaction and complained. It's unfortunate but we've let these larger companies get away with it so they are out of normal reach... don't support Comcast, fire them just like you hired them for services. Write a letter to them , whatever you have to do its worth your peace of mind. I'll say this last, if you stay, you pay. If you just talk about it nothing will change and you contribute to their bad practices by not complaining , kinda like the bystander effect, everyone knows it's wrong but no one says anything. I don't care if I don't get but $1 of my money back, it's the principal and sometimes you gotta hit their pockets even if the money is spread 800,000 ways, yes Im saying don't expect a huge payday from a class action lawsuit so make sure it's the principal of the matter. That's what it takes. 5 minutes of your time to complain vs hours on the phone.

  • How to expose and code the event handlers of a base class?

    I have created a class that inherits NumericUpDown. When I instantiate an object from that class, I can make it visible and have it appear on my form just like any other NUD. How can I get that instantiated object to expose the event handlers of its base
    class, the NUD in this case, so that, for example, I can tell the client what action to take when the value of the instantiated object changes?
    Thanks for your help.

    I am not sure exactly what you mean.  Are you adding your NUD controls to the Form at design time from the toolbox or adding them in code at run time?  If you are adding them to the form from the toolbox then you access the events the same way
    you would a standart NUD control.   If it is at runtime and you have a fixed amount of them you are going to add then you can declare them Class Scoped using the
    WithEvents keyword which will let you access all their events.
    Public Class Form1
    Private WithEvents Nud1 As New NUD
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Controls.Add(Nud1)
    End Sub
    Private Sub Nud1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Nud1.ValueChanged
    Me.Text = Nud1.Value.ToString
    End Sub
    End Class
    Public Class NUD
    Inherits NumericUpDown
    'Your custom code to make it work how you want...
    End Class
     If this is not what you are doing then you may need to explain a bit more and show the code you are using so we understand better.
    If you say it can`t be done then i`ll try it

  • How to refer to a protected class outside the enclosing package

    Hi all,
    At the page 357 of the book Java Language Specification(Second Edition), when saying about checking accessibility of Type and Method, they concern Let C be the class containing the method invovation T.m, if T is in a different package than C, and T is protected then T is accessible if and only if C is a subclass of T. I just wonder how to refer a protected type outside the package it declared.
    For example,
    package test;
    public class test {
    static protected class protectedTest {
    public void foo() {..}
    in another package
    import test.*;
    class subtest extends test.protectedTest {  <- error
    Anyone can give me an example showing an invocation directly to foo() declared in class test.protectedTest ? The invocation should appear outside package test.
    Thanks,
    Ha Chau

    The protected inner class would be accesible only within a class which extends test, where you could either use or extend it as in:
    class subtest extends test {
        private static class sub2 extends protectedTest {
               }

  • How to refer to enclosing instance from within the member class?

    Hi
    How to refer to the enclosing instance from within the member class?
    I have the following code :
    import java.awt.*;
    import java.awt.event.*;
    public class MyDialog extends Dialog
         public MyDialog(Frame fr,boolean modal)
              super(fr,modal);
              addWindowListener(new MyWindowAdapter());
         public void paint(Graphics g)
              g.drawString("Modal Dialogs are sometimes needed...",10,10);
         class MyWindowAdapter extends WindowAdapter
              public void windowClosing(WindowEvent evt)
                   //MyDialog.close(); // is this right?
    In the above code, how can I call the "close()" method of the "Dialog" class (which is the enclosing class) from the inner class?
    Thanks in advance.
    Senthil.

    Hi Senthil,
    You can directly call the outer class method. Otherwise use the following way MyDialog.this.close(); (But there is no close() method in Dialog!!)
    If this is not you expected, give me more details about problem.
    (Siva E.)

  • Class override, how to create the child class and then the base class

    I started to write a program for a smart DMM, the problem is every version of the DMM the company change the communication commend.
    My idea is to write a child class for every DMM version and every SubVI of the child will override the base class SubVI.
    My problem is, i want first to create one child class and after i will see every thing is work,  start to create the base class. that way i will see if am thinking the right way.
    My question is
    How can i create a child class and then create the base class and configure the SubVi of the child class to be Override of the base class?
    I tried to search in the property of the class but i didn't see nothing.
    Thanks
    Solved!
    Go to Solution.

    This can be done and I've done it on occasion.
    You simply create the base class with the dynamic dispatch methods you require (connector panes need to be identical to thos of the child class).
    Then set the inheritance of the class to inherit from this base class.  If your method is defined as a dynamic dispatch method in the parent, you'll most likely now have some errors (unless your child method was already DD in which case you might just be OK already).
    To change the inheritance of a class, right-click the properties of the class in your project and select properties.  I believe the ineritance tree is at the lower end of the properties.  Click on the "change inheritance" (or something similar) to choose the class from which you now wish to inherit.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How do I submit a claim on the Class Action Apple settled for the iPhone with the water damage indicator red

    I stood in line the first day the original iPhone came out to purchase one.  The next day I purchased my second iPhone for my daughter and before long we had 4 iPhones in the house.  We still to this day have 4 iPhones.  Over the years several of my iPhones stopped working, I had paid extra to have the support contract on them only to find the local Apple store could care less.  They condemed my iPhones as being water damaged even though I was told the phones did not get dunked in water. 
    Today I learned Apple settled a Class Action in regards to the iPhones with warrenty where the liquid sensor was red and Apple refused to fix the problem.  In researching this I discovered reading the judges order in the case that Apple is supposed to have a 1-800 number setup and a website setup for people who had the problem.  I searched the web but could not find the website or the phone number.  It appears as if Apple is going to e-mail all people who took their iPhones in for repair and were refused yet I have not recieved an e-mail from Apple. 
    I guess the question I have is should I assume since I have had no e-mail from Apple that I will not get one and I will not be included as those getting payment.  Should just take my iPhones with the red liquid sensor to small claims court or should I attempt to contact the judge in the case and ask him how I can have three iPhones that qualify yet have not heard anything from Apple?  I still have the iPhones that Apple refused to repair.

    I don't think the settlement has been approved by the courts yet. Apple agreed to pay, but I don't believe the terms of how everything will go down has been officiated yet. When it is, the documents written up about it stipulate they've got to place a notice in USA today and Macworld with the web address for claims as well as a toll-free number. You can see the terms that are being negotiated at wired.com

Maybe you are looking for

  • MacbookPro + External Monitor wake up from sleep

    Hey, If I connect my mbp to external monitor and press sleep and then close the lid, 30% of the cases I cannot wake it up. I have all updates in Mountain Lion. Any thoughts about it? Software bug?

  • Corrupt file

    my iPod has recently said i have a corrupt file on ti!!! How do i rid my iPod of it?!?!? thanks to anyone who can help xxxxxxx

  • Corrupt font

    I have a corrupt font problem!We have a PC running Windows XP SP3 I have previously installed a Labview program, built using labview 2009, and it has installed fine with no problems with the font.A colleague of mine has created an installer with Labv

  • Should I use AxMsRdpClient6 or AxMSTSCLib.AxMsRdpClient8NotSafeForScripting

    Hello, I'm trying to create windows form application that allows a user to connect to a virtual machine. I have implemented VCL  http://vcl.apache.org/ and users are allowed to download the rdp file but I would like to automate it so when they click

  • Brother HL-2700CN

    I am working with a Brother HL-2700CN printer. From my windows machine, and mac OS 10.4 it prints perfectly. However, after I upgraded to Jaguar my text is blurred rather than having sharp, defined edges. Any help on this would be appreciated...I can