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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:39:40+00:00 2026-06-07T05:39:40+00:00

This worked a month ago and now i reload the code and it doesn’t

  • 0

This worked a month ago and now i reload the code and it doesn’t work. here is my struts snip

    <action name="checkManager" class="CheckAction">
        <result>/pages/check_manager.jsp</result>
    </action>

    <action name="submitFile" class="SubmitFileAction">
        <result name="success">/pages/submit_file.jsp</result>
        <result name="error">/pages/check_manager.jsp</result>
    </action>

So, the first page is checkManager. it has a button that calls the submitFile action. When that fires, it checks a password, if it fails the action class sends an error result. Now a month ago the result error above would redirect the user back to the original check_manager.jsp page complete with data that was loaded originally and the error message. Today, it redirects the user to the raw check_manager.jsp page. no data, its like the servlet never fired and its just rendering a blank jsp page. I checked the source history and nothing has changed in this application.

I don’t understand why this would stop working, can anyone give me an idea? i have to present this to the client in about an hour and a half so i’m really stuck here.

note, i tried changing the error to this

<result name="error" type="redirectAction">checkManager</result>

and I get my data back, but i loose my error message which isn’t a good thing. ugh, any ideas?

if (enteredHash.equals(storedHash)) {
            _log.debug("The password matched");
            UserSession<User> userSession = (UserSession<User>) session
                    .get("user");
            #do logic#
        } else {
            _log.debug("The password didn't match");
            addActionError("The password you entered was incorrect, nothing was sent to the bank.");
            return ActionSupport.ERROR;
        }
        return ActionSupport.SUCCESS;

my jsp

<s:if test="hasActionErrors()">
            <div class="errors">
            <s:actionerror/>
            </div><br>
        </s:if>

again, this worked perfectly a month ago. All i did was check out that branch which has been untouched and deploy it. Now it doesn’t work.

  • 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-07T05:39:42+00:00Added an answer on June 7, 2026 at 5:39 am

    A quick fix could be to add this to getCheckList in the CheckAction:

    public Collection<Check> getCheckList() { 
       ActionContext.getContext().getSession().put("checkList", checkList);
       return checkList; 
    }
    

    and add this to the SubmitFileAction:

    public Collection<Check> getCheckList() { 
       return (Collection<Check>) ActionContext.getContext().getSession().get("checkList"); 
    }
    

    This is not a good permanent solution but should get you where you need to get in a crunch!

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

Sidebar

Related Questions

I don't know why, but this code worked for me a month ago... maybe
This code worked perfectly until a short time ago. The KML and the Javascript
This function worked fine a month ago, before the newest JQuery (1.5) came out.
I swear this script worked fine last night but can't get it to work
a month ago I asked this question: Trying to find the top 3 properties
I am upgrading a project I had working previously. This code worked a few
At the beginning this worked fine: $ rake cucumber:all But then $ script/plugin install
I have come across Evernote's bookmarklet and was wondering how this worked. You can
I tried to compile Qt+Webkit statically with MS VS 2008 and this worked. C:\Qt\4.6.2>configure
I'm trying to use depedency resolver inside a Web Api method. This worked fine

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.