Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Struts2 without execute method

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Struts2 without execute method

    If i want to have the same functionality of action class in struts2 but would like to rename the execute method, in which configuration file i have mention the new method name??


  2. #2
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: Struts2 without execute method

    In the property 'method' of the <action /> tag.

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: Struts2 without execute method

    Thanks nicky

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Struts2 without execute method

    As nicky said ...........
    we need to add the method tag in <action method="method name to be executed on instead of execute method/>

Similar Threads

  1. execute a method over a maximum period of time
    By PedroCosta in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 24th, 2011, 02:06 PM
  2. struts2 is better or spring?
    By the light in forum Web Frameworks
    Replies: 0
    Last Post: June 26th, 2011, 11:10 AM
  3. MultiLevel Combobox in Struts2
    By tcstcs in forum Web Frameworks
    Replies: 0
    Last Post: May 23rd, 2011, 06:47 AM
  4. Plugin the struts2 framework
    By kalees in forum Web Frameworks
    Replies: 1
    Last Post: January 15th, 2010, 01:19 AM
  5. how to execute a simple display without a main method
    By chronoz13 in forum Java Theory & Questions
    Replies: 5
    Last Post: January 13th, 2010, 07:28 AM