hi, I try to display a message in a jsp page. Is correct to use a JOptionPane? There are other options to show a message from the Action class ?
1 The user fill a form. 2 an action look in the database 3 if i have a empty result i show a warning message. /* check the list */ final ModelForm form = (ModelForm) ctx.form(); if (form.getModelNameList().isEmpty()) { form.showMessage("please select another brand"); form.setErrorMsg ("pleases select another brand"); clearModel_onClick(ctx); return false; } /* in form class */ public void showMessage ( String message) { JOptionPane messageBox = new JOptionPane (); JOptionPane.showMessageDialog (messageBox, message, "Warning", JOptionPane.WARNING_MESSAGE); messageBox.setVisible (true); } The problem if I use a JOptionPane the first time i used it will be under the browser. Thanks. PS: If this is not the correct mail list please let me know. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]