Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 823805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:00:15+00:00 2026-05-15T03:00:15+00:00

In struts 1.2, when an URL in the form http://foo.com/barAction.do is invoked, this will

  • 0

In struts 1.2, when an URL in the form http://foo.com/barAction.do is invoked, this will call the execute method (or process) in the action class that was mapped to barAction.

Is it possible to call a different method other than the execute (or process) in the same action class when the above URL is invoked?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:00:16+00:00Added an answer on May 15, 2026 at 3:00 am

    You can use a DispatchAction. Basically they allow you to choose which method will be invoked based on a request parameter or action mapping configuration

    There are at least 3 “flavours” of DispatchAction: EventDispatchAction, LookupDispatchAction, and MappingDispatchAction.

    I’d recommend you to take a lookt at EventDispatchAction that was introduced in Struts 1.2.9.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code should send two parameters to the struts action: <s:url id=loadReportsForAPageInitial value=/loadReportsForAPage.action >
I have a Struts application and I build by form <html:form action=companyProvAdd> ....</html:form> which
In a Struts Action, I want to get a parameter from the URL or
I have some code within struts.xml like: <action name=viewApplicationPDF class=com.xxx.abc.web.action.XApplicationPDFAction> <result name=success>/WEB-INF/templates/xApplication.jsp</result> </action> I
I have struts2 action method. It will be called from different server. i.e. In
Using Struts 2: when will the .tmp file - that gets created after uploading
In struts the action scope was defined as <action scope=session .../> How do you
I want to add a URL parameter before forwarding to another action from an
I have a web application that is made with Java+Struts. There is a form
In Struts 1 you could have, in struts-config.xml, a declaration like: <action path=/first forward=/second.do>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.