aspose file tools*
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
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.



 
Don't get me started about those stupid light bulbs.
 
subject: Displaying confirmation window using servlets