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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:44:38+00:00 2026-06-09T12:44:38+00:00

I am in a situation where I need to call a Class method and

  • 0

I am in a situation where I need to call a Class method and execute some tasks, which will return some data and need to set the same data to Struts bean and display the same dynamically in jsp page

<tr>
 <td><s:select id="selectProductCode" list="#session['UDM_Product_Codes']" name="selectProductCode" onchange="callXmethod(this);" /></td>
 <td><s:textfield theme="simple" name="assignedProductBean.assignedProductKey" value="" /></td>
 <td><s:select label="selectRole" id="selectRole" name="roleList" list="assignedProductBean.roleList" /></td>
 <td><b><s:a href="javascript:createRole()">CREATE</s:a></b></td>
 <td></td>
 <td></td>
</tr>

As shown in the code. as soon as i select Product, I need to call some method in my action class, which sets some data to bean again, based on which rest of the two fields depends

  • 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-09T12:44:40+00:00Added an answer on June 9, 2026 at 12:44 pm

    I am still not sure what problem you are facing.What you are describing is quite possible, all you need to take care of Ajax (Jquery).You can create a Ajax method which can pass the value to your Action class and can get back the result.

    I suggest you to have a look at Struts2-Jquery plugin as JSON based communication is much more flexible and jQuery complements JSON in a good way and provides a lot of functionality out of the box.

    Here is one example to see how this all work together

    • Ajax Dynamic Content with Struts2, JQuery and JSON plugin
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider a situation in which you need to call successive routines and stop as
My situation is a follows: There is some class MyList that will probably get
I have a situation where I need to call a method1() in class B
Following situation: I need a container for data with a rowindex. Currently we use
HI, I am in a situation that I need to display notification when call
I have a situation which I think I need the functionality provided by an
I have a process that needs to call a method and return its value.
I am searching for some help in next situation: I have some class and
I have some code in which I need to attach a new window page
Situation: I need to make an imap client (using java mail api) that if,

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.