Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDialog

 
Jolene Dicks
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic