Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes Dialog for Input in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dialog for Input in JSP" Watch "Dialog for Input in JSP" New topic

Dialog for Input in JSP

Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi All,
I have the problem like:

Basically, I have a jsp which I want the user to click on a button then open a dialog for user input that lists information from the database.(the user has to select data that is listed only.) the dialog box (it has dropdown list) is populated with data from database dynamically. once user submit the dialog, its should be closed.
Thanks in advence
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
It wouldn't be just a dialogue. It would be a window, rather than a dialogue. You need to send the request to a JSP/Servlet and get a JSP page loaded, as a response, in a new window.

Well, now if you want to close the window on submit then you can use a javascript function window.close(), I guess.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

This is more about the HTML and Javascript to do this than JSP, so moved to the HTML forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Dialog for Input in JSP
It's not a secret anymore!