File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JDialog" Watch "JDialog" New topic


Jolene Dicks

Joined: Aug 09, 2001
Posts: 12
This may be a stupid question... but does anyone have any specific instructions on how to invoke a JDialog Box class from a jsp. I have a JDialog object created and it is called JDialogNewSin... it simply tells a user that the sin they entered does not exist and asks them if they would like to add one. I want to take their response of either yes or no and continue from there. But I am so new to Java that I don't know how to go about actually using this class now that I have it created. Please help? Thanks.
Vlad Patryshev
Ranch Hand

Joined: Jun 30, 2001
Posts: 61
Since your Java code is executed on the server side, your dialog would open on the server - and the admins would be probably able to press the button - not what you intend, right?
In your case, you will probably want to have a message on the client side - for this you can use javascript's alert(). Just pour some javascript into your html.

Thanks,<br />Vlad
I agree. Here's the link:
subject: JDialog
It's not a secret anymore!