Results 1 to 2 of 2
  1. #1
    am17mu is offline Member
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    0

    Default 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.

    I m stuck here.:confused:
    Thanks

  2. #2
    varunthecool is offline Member
    Join Date
    Jul 2007
    Location
    bangalore,india
    Posts
    19
    Rep Power
    0

    Default

    <html>
    <head></head>
    <body>
    <form method="post" action="">
    //put ur form elements here
    </form
    <%
    //validate for succesful entering
    out.println("<p> Succesfuully updated </p>");
    %>
    </body>
    </html

Similar Threads

  1. How to display Tabuler Data in J2EE application on jsp page
    By AMATYA-CHANAKYA in forum Advanced Java
    Replies: 2
    Last Post: 04-23-2008, 05:54 PM
  2. code for number of clicks clicked on a web page???
    By Sveta_cool in forum Advanced Java
    Replies: 2
    Last Post: 02-01-2008, 02:55 PM
  3. how to display image in jsp page(Struts)
    By rama6262 in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 07:50 AM
  4. simulate message box
    By pablitohh in forum New To Java
    Replies: 1
    Last Post: 12-05-2007, 04:52 PM
  5. How to display a database-image in a page?
    By simon in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 11:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •