wood burning stoves*
The moose likes Struts and the fly likes Confirmation after server side validation Struts 1 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 » Frameworks » Struts
Bookmark "Confirmation after server side validation Struts 1" Watch "Confirmation after server side validation Struts 1" New topic

Confirmation after server side validation Struts 1

Nick Jackson

Joined: May 01, 2013
Posts: 2
I've been doing a lot of research for this solution but it seems that most answers are in ASP.NET. I am using the html:form tag within my JSP. What I am trying to achieve is showing a simple JavaScript confirmation box after the server side validation is done for my html form. I have it in place but it's showing before the validation. I'm doing my server side validations within my submit action, if it pass it goes to the next page and if it doesn't I am using "find.inputForward" to reload the page with the validation errors. What I would like to happen is to somehow show a confirmation right after my validations are done within my submit action. Any help would be greatly appreciated, Thanks in advance

Update My Server side validations is working, I just need some way to trigger a confirmation message once the validations has passed before the action is called to submit the information to the database

UpdateIm required to have a confirmation message shown before the data is sent to the DB. I have a confirmation box but it is showing before the validations. The user should be shown a confirmation box after the validations and before the information is sent to the DB

Here is a sample of what I have:



Struts Action Mapping

Ayan mallick
Ranch Hand

Joined: Nov 17, 2012
Posts: 44
I think confirmation is implicitly given by showing success page. Do we really need an intermediate confirmation.
Nick Jackson

Joined: May 01, 2013
Posts: 2
The client wants to require a pop up box that asks before the action is getting submitted to the database.
I agree. Here's the link: http://aspose.com/file-tools
subject: Confirmation after server side validation Struts 1
Similar Threads
can we have multiple validation.xml files to handle valdations of different forms?
struts 1.3,Validator forpassword field
client side validation in struts
DynaValidatorForm and Struts validator - not working at all...
is nesting of struts html:form valid & how it works