Display success message in same page when submit button is clicked

I have a jsp page, where i use a form to submit data into my database.when submit button is clicked, i am able to display "Data entered Successfully" in a different page. But i want to display the message in the same jsp page.
what do i do?
PS :- i have tried a javascript message box, but that is not working properly. I need this solved urgently.
Thanks

Hi Deeptha,
What is APEX version your using and is it your select list with submit option ?
Regards,
Ajay Periwal

Similar Messages

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • Query on  redirecting to a page when login button is clicked

    Hi,
    I want to redirect to/pop up an existing page with page name 9 when the login button in the log in page is
    clicked.Is that possible?.Now it is redirecting to page 1.
    Edited by: tj2010 on Sep 8, 2009 2:10 AM

    On login page (probably Pane 101) you have Login proces. Edit it to:
    wwwxxxxxxxx.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':'||nvl(:P101_PAGE_ID,'9')
    And probably you have to change Logout link in your Authentication Schemes:
    wwwxxxxxxxx.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=&APP_ID.:9
    Edited by: AndyPol on 2009-09-08 11:17

  • To display the same page when an error occurs.

    Hi,
      I need to display the same page when an error occurs in the page. For example, I am validating a few fields in a page. If an error occurs, then same page is to be displayed.
      I am presently using MVC type programming.
    Thanks in advance.
    Regards,
    Vara

    I usually use the Message class, for handling all possible validations. In the DO_HANDLE_DATA, do the validation, and if your validation fails, put your message in the message attribute available for that method. As you have not given a pointer to a new page, it will refresh that same page.
    If your validation is successful, go to next page.
    In the layout of this page(where you require validation), there is an attribute called page and it has get_message method. Call that method at the appropriate place in the layout.
    For more information , refer to :
    http://help.sap.com/saphelp_470/helpdata/en/91/b197ce280011d5991f00508b6b8b11/frameset.htm
    Web Applications and BSP --> Programming Environment -->
    Handling Incorrect Entries
    Let us know, if this answered your query.
    Regards,
    Subramanian V.

  • Display success message when validate is successful

    This sounds like the simplest thing but there is no box to put a success message in for validates. I have a text area that resets a database password, I would like to display "password changed successfully" in the region of the page this is on. I've tried setting and clearing some variables but they always seem to be set when I don't want them to be or vice versa.
    And yes I am new to this, as if you couldn't tell.......

    blp,
    This should not involve page validations. You should be using a page process to reset the password. Then you can check "include process success message" in the page branch definition.
    Scott

  • How can i display data on tha same page in jsp/servlet

    Hello friend,
    I am storing 50 items in a dataBase. i ve two buttons/links name previous and next. i ve to display 10 items each time in the same page when i click next button and the revrese for previous. through JSP/Servlet.
    Any suggestions will be appreciated.
    chintan anand

    I'm not sure this is the best practice... try to add the item in the arraylist, then when u click next button, add 10 to the counter. subtract if it is a previous button. thats it!
    ex..
    for(int x=counter;x<=arraylist.lenght();x++)
    ....print item here......
    }

  • How to display success message after Remote service call

    Hi ,
    I am currently using Flex form for adding/updating user
    personal details.On submit button click ,i am submitting details to
    server by calling RPC remote service.For calling remote service i
    am using penneframework. On penneframework, Remote service call
    result are populated in RemoteResult object. It dont have any other
    event method for handling result event.For errror handling, i have
    defaultHandler for displaying error message.
    Here i am having two requirements
    1. I should be able to track RPC response, so that i can
    display success message to user along with DB generated ID.
    2. I need to reset all form field after receiving RPC
    response.
    Here my question is
    1.How i can track server response, so that i can display
    success or error message.
    2. Is their any event or coding technique which i can use for
    solving this issue.
    Thanks
    Kumar

    you can do following way :
    quote:
    var token:AsyncToken =
    YourRemoteClass.remoteMethod(param1,param2);
    token.addResponder(new AsyncResponder(
    function(data:Object, token:Object):void {
    // tadaaa response
    function(info:Object, token:Object):void {
    //ooooo , noo, failure
    token

  • Display Success Message in Web Service

    Hi All,
    I Have created web service for function module, when executing web service in navigator its working fine. Here Exception message display in output but success message not display. Success message working in Function Module but not display in Web service. How to display success message in web searvice.
    Code used for success message in Function Module:
    Message S001(ZMSG).
    Thanks,
    Chandra

    Hello,
    Dont think you can use custom message classes in RFC's. Try using a generic message and check if the message is being populated.
    Vikranth

  • How to display success message in function module

    Hi Experts,
                      I am developing new function module regarding URL finder. As per my requirement ,
                                                 If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
    how to display success message.if possible can You write the code.
    Thanks
    raju

    Hello,
    We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
    Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
    Hope this might help you!
    Regards,
    MM Jaffer.

  • When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    Question
    When I click on my Yahoo bookmarks, I only get the download Yahoo toolbar page, I downloaded the toolbar again and I still get the same page when I hit bookmark icon - how do I get my bookmarks back - they still show on Microsoft Explorer

    julianscars wrote:
    I don't get a page, all I get is the player popping
    Click the green jelly button at the top left of the player.

  • Need to show popup when the Submit button is clicked for the second time ..

    Hi guys,
    I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
    Can anyone help with this please , its really urgent requirement ?
    Thanks in advance

    Hi,
    I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
    1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
    2. Write below logic in your Process Request method
    super.processRequest(oaPageContext, oaWebBean);
    pageContext.putSessionValue("status", "notInitiated");
    3. Include below logic in your PFR method
    if(pageContext.getSessionValue("status")!=null){
    if("notInitiated".equals(pageContext.getSessionValue("status")))
    super.processFormRequest(oapagecontext, oawebbean);
    pageContext.putSessionValue("status", "initiated");
    else
    String message = "Display error message as required";
    throw new OAException(message, OAException.ERROR);
    You may need to import required packages ( Related to OAException).
    Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
    Hope it helps.
    Thanks
    venkat

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Hiding the submit button on click

    Hi All,
    I have a req where i have 4 buttons which displays some info on the same page when clicked. if i click on button 1, button1 should not be displayed after clicking, if i click on button 2, button2 should not be displayed. I tried this using setRendered(false) in the PFR. But it throws an error that the webBean property should be modified in PF. How can i achieve this??
    Thanks,
    Sree

    Create a property VO with the attribute of type Boolean. Using the SPEL expression technique, set the rendered property value to thie VO Attribute at the design time. When the button gets clicked, call the Some of the AMImpl method, which can set the Boolean.TRUE or Boolean.FALSE value based on your requirement. hope this helps.

  • Cant sync music from iphone 5... When sync button is clicked starting sync appears and dissapears and nothing happens i cannot find a solution for this... Someone help me please

    I Cant sync please help me... Im using iphone 5 ios 7.1... when sync button is clicked starting sync comes and nothing happens and no music on my phone... Im trying to sync my playlist in itunes... I have itunes 11.1.3.8 64-bit Windows 8

    My apologies...the version is 11.1.4.62 not as stated aboive in my problem description.  I'm trying again and it just finished syncing fine and my iPhone 5 is still connected to iTuns physcially with USB lightening cable and is displaying the iPhone icon top right.  I clicked on it and iTunes is now "hung' or  locked up.  Shows to be an active running application but can't get back to it so willl have to kill with task manager.  There is some kind of problem going on with the latest version of iTunes and Wndows 7 and 8.1 or something.  My iPhone 5 now has a new feature that it is now asking me if I "Trust" this computer.  iTunes just came "unhung" after several minutes while I was typing this. Now I am going to start the backup to this computer HP Winsows 8.1 and iTune 11.1.4.62 and see what happens.  Says it is Backing up Jerrys iPhone but the Barber Pole progress bar is not turning an iTunes is hung again and I cant get back to it from this page I am typing on.  Maybe it will eventually release as it did a moment ago. 

Maybe you are looking for

  • Query: Sender JMS Adapter configuration

    Hi All,     I'm trying out a scenario which sends data from a Message Queue to SAP.     For this I need to configure JMS adapter in the sender side. I would like to know whether <b>should I specify any content conversion parameters like "fieldLength"

  • Break Order overriding my ORDER BY clause

    Hi Experts, I have created a report in Oracle 6i where I am getting the ORDER BY clause at runtime. And in the datamodel query, I am using a lexical parameter to say, order by the column selected in the parameter. The problem am facing is, at runtime

  • To Do's

    Hi everyone, new iPhone user here. Is there anyway to sync the To Do's in my mac mail application to my iPhone 3gs? My notes sync with it but I don't know about the to do's. Thanks

  • Msn messenger has frozen, can't turn off computer...any ideas?

    Hi there Can't sign in to msn messenger, i can't quit it either, computer won't turn off. I can't seem to get rid of it. Any ideas, anybody?

  • Creating new record(child)

    Hello everyone.Ive been working with OAF for several months(new to this technology, finished the provided tutorial material) and Im facing a problem,which im hoping someone could help me out a bit. First, ill describe the task: created a page with se