call Java method through button-click

Discussions

Web tier: servlets, JSP, Web frameworks: call Java method through button-click

  1. call Java method through button-click (1 messages)

    Hi everybody,

    I want to call a Java method by clicking a button in a JSP. This method is supposed to create a new user in a database.
    The normal button type 'submit' does not seem to work?!?
    How can I manage that.
  2. best way is for u to create an empty form with 1 submit button and then use a processing servlet to insert the details into the database