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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:24:32+00:00 2026-06-12T14:24:32+00:00

I have got a tricky problem. I have a page with three iframes, each

  • 0

I have got a tricky problem. I have a page with three iframes, each one calls a struts action to display the content.

Now, in one of the iframes, there is a (struts) form and a (struts) submit button. In another frame, an historic of the last actions performed by the user. When the submit button is clicked, I would like the form to be submitted and the entire page reloaded, so that the historic is up to date.

Last problem, but not least :

Let’s say I have : – select1 : a struts select in the form.
When the submit button is clicked, the struts action related is called. But, I do not want to have a “select1” attribute in this action. Instead, I want to have an object that contains this “select1”, lets say an object called “fieldContainer”. I want fieldContainer.select1 to be initialized when the form is submitted.

So lets have an example :

form.jsp :

<s:form>
  <s:select id="select1" name="select1" list="select1list"/>
  <s:submit action="submitThisForm"/>
</s:form>

theAction.java :

FieldContainer fieldContainer;

@action("submitThisForm") 
String submitThisForm() {
  String mySelect = fieldContainer.select1 ;
  // do something with mySelect
  return "SUCCESS";
}

I don’t know how to achieve something that corresponds to every point, any idea ?

  • 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-12T14:24:33+00:00Added an answer on June 12, 2026 at 2:24 pm

    For the first problem you will have to do it with javascript on the client-side.

    After displaying the new content of the submitted page, the parent of the iframe has to handle the updating of the other pages.
    Either the parent causes a refresh of the other frames
    or
    the needed information is hidden in response of the submit and is taken by the parent and set to the “historic frame” (by js).

    Both has advantages but I cannot think of a solution without javascript.

    About your least problem:
    If the action provides a getter for fieldContainer and the name of the field is “fieldContainer.select1” struts will put the value to the setter in the object fieldcontainer.
    The fieldContainer should be somewhere in the valuestack, so struts can find the setters for it.

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

Sidebar

Related Questions

I've got a slightly tricky problem to solve; imagine this: One of my applications
Got a slightly tricky problem I'd like some advice on. I have a source
I have got a tricky problem with VS2012 and EF5. I have posted the
We've got into a very tricky scenario in a project. We have used lot
Now this is a tricky problem for which I'm not able to figure out
I've got a rather tricky problem that I've been trying to solve for the
My first query where I got problem here : Tricky GROUP BY issue on
i got a tricky one: I can't set valid breakpoints. Not in Tests, neither
I got a tricky problem here: in my app, there's a list (using a
I'm stuck on a small but tricky problem since yesterday. What I have is

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.