How populate and execute methods gets called in UserDefined Action Classes?

In Struts2, if we override methods populate() and execute() , then if we made any request to some Action class which overrides these methods, then how does it look for these 2 methods??
and why populate() method called first and later execute() method????
Harishwar
Edited by: Harishwar_Madhya on Sep 3, 2010 2:47 AM
Edited by: Harishwar_Madhya on Sep 3, 2010 2:49 AM

45RPMSoftware wrote:
Thanks for this. Alas, I do not have the source code used to generate the jar file, and I have no means of getting it. I imagine, therefore, that I will not be able to update the manifest file.The manifest file is just a simple text file.
You can get at it by unpacking/repacking the jar file with the jar utility (tar like syntax).
... I assume that classpath is rather like the unix path.It specifies a list of jar files and directories containing java class files (and more).
Is there anything that defines the classpath for each login session and, if so, how do I add to it?As the link I posted says;
you can set a CLASSPATH env.var.

Similar Messages

  • How and when the realDelete method gets called for a custom adapter?

    Hi,
    I am a newbie in sun identity manager and is in the process of writing a custom adapter for documentum resource.
    While I am successful in creating the resource,then provisioning the resource to an user(i.e creating an account of the user on documentum ) updating the user through idm I am not being able to deprovision the resource.
    Actually in the trace I am not seeing the realDelete method getting called anywhere,but I am sure if it gets called it would do its designated job bcos as a standalone code it's working.
    Does this mean I am not properly doing deprovisioning in sun-idm?
    What method I am employing is in the assignment list of the user,i am putting the resource from assigned to unassigned side(i.e right to left side) just as in case of provisioning I have put it from left to right.
    Is it the standard way of deprovisioning or am I missing something here?
    Any sort of help would be highly appreciated.
    Thanks
    anjan

    You need to read that manual with more caution. It has all info you need.
    1. Table modification info stays in shared pool and flushed into dictionary by Oracle automatically. You can explicity do it by calling dbms_stats.flush_database_monitoring_info.
    2. dba_tab_modifications view = How many DML are applied to target table?
    dba_tab_statistics.stale_stats = Is statistics stale?
    3. When you call dbms_stats.gather... familiy, Oracle flushed the stale info to disk. You gnerally don't need to care about that.
    4. Statistics is considered to be stale, when the change is over 10% of current rows.
    (As of 11g, this value can be customized per objects. Cool feature)
    create table t_stat(id int);
    insert into t_stat select rownum from all_objects where rownum <= 100;
    commit;
    exec dbms_stats.gather_table_stats(user, 'T_STAT');
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No row selected
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO
    insert into t_stat select rownum from all_objects where rownum <= 20;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No rows selected <-- Oops
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO  <-- Oops
    exec dbms_stats.flush_database_monitoring_info;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    TABLE_OWNER     TABLE_NAME     PARTITION_NAME     SUBPARTITION_NAME     INSERTS     UPDATES     DELETES     TIMESTAMP     TRUNCATED     DROP_SEGMENTS
    UKJA     T_STAT               20     0     0     2008-01-18 PM 11:30:19     NO     0
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    YES

  • How can I execute method of Component for name

    Hello,
    My program has JInternalFrame with some components. Write me please - how can I execute method of Component for name of Component ?
    Like this:
    ... findObject("jTextArea1").cut();
    Thank you in advance.

    just cycle through the container's components until
    you find one where getName equals "jTextArea1"Thank you for your answer.
    I'm creating components in runtime (I add panel+JTextArea in JTabbedPane) and I don't know how many components will be in JTabbedPane.
    I know only it's names.
    I wan't to execute metod JTextaRea_n_.cut() via using JTextaRea_n_.Name.
    How ?

  • Iam using iphone 4s and Iphone 5s with same apple ID but my network is different and whenever Iam getting call in i5s and in my both handset same calls are coming. Please provide me solutions

    Iam using iphone 4s and Iphone 5s with same apple ID but my network is different and whenever Iam getting call in i5s and in my both handset same calls are coming. Please provide me solutions

    On both devices, go to Settings>Facetime and turn off cellular calls.
    ~Lyssa

  • [NSNotificationCenter defaultCenter] selector method get called 2 times

    i am sending NSSNotifcation to root view controller in iPhone app but its observer method getting notified two times how its possible can any one guide me
    i have use this code to post notification in my detail view controllers which are going to get added in popover view
    -(void) viewDidAppear:(BOOL)animated
        [super viewDidAppear:YES];
        [[NSNotificationCenter defaultCenter] postNotificationName:SetPopOverSizeNotification object: [NSNumber numberWithFloat:480]];
    and added observer in my root view controller
    - (void)viewDidLoad
        [super viewDidLoad];         [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setPopoverSize:) name:SetPopOverSizeNotification object:nil];
    the method implementation is as follows
    #pragma mark - Popover Notification Method
    - (void)setPopoverSize:(NSNotification *)notification
         NSNumber *height = (NSNumber *)notification.object;
          [myPopover setPopoverContentSize:CGSizeMake(320, [height floatValue]) animated:NO];
    Also removing observer as follows
    - (void)viewDidUnload {
        [super viewDidUnload];
        [[NSNotificationCenter defaultCenter] removeObserver:self name:SetPopOverSizeNotification object:nil];

    Hi Saravanan,
    I am  calling this component directly from my application. This component is not used anywhere. The component name is : ERC_C_REQ_MGMT_UI and the application name is: erc_a_req_mgmt
    I am calling an application configuration ERC_A_REQ_MGMT to execute it.
    Regards
    Vishal Kapoor

  • DataAction prepareModel method getting called twice.

    I have a DataAction subclass in which I have overridden the prepareModel() method, putting a System.out.println() into. I just discovered that this method is getting called twice per time that I run the DataAction. Why is this, and how do I change it so that it is only executed once?
    Brad

    Hi:
    The prepareModel method will get called each time your action is executed, ie before your page is displayed, and after a user submits a request.
    If you dont want your code in the prepareModel method to be run when a user submits a request, you should check the event list. If the list is non-empty, then the user has submitted a request to your action.
    The following code is taken from Steve Muench's ADFToyStore demo:
    private boolean handlingEvents(DataActionContext ctx) {
        List events = ctx.getEvents();
        return (events != null) && (events.size > 0);
    }in your prepareModel method, do the following:
    protected void prepareModel(DataActionContext ctx) {
        if(!handlingEvents(ctx)) {
            // code for before the initial display of the page
        } else {
            // code to be executed before your event handlers get called
    }HTH
    Gareth

  • How the protected finalize method is called by garbage collector

    Dear All,
    I have a double regarding the calling mechanism of finalize method. The access specifier of finalize method is protected, not only that if a class overrides this method then also the finalize method can be protected in the subclass of Object. But the concept of protected access specifier is, from outside of the package it can be accessed only from subclass.
    The program (may be part of Garbage collector), which calls this (finalize) method mast not be in the same package (that is java.jang) nor it is a subclass of the class (whose finalize method it calls).
    Then how the finalize method is getting called by the garbage collector when it is protected?
    Regards,
    Gourab

    Refer to following link for the details
    http://www.me.umn.edu/~shivane/blogs/cafefeed/2005/09/why-is-finalize-method-protected.html
    The link gives answer to how a protected/private members are accessible to JVM or GC and why finalize is declared protected.

  • Where is the method getting called ??

    Dear experts,
    I am new to ISA. I have a piece of code :
    <a href="<isa:webappsURL name="b2b/viewinvoice.do"/>"
    where the method 'viewinvoice.do' is getting called. But I am not able to find where this method is actually lying and I have to make some changes in the code.
    Can anybody guide me where does the code lie or how to find out where the method / code lies??
    Regards,
    Mamai.

    Search for config.xml in your Workspace. There are all the calls defined which are done behind this links.
    In this file, search for "b2b/viewinvoice"  without the "do" behind.
    Best regards,
    Toni

  • How do I keep track of how many times a method is called inside anthr clas?

    I am writing code for a program that solves a Knight's Tour. A Knight's Tour is a path a Knight Chess piece can take around the board starting at any spot, touching every square once, and only once. I have to write 2 classes and one is provided. The provided class is encrypted and written by our professor. All I know that it does is simulates the game using the two classes I write and provides a print out and prompts to ask the user which square they want to move to next.
    The square class I have to write consists of a constructor that makes a square object that keeps track of its color (white/black) and its status (whether it has been visited, is occupied by the knight, or is free and has not be visited).
    The GameBoard class I have to write is what I am having problems with. I am writing a method that determines how many squares have been visited. The previous mentioned class that my professor wrote for me contains a method moveKnight();. The way the program works is that every time moveKnight() is called a square's status is changed to occupied and therefore visited later. moveKnight() will only work if the move requested by the user is a valid move.
    SO! My main problem (sorry for all the explaining, just trying to give you all the information) is that I don't know how to keep track of how many times moveKnight() is called by the program. If i can figure this out it should be simple. I'm new to java but i believe...
    if(moveKnight() is called)
    {count++;} //count is a member variable already initialized
    return count;
    the moveKnight() is called section within the if() statement is what I am unclear how to do. Please help.
    Thanks, Veritas

    in your case you want 'count' to be a class attribute rather than a local variable. But yes, incrementing it each time that the method is called will serve your purpose.

  • Create a Java file runtime and Execute to get result

    Hi,
    Is this possible to generate a Java Class run time and execute it to get result..if yes how...any example or site reference..
    Thanks

    Yes: http://www.java2s.com/Code/Java/JDK-6/CompilingfromMemory.htm
    It would be better if you tell us what the problem is that you want to solve.
    The above may not be optimal, as it requires you provide your users with a part of the JDK (not JRE!): tools.jar, placed correctly in a jre directory, if I remember well.

  • While executing method getting error

    Hai
    i written method and and executed i got the error like as follow
    see in that Date is assigning CHAR.
    but not like happend , i not used any CHAR type so tell me what is reason behind that .
    "SELECT * FROM "TASK_DETAILS" WHERE "TASK_RECEIPT_DATE" = '2008-09-24' ORDER BY 1,2" contains the semantics error[s]: - 1:34 - type check error: the left hand side >>"TASK_RECEIPT_DATE"<< (DATE) and the right hand side >>'2008-09-24'<< (CHAR) of a comparison operator are not comparable

    You have used Char. You need to convert your char '2008-09-24- to a date. Have a look at the to_date function:
    http://www.techonthenet.com/oracle/functions/to_date.php
    m

  • Action method getting called multiple times.

    Hi All,
    The problem that I am facing is pretty weird.
    The issue is the i have an input field that takes date as input field.
    This field is inside a data taable
    FYI: I tried converter still same problem.
    So when ever I enter wrong data as "asda" inside this date field I get a validation error. which is good. So assume it took me 3 submit clicks to fix all my errors on the page.
    So now when I click the submit for the 4th time.
    The action method gets trigerred 4 times.
    Desperately waiting for a fix.
    Thank you in advance.
                                            <h:dataTable id="disbursementTable"
                                                 value="#{certTemplateBean.disbursements}" var="disbursement"
                                                 binding="#{certTemplateBean.disbursementTable}"
                                                 columnClasses="disburseDate,disburseAmt,disburseAction"
                                                 styleClass="disbursementTable" cellspacing="0" cellpadding="1">
                                                 <h:column >
                                                      <h:inputText id="disburseDate" styleClass="#{certTemplatesListBean.errorHolder.disburseDate} ms" size="10"
                                                                value="#{disbursement.date}">
                                                           <f:validator validatorId="RegExp" />
                                                           <f:attribute name="regexp" value="[0-9]{2}/[0-9]{2}/[0-9]{4}" />                                             
                                                           <f:attribute name="fieldRef" value="Disbursement Date :" />
                                                           <f:attribute name="message" value="Invalid Date" />
                                                           <f:attribute name="bean" value="certTemplatesListBean" />
                                                      </h:inputText>
                                                 </h:column>
                                            </h:dataTable>
                                            <h:commandLink id="addPro"
                                                 action="#{certTemplatesListBean.doAddUpdateCertTemplate}">
                                                 <h:outputText value="Add Profile direct"/>
                                            </h:commandLink>

    Probably got to do with the JSF jar files. I am not sure though. Can you check if the below link is useful?
    http://jira.jboss.com/jira/browse/AJSF-127

  • PreparedStatement and execute() method

    Hi to all.
    I would like to understand a thing.
    Why the execute() method gives me back false also if the SQL instructions is well executed?
    Is this right?
    TIA
    Omar

    Returns:
    true if the first result is a ResultSet object; false if the first result is an update count or there is no result
    http://java.sun.com/j2se/1.4.2/docs/api/java/sql/PreparedStatement.html#execute()

  • How to use a method in sequence diagram from a class diagram

    Hello, can someone tell me how to use the method from class diagram in sequence diagram? so far i only can add a classifier to the object lifeline but i still cannot add the method from the class...
    thx

    Now that Web Services is around, I'd look at possibly implement a Web Service call in your applet, which can then be given back any object(s) on return. Set up your server side to handle Web Service calls. In this way, you can break the applet out into an application should you want to (with very little work) and it will still function the same

  • How to synchronize a method for all instances of a class

    Hi,
    How to make a method synchronized for all instances of a class? If a simple method is synchronized, then multiple threads cannot access it at the same time. If we make the method as static, then we are making it synchronized at class level.How to make a synchronized method so that no two instances (objects) of a class can access it at the same?
    Thanks
    Neha

    Neha_Khands wrote:
    There is nothing wrong with that. Actually this question was asked in an interview. They didnt want to create a static method. They told me that synchronization can be achieved at instance level also. and for that we have to call some Class.getInstance().synchronied method inside constructor. Kind of a dumb question. First, synchronization does not occur "at a class level" or "at an instance level." Syncing is always the same--a single object's lock is obtained, which prevents any other threads from obtaining that lock. The only thing that makes it appear that there are special cases is that declaring a method synchronized obtains the lock associated with the instance or with the Class object for that class. But that's just syntactic sugar. The Class object lock is identical to the instance lock, which in turn is identical to a lock on some other arbitrary Object created just to serve as a lock. There's no such things as "locking the class" or "locking the instance."
    Second, and more important, making an instance method synced across all instances is a grotesquely artificial situation, IMHO, and if it were to ever come up, the right way to do it is to have that instance method call a static synchronized method.

Maybe you are looking for

  • New entries in Business Partner

    Hi all,        We have new requirements(few standar BP and extended fields) for customer (BP) master data. I assume to create new customer we use BP transaction code.        Can I manually added fields(which are extended new requirement to customer m

  • How to store the contents of a text file directly in to a clob field

    Hi All, Could anyone help me to store the contents of a text file (*.txt,*.xml etc)directly in to a clob field. Thanks in advance Jayaram.

  • Problem with special Character & in Proxy

    Hi, We have a File --> XI --> R/3 Scenario. In this scenario, from XI we are passing the data to R/3 by calling the Proxy. When the data in the file has special character like & (for example <Companyname>Dave&Busters</Companyname>), it is failing in

  • How to create XML string from BPM Business Object?

    Hello, I have a business object in my BPM project and I need to transform it in a XML string: From: Business Object: Customer Properties:          Name, Age To: "<Customer><Name>Robert</Name><Age>17</Age></Customer>" How can I do this? Thanks.

  • Hashtable in core of a class

    Hi, I try to use Hashtable in the core of a public class. But I cannot access to put method from Hashtable from the core of the class. I must access put method from a method of this class. Why ? import java.util.Hashtable; public class Help { Hashtab