Multiple actions on a submit button

Hi ,all

I am working in websphere application developer environment.

i have created a JSF

in which i have a jsp called signup.jsp

which have a form for user input and a submit button.

and i want to behave my submit button is such a way that is calls a validate function(javascript) as well as calls a method "next" which is stored in a java bean called rooke.java

how can i do this?

please provide your valuable replies.

thanks

[482 byte] By [upstonea] at [2007-11-27 9:07:59]
# 1

> and i want to behave my submit button is such a way

> that is calls a validate function(javascript)

Use the onclick attribute for this.

> as well

> as calls a method "next" which is stored in a java

> bean called rooke.java

Use the action or actionListener attributes for this.

RaymondDeCampoa at 2007-7-12 21:45:24 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...