Please help : JSP ,Submit button and servlet

hi ...
i am new to JSP , i have problem when accessing submit button from servlet .i want ,if button pressed there some action in servlet .
But Why there only work for button1 ? and didn't work for button 2 & 3.
how the best way to handling submit button that more than one in a form ?
all help would be appreciated

my problem :
When button2 pressed , servlet didn't forward the page to out2.jsp.
just blank page when button2 pressed ,it's also occur for button 3.
i think the servlet can't get the request parameter when button pressed .
but for button1 , there work well.....

Only the button that is clicked has its parameter set so the rest of them are null.
When other buttons are clicked, button1Click will be null so if(button1Click.equals("button1")){ ... will throw a N.P.E

thanks r035198x ...
how to solve that ? to makes servlet handling when jsp have many button which name are different each other .
i have try , when i change the name of all button in similar name.servlet can handling well...
But actually i need handling for button which name are different each other .

i have try whit check null first , but the output is same before . when button 2 pressed , just only blank page ,also button 3 . for button 1 no problem . i see on http server monitor : when button 2 pressed , there nothing request attribute before & after .but for button 1 pressed , it's has.......

You should do the null checks for all your buttonXXClick variables.
Then you need to be checking your logs to see what is going on. If you get a blank page, it's highly likely that tomcat has logged the full exception trace in the log files. e.g an exception might be being thrown from your out2.jsp and out3.jsp.
Also structure your code so that you only call