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

  • Home
  • SEARCH
  • 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 1012903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:00:58+00:00 2026-05-16T10:00:58+00:00

My common usecase for my Struts2 application is that I have Actions that collect

  • 0

My common usecase for my Struts2 application is that I have Actions that collect data which are presented on an JSP page. I’ll call these view-actions.

But then I also have logic actions, which “do” something in the background (like registering a user). These might also have a bean that needs to be shown on an JSP, but I need to redirect the result to one of the view-actions.

Sadly, the bean I need from the first action doesn’t get transferred to the ValueStack, but only values from getters from the view action. Example:

<action name="mailConfirm" class="de.abelssoft.updateyeti.Frontend.MailConfirmer">
  <result name="login" type="redirectAction">
    <param name="actionName">register</param>
    <param name="email">${person.email}</param>
  </result>
  <result name="input" type="redirectAction">
    <param name="actionName">register</param>
  </result>
</action>

What is the pattern I’m missing here? Or do I have to store everything I need in the response context?

  • 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-16T10:00:59+00:00Added an answer on May 16, 2026 at 10:00 am

    I got no answer to this question, so I’ll tell you what I’ve done. Sorry for not providing a “good answer”.

    I wrote two interceptors. One for the logical action that would store message-objects in the user session temporarily and one for my view actions that would take and remove them out of the usersession.

    I used the logical action interceptor where needed and used the viewaction interceptor for all other action to make sure that when an action redirection has happened before the view action, the message-objects will be found and used.

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

Sidebar

Related Questions

The common sense tells that the Doxygen comment blocks have to be put in
A common pattern in C++ is to create a class that wraps a lock
A common argument against using .NET for high volume, transactional enterprise systems is that
A common scenario when using source control is to have a development branch along
I have what I think is a rather common use case for NHibernate. I
In Zend Framework, I have a common use case where I need to propagate
This is a very common usecase we see on stackoverflow, facebook, etc. You often
Say, we have a query string that looks like this: param1:'test1' && param2:'test2' I
I have a very large Form with many date fields that need to be
Common LISP and Emacs LISP have the atom type predicate. Scheme and Clojure don't

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.