wood burning stoves 2.0*
The moose likes Servlets and the fly likes Displaying confirmation window using servlets 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 » Java » Servlets
Bookmark "Displaying confirmation window using servlets " Watch "Displaying confirmation window using servlets " New topic
Author

Displaying confirmation window using servlets

Led Estonilo
Ranch Hand

Joined: Jan 06, 2009
Posts: 36
well i look up the web, but the best example I saw was



and I dont like the idea, I assume there is a way to display warning boxes or confirmation windows using servlets. anyone know how to do this
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
You don't use Servlets to generate warning messages or confirmation boxes, that is plain old HTML or JavaScript for that matter.

Servlets are there to process a request, and determine what at all to serve back to the client. Eventually, you end up rendering a plain old HTML file.


JDBCSupport - An easy to use, light-weight JDBC framework -
Led Estonilo
Ranch Hand

Joined: Jan 06, 2009
Posts: 36
so for every page that needs a warning i create a different html page?

i manage to generate htlm message that i can re-use, im just asking if it is possible to create confirmation window using servlets.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
You can create an JSP page in which you display the confirmation message. The confirmation message is determined by your servlet, which then forwards to the JSP.
Led Estonilo
Ranch Hand

Joined: Jan 06, 2009
Posts: 36
ohh thats better, thank you very much.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying confirmation window using servlets
 
Similar Threads
servlet not found
jsp redirect page
Opening a page with details about an item (servlet)
calendar
Applet upload form