This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Dialog for Input in JSP" Watch "Dialog for Input in JSP" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dialog for Input in JSP
 
Similar Threads
Execute Servlet At Given Time Instance
showInputDialog( ) focus
Modal dialogs
What things required to write generate multi lingual characters through Java
Input field and form ?