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 8829213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:47:04+00:00 2026-06-14T07:47:04+00:00

I have a method given below in struts 2 action class; public String add(String

  • 0

I have a method given below in struts 2 action class;

 public String add(String boo){
//codes here
    }

I want to call the add method.
And my struts.xml

<action name="Login" class="com.json.action.JsonAction" method="add">
        <param name="boo">boo</param>
                <result name="success">/success.jsp</result>
        </action>

And it shows an error like
java.lang.NoSuchMethodException: com.json.action.JsonAction.add().
How can i call the add method?

  • 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-06-14T07:47:05+00:00Added an answer on June 14, 2026 at 7:47 am

    Struts actions do not have parameters and return a String.

    What you want to do is have a String boo in your action class with getter/setters. It will then be available in your method. And if you have the default interceptor stack (see http://struts.apache.org/2.2.3/docs/interceptors.html) it will automatically be populated with “boo” according to your struts.xml configuration.

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

Sidebar

Related Questions

I have a method below doing casting on a String according to the given
I have method that returns module path of given class name def findModulePath(path, className):
I have method that is returning IQuerable given below: internal IQueryable<TradeLeads> GetLeadsByCategory(int categoryId) {
I Have following in my struts.xml file <action name=ProductVerification class=com.frontend.ProductVerification> <result name=success>/jsp/product_verification.jsp</result> <result name=input>/jsp/product_verification.jsp</result>
I have a separate method to create customized UITableViewCell, Which is given Below -(UITableViewCell*)getCellContentView:(NSString*)cellIdentifier
I have a a databasehelper and an activity with codes given below. The problem
I have a class with a set of properties as given below. class CustomerInfo
I have the following models with associations as given below:- class Comment < ActiveRecord::Base
I have written a method to calculate a given percentile for a set of
Given a variant, does VBScript have an equivalent of C#'s DateTime.TryParse method?

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.