Results 1 to 4 of 4
  1. #1
    marckamga is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default run actions, submit form and close on click

    Hi to all


    Please i want to know how to write java code in a servlet that will run actions, submit form and close the dialog containing de html page.

    thanks

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default

    A servlet does not control any of that.
    Apart from "run actions" (which is pretty vague), the "submit form" and "close dialog" are client side things.

  3. #3
    marckamga is offline Member
    Join Date
    Apr 2010
    Posts
    4
    Rep Power
    0

    Default

    Sorry, i see that i'm not very clear.

    I'm working in a project using JSP an servlets.
    The pages are dynamically generated by servlets.

    What I want is exemples of html code that my servlet will generate so the generated page will work as i have describe.

    How can I use JSP scriptlets and javascript together to do what i have described

    Thanks

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,953
    Rep Power
    19

    Default

    Still not sure what you mean.

    Submitting a form is something done on the client, so the JSP merely needs to provide the form to submit. Closing dialogs is all Javascript, so that's not really part of this forum.

    Run actions still doesn't make any sense...what does that mean?

Similar Threads

  1. Submit jsp form data to java
    By keanhoo168 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 09-09-2010, 11:43 AM
  2. Replies: 0
    Last Post: 10-31-2009, 09:24 AM
  3. Replies: 10
    Last Post: 08-12-2009, 04:02 PM
  4. Replies: 1
    Last Post: 04-15-2009, 07:47 AM
  5. Replies: 6
    Last Post: 11-28-2008, 06:55 AM

Posting Permissions

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