How to make a Struts message null after used in JSP?

Hi,
In the context of Struts/JSP,
An action class might write error messages by
ActionError msg = new ActionError("msg.request.something");
ActionErrors msgs = new ActionErrors();
msgs.add(ActionErrors.GLOBAL_ERROR,msg);
saveErrors(request,msgs);
This message will produce a popup modal window by the following JSP code:
<logic:messagesPresent>
<html:messages id="error">
<!--<li class="infomsg"><bean:write name="error"/></li> -->
<script>javascript:alert('<%=error%>')</script>
</html:messages>
</logic:messagesPresent>
The problem is that this JSP page is shared by serveral actions: when another action invoke this page again, the previous error message will take effect again.
So my question is how to make message null after used once by its author.
Thx.
PY

msgs = null;

Similar Messages

  • How to make countdowntimer in java bean to use in jsp form

    i make an aplication in jsp with XHTML MP format..i have problem to maka a countdowntimer in java bean to use in the jsp form.could anyone help me with this problem

    Use JHelp, downloadable from Sun. This is a quit big package, you have to read a lot before applying.
    http://java.sun.com/products/jfc/tsc/articles/javahelp/index.html
    enjoy
    sergio

  • How to make numbers in message text input  fields left aligned?

    Hi Friends
    I have completed one of my task .but getting result right side of the field.
    how to make numbers in message text input  fields left aligned?
    Thanks
    Aravinda

    Hi ,
    Sorry for late replay i am trying this alos not set that page....
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    and one more that kff field working is fine for ex display any text pled displayed properly and only problem is not set the value and HrSitKeyFlex6 and HrSitKeyFlex7 fields are perfectly get the values but not pront HrSitKeyFlex8 that only my issue....
    Regards,
    Srini

  • How to make Adobe F.P. install after downloading installer??

    how to make Adobe F.P. install after downloading installer?? 

    Check where the file has been downloaded to, then double click the download file to start the installation process.

  • How to make the delivery cost changeable after cancellation of GR?

    Create a PO (with Delivery cost), then GR (101) , then cancel the GR (102), but the delivery cost still cannot be modified eventhough the GR has been cancelled - how to make the delivery cost changeable after cancellation of GR?

    Hi
    "You are not allowed to add new delivery costs in a purchase order once goods receipt has been carried out as these would then be proposed in the invoice verification. The related posting to the clearing account for goods receipt and invoice receipt would not then balance, if no further goods receipt took place.
    After the invoice has been received successfully, it is not possible to change the delivery costs in the order. This is because information necessary for problem-free operation is no longer available for the delivery costs that have already been posted for subsequent reversals or invoices, or the operation can no longer be done without errors.
    It is also not possible to change delivery costs for stock transfers with SD shipping after goods have been successfully issued, as this can lead to errors during cancellation."
    I think you have to delete the line item and create a new line item with revised delivery conditions..
    MRao

  • My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    Use the Settings app.
    Settings > General > Auto Lock
    Is Auto Lock set to Never? Change it to less time.

  • How to make a program for backgroung processing used servlet

    how to make a program for backgroung processing used servlet

    well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.

  • How to make a field editable again after displaying error msg (validation)

    Dear All,
    In dialog programming, I have written a validation on a text field that it should not be left blank by the user, but after displaying the message the field becomes gray (non-editable). How can I make it editable once again after displaying the error message.
    My code is as following:
    ***INCLUDE MZFBPS1_SAVE_DATAF01 .
    *&      Form  save_data
          text
    -->  p1        text
    <--  p2        text
    FORM save_data .
    ****************Check For Empty Fields Start
    if ZFBPS_GATE_IN-truck_code is INITIAL
    or ZFBPS_GATE_IN-truck_no is INITIAL
    or ZFBPS_GATE_IN-transporter_code is INITIAL.
    MESSAGE e020(zmatlist).
    endif.
    ****************Check For Empty Fields Start
    Regards,
    Alok.

    hi,
    u can do it in chanin end chain.
    For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values u like to give some error message. You can declare that fields in the chain enchain so that only those fields will be input enabled and all other fields will disabled.
    CHAIN.
    FIELD chk_connobj.
    FIELD chk_inst.
    FIELD chk_devloc.
    FIELD ehaud-haus.
    FIELD eanl-anlage.
    MODULE modify_screenfields.
    ENDCHAIN.
    *& Module modify_screenfields INPUT
    * text
    MODULE modify_screenfields INPUT.
    CLEAR okcode.
    okcode = sy-ucomm.
    CASE okcode.
    WHEN 'ENTER' OR 'EXECUTE'.
    IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
    chk_devloc EQ c_x.      -----------> ur condition
    IF ehaud-haus IS INITIAL.
    SET CURSOR FIELD 'EHAUD-HAUS'.
    MESSAGE e000(zo_spa) WITH text-017. " message obj
    ELSE
    loop at screen.
    if screen-name = 'FIELD_NAME'.
    field-name-input = 1. -----------> chnges to non-edit mod
    modify screen.
    endloop.
    ENDIF.
    ENDIF.
    ENDMODULE.
    Rgds
    Anver
    if hlped pls mark points

  • How to make a blimp in Adobe After Effects?

    I'm making a video with a blimp in it soon, is it possible to make a blimp in Adobe After Effects? If you can't could you please name some free softwares that could make a blimp? Thanks so much if you can (A Moving Blimp Shown from bottom)

    This completely depends on your shot. You could simply cut out a shot of a blimp using Photoshop and animate that moving across the screen, or you could do camera projection in a 3D app and model a 3D blimp. Blender is a very powerful open source (free) 3D program that I use all the time. It will take you a couple of weeks to learn enough to set up the kind of a scene I just described.
    It sounds like you're just starting out so I'd go for the first solution. Find the shot of the blimp first, then, based on the angle of the shot, shoot the shot you want to use as the background plate.
    Blimp, cut out in Photoshop, layered with background plate =
    Notice how the light is coming fromthe same direction and has about the same quality.

  • Data Merge: How to make images skip and continue after an ad or coupon?

    Using Data Merge to create a catalogue of images but through out the layout there are Ads spaces that I need to have control of the images not to be layout in that particular space. How do I go about  having that control using Indesign Data merge?
    thanks

    Thanks ja3754 for responding but you I went to a job interview and they explained  the procedure to me but did not showed me the steps. I told them it was news to me since I am aware of data merge doing business cards, variable letters and brochures but nothing to this level. So "unless they were not clear on the steps" according to them it is doable in data merge. But I am having a hard time finding any information on this procedure.

  • How to set current row in table after use tab key on inputText

    Hello all,
    My first post .., I'm newbie in ADF and I will try to explain my problem.
    For the moment we use ADF 11g (11.1.1.4), in a jsff page I have a table with an inputText column.
    On the valueChangeListener of the inputText, I invoke a method in a viewScope bean which call an EJB method, make some services in the EJB on the line modified. After that I refresh the VO and the table (because others values on the line have been modified) and reset the focus on the same inputText modified by the user with javaScript because focus was lost after refresh.
    So far, everything works fine.
    When I use the arrow keys to change the selected row in the table, it's work fine (focus is still in the next or previous inputText), but if user try to use tab key to change the current line, the inputText on the next line have the focus but the current row of the table is not changed (I think it's normal).
    My question : how can I change the current row after tab key pressed in this case ?
    I don't know if it's really clear, not easy to explain, don't hesitate to ask more details.
    Thanks in advance.

    Frank Nimphius wrote:
    Hi,
    My question : how can I change the current row after tab key pressed in this case ?
    Use a client event to listen for the keyboard entry and intercept the tab. The use af:serverListener to call the server to set the rowKey on the table and issue a PPR for the table to re-paint
    See sample 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    to learn about how to use the client listener and server listener
    FrankHi,
    Thanks a lot for your advices, I used the client and server listener
    I used this code on the method call in order to change the selection after key tab pressed, I don't know if it can be easier, but it works.
              if (LOGGER.isDebugEnabled()) {
              LOGGER.debug("START changeSelectedRow");
              RowKeySet oldRowKeySet = myTable.getSelectedRowKeys(); // get oldRowKeySet
              if (oldRowKeySet == null) {
                   if (LOGGER.isDebugEnabled()) {
                        LOGGER.debug("oldRowKeySet is null");
                   return;
              RowKeySetImpl newRowKeySet = new RowKeySetImpl(); // The new RowKeySet use to change the selectedRow
              DCIteratorBinding bindingIterator = ADFUtils.findIterator(MY_ITERATOR);
              bindingIterator.setRangeSize(-1);
              // set the new index of the current row.
              int index = bindingIterator.getCurrentRowIndexInRange();
              if (index < bindingIterator.getAllRowsInRange().length - 1) {
                   index++;
              bindingIterator.setCurrentRowIndexInRange(index);
              // get the current row after changed the index
              Row currentRow = bindingIterator.getCurrentRow();
              if (currentRow != null) {
                   ArrayList nextLst = new ArrayList(1);
                   nextLst.add(currentRow.getKey());
                   newRowKeySet.add(nextLst);
                   // set the new selectedRow
                   myTable.setSelectedRowKeys(newRowKeySet);
                   SelectionEvent selectionEvent = new SelectionEvent(oldRowKeySet, newRowKeySet, myTable);
                   selectionEvent.queue();
                   AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
              if (LOGGER.isDebugEnabled()) {
                   LOGGER.debug("END changeSelectedRow");
    Best Regards
    Benjamin

  • How to make the yellow status to green using Process chain in bw 3.5?

    Hi all,
    How to make a request in the infocube from yellow to green using an process chain in bw 3.5?
    Thanks
    pooja

    Hi.
    Use these two Functional Modules one after the other:
    First - RSAPO_SWITCH_TRANS_TO_BATCH
    Second - RSAPO_SWITCH_BATCH_TO_TRANS
    Regards.

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

  • How do I create a message board/forum using forms in Dreamweaver?

    I want to create a forum or messageboard using the form in Dreamweaver but I don't know how to do it. Is there any guidance on how I could create a message board or forum on Dreamweaver?

    I don't think it can be done with just dreamweaver,
    You will have to download something like PHPBB,
    If you have a host with fantastico deluxe you can easily set up a forum
    with it.
    Daniel

  • How to make settings of root folder , while creating customize JSP Pages.

    Hi All,
    I am developing customized BI Beans Application.While the development ,I gose to compnent pallete and try to access BI Beans Objects which are on same workspace . But in the location tab it shows root foloder and only one object . I am unable to access another object which are belongs to same workspace .
    My question is how to make setting of root folder (there is no any option) and how to access other objects from same workspace
    Please guide me, if someone have any idea
    ViSHAL

    Can you describe the steps in detail?
    Which tag are you using from the component Palette?
    Also do you have multiple workspaces in your OLAP source DB?

Maybe you are looking for

  • Some D800 Raw files not previewing

    Not sure what the problem is, but every so often, I'll have some D800 Raw files (14 bit, lossless compressed), and the .NEF logo will appear sideways in the preview panel. I can only see the image if I open it up in camera raw or Photoshop. Not sure

  • Quicktime Error -50 on every share intent

    Hi! I'm having troubles when trying to export a movie from a Final Cut Pro X timeline. I always use Share/Apple Devices or Share/Send to Compressor. I always get the same error after a while: Quicktime error -50 Does anyone have a clue? Thanks! PS: I

  • SQL date format dd/mm/yy

    Hi, I've already searched for this question, and tried the code in the answers given, but I still can't get it to work. I'm trying to display the current date in the format dd/mm/yy, with no time. Here is the code I've tried so far: --set dateformat

  • How to translate BW 3.5 objects.

    Hi Gurus, How to transalate BW 3.5 objects other than english language and procedure to transport. Thanks in advance, Anil

  • Problems since re-install

    Hi, I upgraded to Tiger 10.4.8 and my Mac seemed to slow down considerably. Most of my programs were really slow and had problems using them. On the forum, it was decided that i should re-install panther. I have done that, but safari, itunes, ical i,