Struts: form not refreshing on error message display

Hope this is the right forum for my problem.
I have a form that requires two actions: the first actionform is called to set up the user input form (pre-populate fields), the second actionform is used to process the data entered into the form. The scope of both actions is "request". Unfortunately, if an error is thrown when processing the users data (via the validate() method), not only does the error message not display, but the form doesn't re-display itself. As for the clients form itself, it has designed to be reused multiple times by the user (this isn't a one-time submission), so new data can be created--consecutively is needed ---or existing data may be modified through it.
I've messed around with the scope and discovered that if I use session instead of request, all of the pre-populated fields will remain in tact if the user creates an error. Great! But now when the user goes to use the form, if specific fields that were used the first time around aren't used the next go-around, the previous values will be called and entered into the database. I attempted to remove the session attributes before the form is reinitialized and after captured by , but to no avail.
I've also read up on the validate() method, possibly removing validation from the ActionForm itself, but this has it's drawbacks too.
Would anyone have suggestions on what other options I may try? I'm fairly new to struts and any help would be appreciated.
Thanks.

use the reset method of the form
s

Similar Messages

  • Premiere Elements 12 does not start after error message: display driver is incompatible

    After successful installation and starting Premiere Elements the following error message appears: "Uncompatible display driver identified. Update the display driver for a better and faster playback performance!" Hopefully my translation from German is helpful enough. I confirmed with OK but unfortunately Premiere Elements does not start. I checked the display driver: it is the most actual one: AMD Radeon HD 7610M. Furthermore the hardware should be OK as well: ASUStek with an Intel Core i5-2450M CPU @2.5 GHz; 6 GB RAM; 64 Bit Windows 7 Service Pack 1. What can I do?

    Moonkeys25
    Recap...please confirm that as of this date, the problem exists with or without the antivirus and firewall(s) disabled.
    Moving forward...
    If you issue was specific to the display card error that you have been getting then probable conclusions
    a. the ADM Radeon H7610M driver version is not up to date
    or
    b. the ADM Radeon H7610 M video card/graphics card installed as is is not compatible with Premiere Elements 12 on your Windows 7 SP1 64 bit
    The updated driver version and the BadDrivers.txt file deletion should have corrected the problem unless there is a gross mismatch between Premiere Elements 12 and ADM Radeon H7610M.
    Did you use the link that John posted to get the auto detection of the latest driver version for the ADM card?
    If we have gone as far as we can with the card and its driver version angle on this, then we can try the generalized troubleshooting drills with no guarantees, just hopes
    1. Delete the Adobe Premiere Elements Prefs file and, if necessary, the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists.
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    12.0
    and in the 12.0 Folder is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then you delete the whole 12.0 Folder in which the Adobe Premiere Elements Prefs file exists. You just need to make sure to have the computer's Folder Option Show Hidden Files, Folders, and Drives active so that you can see the complete path cited.
    2. If "1" has no effect on the issue...uninstall, ccleaner run through time, reinstall with antivirus and firewalls turned off.
    a. Control Panel/Program, select Adobe Premiere Elements 12, right click the entry and click on the Uninstall pop up. Then follow the instructions for the uninstall.
    b. Download and install the free ccleaner for a computer run through to get rid of leftovers from incomplete uninstalls and installs.
    https://www.piriform.com/ccleaner/download
    When you are ready for this step, I will give you a step by step through the ccleaner (regular cleaning part and registry cleaning part).
    c. Reinstall from your installation files or installation disc, with antivirus and firewall(s) disabled.
    Please review above and then let me know if I have interpreted correctly where we are in the troubleshooting. Do not start the above plan until we are in agreement on the details and hoped for results.
    Thanks.
    ATR

  • ERROR MESSAGE : display of the query spec is not allowed

    Hi all,
    I have many queries built under a multiprovider. The problem is if i try to chane a query it is not allowing me to do it. Even for a query which i built it is not allowing. It is displaying an error message 'display of the query spec is not allowed'.
    Can anyone help me in understanding this issue?
    Thanks,
    Raj.

    Have you check your authorizaiton trace with ST01?
    You need authorization for this query in auth obj S_RS_COMP or S_RS_COMP1

  • Trying to export my forms results to excel  error message is adobe can not save as the file is open

    trying to export my forms results to excel, error message is adobe cn not save as the file is open in another location,   however, no other file is open.

    Thanks for continuing the help, but it is a medical realted form and I will just keep it confidential at this time.
    Larry Lakes,  Executive Director
    The HANDLE Institute
    [email protected]
    541-639-1588
    P. O. Box 6264
    Bend, OR  97708

  • Forms Error Message displayed twice

    But on clicking the save button to commit the changes in the form, the validation trigger fires and the error message is displayed twice. This is once for the item and at the other at the form level.
    The error message has to be displayed only once i.e. while submitting the form by clicking the save button. Please suggest.
    Thanks in advance.
    Edited by: sri_menon on Sep 24, 2008 8:30 AM

    Do you alter the data in your Character Item through a program unit? Since you only have a WVI trigger at the item level, something in the form is causing the status of the item to become "Dirty" or "Invalid" after the WVI trigger fires. Therefore, Forms fires the WVI trigger again. Something else you can try is to turn "Debug Messages" on (go to Preferences => Runtime tab => check Debug Messages). This will display an Alert for each trigger that fires during Runtime. Then you can record all of the triggers that fire after the WVI trigger fires the first time. Once you know which trigger fire between the first execution of the WVI and the second execution of WVI then you can put break points in these triggers and then run the Form with the Debugger and see what it happening during the validate cycle. If you are using Form6i, the debugger is very easy to use. If you on Form 9 or greater, there is some setup that must be done to debug the web deployed form, but it well worth the setup to be able to debug your form.
    Hope this helps.
    Craig...
    Edited by: CraigB on Sep 25, 2008 8:18 AM

  • Windows XP: iTunes will not open - no error message

    Hi,
    I have a fresh install of Windows XP with no other programs installed but Firefox, a graphics driver, and a wireless adapter driver - all on C:. This computer was built for surfing the net and managing an iPod... that's pretty much it. Anyway, I have reinstalled several times both Windows and iTunes and every single time I can install successfully, the event log confirms that it installed successfully, and then when I go to open iTunes, nothing happens. Not even an error message. The hourglass starts and then it disappears and... nothing. Its as if I never opened it. The event log shows this int he application folder:
    The description for Event ID ( 0 ) in Source ( iPod Service ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service started.
    I'm not sure this has anything to do with it because it doesn't indicate an error, just that an event occurred and it has no description for it.
    Please help me... TIA!

    After trying sto start iTunes, open the Task manger and look on the processes tab, do you see iTunes.exe running?
    If so you have a problem that is commonly due to an issue with cryptographic services.
    If you have just done a fresh install, was the smart card service installer, iTunes requires it.
    Here are my troubleshooting steps for silent launch failure with iTunes.exe running in the task manager:
    Before checking if iTunes works, restart your PC or close the iTunes.exe process with task manager if it is running.
    A couple of simple things to try:
    http://support.apple.com/kb/TS1776?viewlocale=en_US
    Stop the bonjour service, this FAQ has instructions:
    http://support.apple.com/kb/HT2250?viewlocale=en_US
    But usually it is due to a problem with cryptographic services.
    Check to see if you have your smart card service and that it is not set to disabled. For some reason iTunes needs it.
    Start>>Run>>Services.msc
    you should find the smart card service in the list. Report back with your findings.
    Malware can interfere with cryptographic services and also pervert a resolution so it is important to check that your system is clean before proceeding: Run a virus and spyware scan with up to date definitions.
    Then work through *Method 4* in the following link:
    http://support.microsoft.com/kb/822798
    You should be able to copy and paste the individual lines to save on typing.
    Make a careful note of any error messages you get, they are important for diagnosis. Report back any error messages especially the names of any dlls mentioned.
    If there are no errors try starting iTunes.

  • Huey Pro calibrator- error message  display measurement Error

    i am using this huey pro calibration.. it had been a year without problem... but now i am trying to calibrate my apple cinema display LCD 30 inch it keep saying error message- display measurement error.. and huey support never answer my e-mail. any idea? how can i fix it.. i did re install software many times but same thing happen.. so right now i can;t calibrate my monitor.. any help please

    >a nice NVidia card... Please help Adobe!
    1a - what is the model nVidia card, and what is your driver version?
    1b - for instance, I have a GTX 285 and driver 296.10
    2a - aside from the occassional Adobe employee, this is a user to user forum, not Adobe suport
    2b - how to contact Adobe...
    Adobe contact information
    http://www.adobe.com/support/contact
    In the US - Adobe General support 800-833-6687 M-F 5am-7pm Pacific
    In the US - Adobe Install Problems 800-642-3623
    In the US - Adobe Activation 866-772-3623 Open 24/7

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • "Internal error: An unexpected exception has occurred" error message displayed when browsing a cube.

    “Internal error: An unexpected exception has occurred“ error message displayed when browsing a cube.
    The error behaviour is quite irregular and does not occur for specific condition.
    Will cumulative update 9 for SQL Server 2008 R2 (SP1) installation help to fix the issue which is provided on the below link:
    (http://support.microsoft.com/kb/2152148)
    The current version of SQL Server I am using is as below:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    Thanks in advance for the help!

    Hi Mon,
    The hotfix you said is for Microsoft SQL Server 2008. So it will not work on your scenario since you are using SQL Server 2008 R2.
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • Process error message: Display on the same page

    When I create a before header process and that has an error, the error message shows up on a page by itself with the OK button. This takes away the context of the error
    Similar to how validations have the option of displaying inline on the same page, is there a way to have the process error message display on the same page?
    Thanks

    I just want to display the error message on the same page, thats all. I dont want a error page with just the error since it takes away all the context.
    Well what do you want to do, you can set a item to
    hold a message and display that item in a region
    when this_exception then
    :P20_ERROR_MESSGE := 'Something went wrong here';So, P20_ERROR_MESSAGE would be a hidden item on the page?
    Then display the item in a region.How can I display that hidden item in the region? So the region would just have this read-only text box in it? But then it wont be hidden? I guess I can conditionally display the region only if the error message is not null?

  • "The iphone software update server could not be contacted" - error message recieved when i try to update to 5.1.1 via itunes , what can i do ?

    The iphone software update server could not be contacted" - error message recieved when i try to update to 5.1.1 via itunes , what can i do ?

    Dear Lawrence Finch: 
    If you're still around I hope you see this message, as you're the FIRST person (after reading every link, thread, other sites, apple support articles, etc.) to mention JB may be causing this iTunes popup window to REPEATEDLY occur:
    "The iPhone software update server could not be contacted."
    No, I did not hack anything (are you kidding?  Grannies don't hack!), but I unknowingly bought a 3Gs iOS 3.1 from ebay that was not advertised as JB.  Since it is like brand new, I was going to keep it (because my old backup is iOS 3.1.2) & was trying to simply restore & update, which (I thought) would remove the JB (that's what everybody says at forums, etc).
    Instead, after "erasing all settings/content" (inside phone's Settings to get the prior person's name out of there), it is now stuck in White Apple Mode.
    Put it in DFU/Recovery Mode & connect to iTunes but that stupid above message keeps appearing & I have already read/tried EVERYTHING to get rid of that message, starting with: 
    1.  OLD phones (3Gs) with OLD iOS 3.1+ should work FINE with OLD Mac (iBook) with OLD OSX (Tiger 10.4.11) with OLD iTunes (9.2.1[5]).  So that can't be the problem.
    Here's all the other things apple & others say to check which I already checked:
    2.  USB ports are FINE, both work FINE, so that's not the problem.
    3.  No "extra USB devices" are connected, ONLY a mouse, & then the phone (yes, I tried it w/o the mouse connected but that didn't help).
    4.  No "usb hubs."
    5.  Latest iTunes for this OSX has already been DL'd (iTunes 9.2.1[5]).  If you know of a newer one for this OSX, please advise.
    6.  No antivirus software.
    7.  No security software.
    8.  No routers; only 1 comcast modem, period.  Wired Ethernet.
    9.  No wifi gadgets, no wifi at all.
    10.  No firewalls, except what is on iBook in the SHARING/System-Prefs. section.  It's turned OFF.
    11.  Did the hosts/terminal thing sudo nano whatever it was.  There were only 3 lines, NO gs.apple.com:
    xxxxx local host
    xxxxx broadcast host
    xxxx local host
    Oh, & btw, ATT officially unlocked this phone (after I filled out their online forms) but I can't finish the process via iTunes to get their Confirmation that "Device is Now Unlocked," so I can use T-Mo.
    So that's it.  If you have any other ideas of what to do from here, since from your comment, maybe it's the stupid JB on this phone that is causing the problem (???), please advise.
    Many thanks!

  • Reg:error messages display in wdabap

    hi expert
    could you please say what i need to pass the values which are mandatory in this error message coding .can you please share some the documents related to error messages display.
    method ONACTIONEXECUTEACTION .
    if sy-subrc ne 0 .
    get message manager
    DATA LO_API_CONTROLLER     TYPE REF TO IF_WD_CONTROLLER.
    DATA LO_MESSAGE_MANAGER    TYPE REF TO IF_WD_MESSAGE_MANAGER.
    LO_API_CONTROLLER ?= WD_THIS->WD_GET_API( ).
    CALL METHOD LO_API_CONTROLLER->GET_MESSAGE_MANAGER
      RECEIVING
        MESSAGE_MANAGER = LO_MESSAGE_MANAGER
    report message
    CALL METHOD LO_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
      EXPORTING
        MESSAGE_TEXT              = 'THE ENTERED TICID IS NOT AVAILABLE' .
        ELEMENT                   =
       ATTRIBUTE_NAME            =
       PARAMS                    =
       MSG_USER_DATA             =
       IS_PERMANENT              = ABAP_FALSE
       SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CTXT_ELEMENT
       MSG_INDEX                 =
       CANCEL_NAVIGATION         =
       IS_VALIDATION_INDEPENDENT = ABAP_FALSE
       ENABLE_MESSAGE_NAVIGATION =
       VIEW                      =
    RECEIVING
       MESSAGE_ID                =
    else .
    DATA LO_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
    LO_COMPONENTCONTROLLER =   WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
      LO_COMPONENTCONTROLLER->GETDATA(
      WD_THIS->FIRE_OUTVIEW1_PLG(
    endmethod.
    endif.
    thanks in advance
    Deepika
    Edited by: deepika_indian on Aug 18, 2010 7:32 AM

    Hi Deepika,
    Here for the method REPORT_ATTRIBUTE_ERROR_MESSAGE, mandotory fields are
    MESSAGE_TEXT
    ELEMENT
    ATTRIBUTE_NAME
    Here ELEMENT  v need to pass lv_el_context type ref of IF_WD_CONTEXT_ELEMENT.(Context Elemet Reference).
    Suppose your context having an attribute 'KUNNR'.
    So, here v need to pass in the below manner to raise an exception
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_gr2_visible TYPE wd_this->Element_context-kunnr.
    *   get message manager
      data lo_api_controller     type ref to if_wd_controller.
      data lo_message_manager    type ref to if_wd_message_manager.
      lo_api_controller ?= wd_This->Wd_Get_Api( ).
      CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
        RECEIVING
          MESSAGE_MANAGER = lo_message_manager
    *   report message
      CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
        EXPORTING
          MESSAGE_TEXT              = 'MESSAGE TEXT TO DISPLAY'
          ELEMENT                          = lo_el_context
          ATTRIBUTE_NAME           = 'KUNNR'
    *      PARAMS                    =
    *      MSG_USER_DATA             =
    *      IS_PERMANENT              = ABAP_FALSE
    *      SCOPE_PERMANENT_MSG       = CO_MSG_SCOPE_CTXT_ELEMENT
    *      MSG_INDEX                 =
    *      CANCEL_NAVIGATION         =
    *      IS_VALIDATION_INDEPENDENT = ABAP_FALSE
    *      ENABLE_MESSAGE_NAVIGATION =
    *      VIEW                      =
    *    RECEIVING
    *      MESSAGE_ID                =      .
    Kindly revert for further clarification.
    Regards,
    Amarnath S

  • Inconsistent error message display

    Using jsf/adf 10.1.3.3. Steve, I'm experiencing what seems to be an inconsistency in the way that error messages are being displayed. The problem I'm experiencing is that the first time an attribute fails validation, the error message is displayed only at the top in the message box and not beneath the respective component. The next time validation fails on this field, I see the error message at the top and beneath the component. This inconsistency seems to appear only when an attribute has been marked as mandatory (not null) and that particlar validation fails. Put another way, if I have a method validation on an attribute and that validation fails, I don't see this inconsistency. The error message always displays both at the top and beneath the component. I've tested this on one of your samples, RequiredFieldsWithCustomRequiredMessageIncludingFieldLabel, and found it happening there also. I made one slight change to the code in that example so that I could recreate this problem. There's code behind the Save button of the CreateNewEmployee.jspx which sends the user back to the 'Home' page of this app if the commit is successful. I've rewired that by returning null instead of returning "back". This way I can recreate the problem. Here are the steps to recreate:
    1) Run CreateNewEmployee.jspx
    2) Without entering any values, click Save.
    3) Validation fails for each of the required attributes, the errors appear for each of these attributes, but only in the top message box.
    4) Enter in valid values for the required fields.
    5) Click Save. This should commit the record just fine.
    6) Null out the value just entered for Employee Name.
    7) Click Save. Validation fails for Employee Name and the error message displays both at the top and just beneath the Employee Name input.
    I see this behavior without using the customized PageLifecycle class too, so I don't think that it has anything to do with those framework extension classes. Any idea as to why when validation fails the first time for a required attribute the error message does not display beneath that component as well? Thanks.

    The only workaround mentioned in the bug report is to use required="#{...}" instead of showrequired="#{...}" That is, if the client side manages the enforcement of the requiredness, then the issue apparently does not occur. The bug is still open (i.e. hasn't yet been fixed in 11g).
    I'd recommend you file a Service Request on Metalink and ask for a fix to bug# 5918276 if it's a showstopper issue for you.

  • Hp2175xi printer Remove and check cartridge. error message displayed on printer.

    Remove and check cartridge error message displayed on printer. I have removed and inspected cartridges and no problems were evident. Shut down printer and restarted, unplugged and restarted same error displayed. Please help with any suggestions or solutions.
    Thanks John

    Hi
    If the cartridge isn't empty and you've tried the usual troubleshooting (which includes cleaning the contacts on the cartridge and in the printer) then it's probably best to contact Phone Support for a possible replacement.
    You can check if the cartridge is still within warranty by checking the warranty ends date here
    Best Regards
    Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    Michael,
    The link for the word 'HERE' directs to a Evergreen School District page, which outside of Mobile Me and/or Aperture. Your school district network might be intercepting the request from Aperture and displaying the 'network authentication page' that you see, instead of the email. I would get with the IT department to see if they can help you get around this.
    Have you also tried using the 'Tell a Friend' feature from another network location, like starbucks or your home?
    Cheers,
    Owen.

Maybe you are looking for