This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JDialog" Watch "JDialog" New topic
Author

JDialog

Jolene Dicks
Greenhorn

Joined: Aug 09, 2001
Posts: 12
Hi,
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: http://aspose.com/file-tools
 
subject: JDialog
 
Similar Threads
JDialog problem
java awt
setting the frame icon to JDialog windows
Reference to the outer class
How to call JDialog