reset password
Author Message
vkalari
Posts: 12
Posted 03:35 Jan 27, 2014 |

I am using JOptionpane(swing) for validations or Error Messages and i don't know it's not working on my servlet. It's taking too much time for run so what can i do?

it's working using printwriter or (java.io.PrintWriter) so is it correct way to give validations on all require fields?
 

                                                                                                                                                                        Thank you

cysun
Posts: 2935
Posted 07:39 Jan 27, 2014 |

When you write Java desktop applications, you use widgets like JButton, JOptionPane etc. to create the GUI.

When you write web applications, the generated HTML page is your GUI. And to check for invalid input, just do it in the servlet code like in the Add servlet example.