ADF jdevloper to call a ActionListener Method in other valueChange

Hi all,
i am using JDeveloper 11g Release 1
how to call a method of type (Action Event) inside the another method of type (ValueChange Event) ?
Please give Reply soon Thanks .

I agree.
Frank Nimphius wrote:
Hi,
dont think the action method checks if the ActionEvent is null or not. So call the method like myActionEvent(null) and then in the method ensure the code doesn't rely on an existing action event. If you require an action event, then create one as in the link you got in the previous post. However, instead of queueing the event you pass it as an argument to the method diretcly
Frank

Similar Messages

  • ADF BC and direct database call from ActionListener Method

    Hi
    I have an ADF BC application which generates a simple form . In the submit button I am calling a Java method which makes a direct database connection. The application hangs when the method does the executeUpdate() method
    public void onSubmit(ActionEvent actionEvent) {
    DBSequence prdSequenct=((DBSequence) resolveExpression("#{bindings.ProductId.inputValue}"));
              int productId = new Integer(prdSequenct.toString()).intValue();
              String productName = (String) resolveExpression("#{bindings.ProductName.inputValue}");
    update(productName,productId);
    public void update(String productName,int productId) {
    String str ="update products set product_name=? where product_id =?";
    Connection con=null;
    PreparedStatement pstmt= null;
    try {
    con = new DatabaseConnection().getConnection();
    pstmt= con.prepareStatement(str);
    pstmt.setString(1, productName)
    pstmt.setInt(2, productId)
    pstmt.executeUpdate();
    } catch (SQLException e) {
    e.printStackTrace();
    }finally {
    try
    pstmt.close();
    con.close();
    }catch(SQLException sqle) {
    sqle.printStackTrace();
    when I submit the form the update() method hangs at executeUpdate();
    If I run the update() method from a standalone java its works fine.Can anybody tell what could be the issue ?
    Thanks
    Suneesh
    Edited by: Suneesh Raman on Aug 18, 2010 10:14 AM

    I am using jDev Studio Edition Version 11.1.1.2.0 . Infact I need to call a PL/SQL api from the onSubmit method which I set in the action listener of submit button of the form.
    My getConnection method is :
         public Connection getConnection() throws SQLException {
              DriverManager.registerDriver(new OracleDriver());
              Connection con =
              DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","rme_pbkr", "rme_pbkr");
              OracleDataSource ods = new OracleDataSource();
              ods.setUser("rme_pbkr");
              ods.setPassword("rme_pbkr");
              ods.setURL("jdbc:oracle:thin:@localhost:1521:XE");
    System.out.println("::: con = :::"+con);
              return ods.getConnection();
    Does that mean we cannot make a db connection from the actionlistener implementation method ?
    How to put the method in AM implementation class ? Just write a public void method there and call from onSubmit button actionlistener through some binding ?
    Thanks
    Suneesh

  • Calling of actionListener on commandButton on refresh

    Hi,
    I am using one command button. On click , it is adding one record in tabel. It is creating some problem for me. It is working properly means it is adding proper data. But it went wrong, after adding a new row in table, if i do a refresh on that page it calls the actionListener method again. I can handle the duplicate data in the method. But i dont know why he is calling the actionListener on refresh of page ,
    My command button is
    <h:commandButton value="Add In Table" actionListener="#{User.addInTable}" />
    I want to use onClick tag. But it just call Java Script function. i want ot call the addInTable() written in User Bean.
    Thanks in Advance

    This is because you're resubmitting a POST request by invoking a refresh. Generally the user client (at least, Internet Explorer and FireFox) should warn you about this and ask for confirmation to resubmit the POST. Don't you get this warning?
    If you want to disable rePOSTing when refreshing the window, consider implementing a Post-Redirect-Get pattern. At the bottom of this article you can find an example: http://balusc.xs4all.nl/srv/dev-jep-prg.html

  • Implicit call to java method

    Hi,
    I have a class composed by some methods, I want to find a way on for implicitly call a method in start and end of every method of my class without coding it.
    example
    this is my class :
    public class MyClass {
    public void a(){
    public void b(){
    call :
    MyClass class = new MyClass();
    class.a();
    i want that when i do like below the execution will be like :
    implicitCall();
    a();
    implicitCall();
    is that possible?
    Do you have any idea, on how to do that.
    Thanks in advance

    gimbal2 wrote:
    maheshguruswamy wrote:
    user12080096 wrote:
    What about spring AOP Interceptor?Spring AOP will work for you.How do you know that? Are you him? I'll bet it will just confuse.The OP already knows about Spring AOP, so why do you think it will confuse him? Are you him? Using wildcard expressions, package names etc etc, there is definitely a way to do what the OP is trying to do with Spring AOP. Section 6.2.3.4 of http://static.springsource.org/spring/docs/2.5.x/reference/aop.html has the information. Much easier to do than byte code instrumentation and much cleaner than implicitly calling start/end methods.

  • How does the ADF support romote call method between two managed server ?

    How does the ADF support romote call method between two managed server ?

    You would usually use this as a WebService through the WSDL that is exposed.
    JDeveloper can help you create a Java Proxy to call the Web service if you point it to the WSDL file that was generated for your AM.
    Some other samples here:
    http://www.connotea.org/user/jdeveloper/tag/Service%20Interface

  • Calling ADF page Custom Listener (Ex: ActionListener) from BPM Process Task (APPROVE/REJECT)

    Hi All,
    Jdeveloper version - 11.1.1.7
    I am very new to BPM / SOA development, but I have very good development skills on ADF.
    I am not using ADF BC, using EJB for business services and also using custom ADF pages for HumanTasks.
    Usecase:
    From the BPM Process task, when process submission (APPROVE / REJECT) , I need to invoke a Custom listener (Ex.Action Listener - a EJB call) in the ADF page.
    I am trying to use BPM APIs.
    Please clarify me how this will achieve using BPM APIs. I need detail guidelines to do it. Please make to understand this process.
    Provide some useful documentation or links to understand the following:
    1. Custom Human task pages
    2. BPM APIs - 11.1.1.7
    3. Call a BPM process task from ADF Listener and Call a ADF Listener from BPM Process task - Using BPM APIs.
    Please revert more clarifications needed.
    Thanks and Regards
    Mohanraj N

    Hi Joonas.
    Plese let me explain me better for your understanding
    A big summary for what I meant it's the following:
    1- In the procces you made, when you add the HT activity, you have to implement it, this means declare the input(s) parameters you want. This implementation create the .task file.
    2- Create an application, and projects as HT you have. Each poject are based on the .task file, and automatically create a Data Control (for each project based on a .task) with all you need.
    This w'll be an empty application, so you can customize it all you want. The task selected should have all the parameters previously defined. Those parameters can change if you want.
    2- Create a page(s) in the task flow for the task implementation. You can even split the the payload of the task in differents pages, create your custom pages and any logic you need.
    3- An important aspect is how to match these application with the HT implemented in the process. It's possible, it's a configuration en the Enterprise Manager.
    4- Deploy your application
    All these are explain in the book I mentioned
    Th book you can find it here:
    https://blogs.oracle.com/soacommunity/entry/oracle_soa_suite_11g_handbook_1
    Regards Dariel.
    PS: Please, let me know if you need more details.

  • Adf mobile : calling rest post method

    Hi all,
    I am calling a rest post using rest adaptor but i am getting the following error:
    Unable to find operation : unknown
    Please tell me where should i specify the operation name while calling rest post method.
    Regards,
    Deepak

    I would suggest you use the HTTP Analyzer to see what is sent to your service specifically and identify the missing part.
    One common pattern that we see with complex web services, is to create a server side proxy that calls the complex service and exposes a simpler interface that is consumed by the mobile application.
    This will also reduce the network traffic to your mobile application (and will likely reduce the application's size)

  • PS2-Calling an ActionListener on browser window close using JS eventQueuing

    Hi ,
    I need to call an Action Listener(to do some post processing) when a browser window is closed.
    To achieve this I am using the ADF Javascript APIs.
    I tried the following but neither worked :(
    1)Having the following JS code directly in my jspx page -
    <af:resource type="javascript">
    window.onunload = function(evt){
    var button=AdfPage.PAGE.findComponentByAbsoluteId("button"); /** Getting the Abs Id of a button which has the needed ActionListener attached to it */
    AdfActionEvent.queue(button,true);
    </af:resource>
    2)Have a clientListener under the af:Document with type as "load" which calls a JS method as below
    <af:resource type="javascript">
    function onLoad(evt){
    window.onunload = function(evt){
    var button=AdfPage.PAGE.findComponentByAbsoluteId("button");
    evt.cancel(); /* trying to make sure that this doesnot get propagated to the server*/
    AdfActionEvent.queue(button,true);
    </af:resource>
    3) Having a clientListener call a JS method which queues a Server Listener to call a Action Listener.
    window.onunload = function (event){
    var source = event.getSource();
    AdfCustomEvent.queue(source,"serverListenerMethod",{},false);
    Also client attribute for the "button" is true.
    I am making sure the code is put under metaContainer tag of the af:document
    Thanks

    Yes I had tried that .. the alerts fire fine as mentioned in my previous posts too ...
    But the issue here is to call a server Listener which will call some bean code for some logic when a browser window is unloaded /closed!
    As per Frank's post this is not possible using a simple clientListenr as -
    "the browser native JavaScript unload event itself is not very helpful to send an event to the server using the af:serverListener tag. The reason for this is that when the unload event fires, the page already has been unloaded and the ADF Faces AdfPage object needed to queue the custom event already returns null. "

  • How can i call a taskflow methode from backing bean ??

    Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    i like to call a Methode (taskflow) from backing bean!
    my bean code :
        public void imageLinkActionListner(ActionEvent actionEvent) {
            String              id      = actionEvent.getComponent().getId();
            int                 linkID  = Integer.parseInt(id.substring(4));
            DCBindingContainer  bc      = (DCBindingContainer)ADFUtils.getBindingContainer();
            DCTaskFlowBinding   tf      = null;
            System.out.println("Region Change...."+id+" INT "+linkID);
            switch (linkID) {
                case LINK_CALENDAR_REGION:
                    tf = (DCTaskFlowBinding)bc.findExecutableBinding("calendartaskflowPage");                   
                break;
                case LINK_MAIL_REGION:
                    tf = (DCTaskFlowBinding)bc.findExecutableBinding("mailtaskflowPage");                   
                break;
              case LINK_ADDRESS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("addresstaskflowPage");                   
              break;
              case LINK_BLOGS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("blogstaskflowPage");                   
              break;
              case LINK_MAPS_REGION:
                  tf = (DCTaskFlowBinding)bc.findExecutableBinding("mapstaskflowPage");                   
              break;
            default:
                return;
            if (tf != null){
                uiMainRegion.setRegionModel(tf.getRegionModel());
                uiMainRegion.setValue(tf.getRegionModel());
                tf.getExecutableBindings();
                AdfFacesContext.getCurrentInstance().addPartialTarget(uiMainRegion);
        }i like to call *#{backingBeanScope.mapBean.initMap}*
    my taskflow source
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="map-task-flow">
        <default-activity id="__1">map</default-activity>
        <view id="map">
          <page>/map/map.jsff</page>
        </view>
        <method-call id="initMap">
          <method>#{backingBeanScope.mapBean.initMap}</method>
          <outcome id="__7">
            <fixed-outcome>init</fixed-outcome>
          </outcome>
        </method-call>
        <control-flow-rule id="__2">
          <from-activity-id id="__3">initMap</from-activity-id>
          <control-flow-case id="__5">
            <from-outcome id="__6">init</from-outcome>
            <to-activity-id id="__4">map</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

    Hi,
    to call the bean, use the EL in Java and reference #{backingBeanScope.mapBean.initMap} as a method expression. If you try and access the bean directly then chances are that the instance is not available. Using EL from Java always guarantees this
    Frank

  • How to call a private method in a JFrame

    I have a Frame which has some properties like its size, bgcolor plus other parameters, as instance variables. There is a button on the Frame with the caption : "set properties". When one clicks on that button, a new frame should appear via which a user can change the values of the parameters of the main Frame (i.e size, bgcolor,..etc). The user would input the new values in the textfields or radio buttons that are on the new frame, and then click a submit button, which has to exist on the same NFrame. How can I do that so that when the submit button is pressed, the parameters values are updated and so is the display view ?
    I made it this way : I created 2 classes, the main frame and the new Frame. I made the new Frame an instance variable of the main Frame. When the user clicks the " set properties" button on the main Frame, the new Frame is shown. The user enters new values for some of the parameters and clicks submit. The parameters in the new Frame are updated. UP TO HERE EVERYTHING WENT JUST FINE. Now, there is a private method in the main frame that changes the color, size, ...etc of the main frame according to the values stored in the instance variables color, size,...etc. THE QUESTION IS: How can the new Frame display the changes after the values have been updated ? That is, how can it call the "private" method in the main class?? Should the new class be a child class of the main class to be able to access it's private methods ??

    import java.awt.*;
    import java.awt.event.*;
    import java.util.Random;
    import javax.swing.*;
    public class CallingHome
        SkinMod skinMod;
        JPanel panel;
        public CallingHome()
            // send reference so SkinMod can call methods in this class
            skinMod = new SkinMod(this);
            JButton change = new JButton("change properties");
            change.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    skinMod.showDialog();
            JPanel north = new JPanel();
            north.add(change);
            panel = new JPanel();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(north, "North");
            f.getContentPane().add(panel);
            f.setSize(300,100);
            f.setLocation(200,200);
            f.setVisible(true);
        public void setBackground(Color color)
            panel.setBackground(color);
            panel.repaint();
        public static void main(String[] args)
            new CallingHome();
    class SkinMod
        CallingHome callHome;
        Random seed;
        JDialog dialog;
        public SkinMod(CallingHome ch)
            callHome = ch;
            seed = new Random();
            createDialog();
        public void showDialog()
            if(!dialog.isShowing())
                dialog.setVisible(true);
        private void createDialog()
            JButton change = new JButton("change background");
            change.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    callHome.setBackground(getColor());
                    dialog.dispose();
            JPanel p = new JPanel();
            p.add(change);
            dialog = new JDialog();
            dialog.getContentPane().add(p);
            dialog.setSize(200,100);
            dialog.setLocation(525,200);
        private Color getColor()
            return new Color(seed.nextInt(0xffffff));
    }

  • Commandbutton inside popup does not fire action/actionlistener methods

    Hi,
    I am using 11.1.1.4.0
    I have a page and on click of a button on that page, I launch a popup (using showpopupbehaviour, triggertype="click") which has a region (taskflow) inside it. The region is within a af:panelWindow inside the popup. I have also added 2 commandbuttons in the popup. Everything works fine, but the when the popup is visible, and I click the 2 command buttons on the popup, it does not execute the action method (or actionListener) method that I defined for those buttons. Any idea why this must be happening?
    Code for the popup:
    <af:popup id="popup1" contentDelivery="lazyUncached" binding="#{BackingBean.popup}">
    <af:panelWindow modal="true"
    title="#{pageFlowScope.tabContext.outcomeForPopup}"
    id="paWin12"
    helpTopicId="TOPICID_ALL"
    resize="on">
    <af:panelTabbed id="pt123" position="above"
    inlineStyle="width:650px; height:650.0px;">
    <af:showDetailItem id="sdi0"
    text="#{pageFlowScope.tabContext.outcomeForPopup}"
    stretchChildren="first"
    accessKey="0"
    immediate="true">
    <af:region value="#{bindings.r0.regionModel}"
    id="r1"/>
    </af:showDetailItem>
    </af:panelTabbed>
    <af:commandButton text="First"
    action="#{BackingBean.firstClick}"
    actionListener="#{BackingBean.firstClick}"
    id="cb3">
    </af:commandButton>
    <af:commandButton text="Second"
    action="#{BackingBean.secondClick}"
    actionListener="#{BackingBean.secondClick}"
    id="cb4">
    </af:commandButton>
    </af:panelWindow>
    </af:popup>
    In the page definition of the main screen, I have this taskflow added
    <taskFlow id="r0" Refresh="ifNeeded" activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    taskFlowId="#{pageFlowScope.tabContext.taskFlowIdForPopup}">
    <parameters>
    <parameter id="outcome"
    value="#{pageFlowScope.tabContext.outcomeForPopup}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    <parameter id="tabContext" value="#{pageFlowScope.tabContext}"
    xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    </parameters>
    </taskFlow>
    Thanks
    Vishal

    Hi friend ,
    1,Inside the pop up u give two command buttons and double click the one button and it asking for create one bean.
    2.U create the bean and inside u give coding like
    public class popvisible
    public popvisible()
    public String page1naviagetion()
    // Add event code here...
    return "popTouser";(This is is Control flow case name it will go to another JSPX page.)
    public String page2navigation()
    // Add event code here...
    return null;
    }

  • Manage bean methods not able to call application module methods

    Hi,
    I have an ADF application where in my managed bean method needs to call AppModuleImpl methods. I use the code as below:
    public void getSummary() {
    DCBindingContainer binding = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding op = binding.getOperationBinding("getVOData");
    op.execute();
    The code works fine when I run the application in my IntegratedWeblogicServer and I am able to get the data on my .jsp pages.
    I have installed weblogic server on another machine and I need to deploy and run my application on that server. But when I try doing that, the above code is not able to call the AppModule method and I see no data on my page (Also there is no error or exceptin thrown). Seems that the ViewController project is not able to interact with the Model project.
    Is there any extra configuration to be done on the newly installed weblogic server to get this work? Or will some change in the application code help?
    Please suggest.
    Thanks and regards,
    Ansh

    Hi,
    While creating the weblogic domain, we had the following checkboxes checked:
    1. Basic weblogic server domain [wlserver_10.3]
    2. Oracle JRF [oracle_common]
    I hope this is what we need.
    Yes, I also have the adf runtime installed.

  • Calling a service method from a DataAction

    Hello!
    I'm trying to call a service method from a DataAction, cobbling ideas from the Oracle JDeveloper 10g Handbook and the Oracle ADF Data Binding Primer.
    I have created a service method and exposed it using the client interface node of the application module editor. It is called "process()" and it now appears in the data control palette under MyAppDataControl->Operations (just above the built-in action bindings Commit and Rollback). As part of this procedure, I modified MyAppImpl.java and put the process() method there.
    I don't want to call process() by dragging and dropping it onto a Data Action because depending on the outcome, I want to branch to different pages. process() returns an int that will tell me where to branch. Thus, I am trying to call it from an overridden invokeCustomMethod() method of the lifecycle of a DataAction, where I can get the int, create a new ActionForward, and set it in the DataActionContext. (If I'm barking up the wrong tree, let me know!)
    So, I need to call MyAppImpl.process() from within the invokeCustomMethod() method of my DataAction. Looking at the class declaration, I noticed that it extends ApplicationModuleImpl. I figure that, if I can get the ApplicationModule, I can cast it to MyAppImpl and call the process() method. Unfortunately, that doesn't work. When I got the application module, I checked the class and it's oracle.jbo.common.ws.WSApplicationModuleImpl. I tried casting it and got a class cast exception.
    Here's the code I'm using:
    protected void invokeCustomMethod(DataActionContext actionContext) {
    BindingContext ctx = actionContext.getBindingContext();
    DCDataControl dc = ctx.findDataControl("MyAppDataControl");
    log.debug("invokeCustomMethod(): dc.getClass().getName()=" + dc.getClass().getName()); // result is: oracle.jbo.uicli.binding.JUApplication
    ApplicationModule am = null;
    MyAppImpl myAppImpl = null;
    int processResult = 0;
    if (dc instanceof DCJboDataControl) { // this is true
    am = dc.getApplicationModule();
    log.debug("invokeCustomMethod(): am.getClass().getName()=" + am.getClass().getName()); // result is: oracle.jbo.common.ws.WSApplicaitonModuleImpl
    if (am instanceof ApplicationModuleImpl) { // this is false
    log.debug("invokeCustomMethod(): am is an instanceof ApplicationModuleImpl.");
    if (am instanceof MyAppImpl) { // this is false
    log.debug("invokeCustomMethod(): am is an instanceof MyAppImpl.");
    processResult = ((MyAppImpl)am).process();
    log.debug("invokeCustomMethod(): processResult=" + processResult);
    super.invokeCustomMethod(actionContext);
    What am I doing wrong? Can anyone explain the different class hierarchies and why my application module isn't the class I'm expecting?
    Thanks,
    -Anthony Carlos

    Georg,
    it was in the javadoc of oracle.adf.model.binding.DCBindingContainer
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/vtTopicFile.bc4jjavadoc36%7Crt%7Coracle%7Cadf%7Cmodel%7Cbinding%7CDCBindingContainer%7Ehtml/navId.4/navSetId._/
    However, I see it's not the case in other sub-classes of JboAbstractMap like DCControlBinding and DCDataControl.
    Weird... I'm keeping you informed if I find more information.
    Regards,
    Didier.

  • How to call backing bean method from java script

    Hi,
    I would like to know how to call backing bean method from java script.
    I am aware of serverListener and [AjaxAutoSuggest article|http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html]
    but i am running in to some issues with [AjaxAutoSuggest article|http://www.oracle.com/technology/products/jdev/tips/mills/AjaxAutoSuggest/AjaxAutoSuggest.html]
    regarding which i asked for help in other thread with subject ....Question on AjaxAutoSuggest article (Ajax Transactions Using ADF and J...)
    The reason why i posted is ( though i realise both are duplicates) .. that threads looks as a specific question to that article hence i would like to ask the quantified problem is asked in this thread.
    So could any please letme know how to call backing bean method from java script
    Thanks
    Murali
    Edited by: mchepuri on Oct 24, 2009 6:17 PM
    Edited by: mchepuri on Oct 24, 2009 6:20 PM

    Hello,
    May know how to submit a button autoamtically on onload of page with clicking a welcome alert box. the submit button has managed button too to show a message on console using SOP.
    the problem is.
    1. before loading the page a javascript comes on which i clicked ok
    2. the page gets loaded and the button is there which gets automatically clicked and the managed bean associated with prints a message on console using SOP.
    I m trying to do this through server listener and click listener. the code is(adf jspx page)
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" binding="#{backingBeanScope.backing_check4.d1}">
    <af:form id="f1" binding="#{backingBeanScope.backing_check4.f1}">
    <af:commandButton text="commandButton 1"
    binding="#{backingBeanScope.backing_check4.cb1}"
    id="cb1" action="#{beanCheck4.submit1}"/>
    <af:clientListener type="click" method="delRow"/>
    <af:serverListener type= "jsServerListener"
    method="#{backingBeanScope.backing_check4.submit1}"/>
    <f:facet name="metaContainer">
    <af:resource type ="javascript">
    x=confirm("hi");
    // if(x){
    delRow = function(event){
    AdfCustomEvent.queue(event.getSource(), "jsServerListener", {}, false);
    return true;
    </af:resource>
    </f:facet>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_check4-->
    </jsp:root>
    the backing bean code is -----
    public class classCheck4 {
    public classCheck4() {
    public String submit1() {
    System.out.println("hello");
    return null;
    }

  • How to find a caller of a method

    hi all,
    i have a method in a class and that method is being called from many different classes.
    Inside that method , I want to know who is the caller of the method.
    how can i find that. any help would be appreciated.
    Thanks,
    Dhanasekaran Vivekanandhan

    look at the method Thread.currentThread.getStackTrace(), and the class StackTraceElement. you can work out the rest yourself, hopefully
    but if your code depends on this knowledge, I reckon you've got design problems

Maybe you are looking for

  • Can only play one song at a time!

    Hi, Having a bit of trouble with iTunes. when i press play on a song or album, it plays the song, but then dosent move onto the next song. it just reverts back to the Nothing Playing screen. Recently d/l iTunes 8.2 Any ideas???

  • Vendor Master data problem?? urgent please

    hi, i am trying to populate the vendor master data(name) into the cube. but the data is not there in /BI0/TVENDOR table. what could be the problem? what should i do to populate the NAME in to the cube. i have done transformations in update rules with

  • HT5622 how to verify your account

    It cool

  • Pricing Types in Copy Control

    Hi Xperts, Can any of you guide me the exact difference between the pricing type D: Copy pricing elements unchanged and E: Copy Pricing Elements and values unchanged which is maintained in the copy controls. Thanks Smita

  • Mail won't search entire message

    my mail program will only search using title, sender or receiver, not the entire message. any idea why? thanks...