Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confirmation after server side validation Struts 1

 
Nick Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

JavaScript:


HTML:


Struts Action Mapping

 
Ayan mallick
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think confirmation is implicitly given by showing success page. Do we really need an intermediate confirmation.
 
Nick Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client wants to require a pop up box that asks before the action is getting submitted to the database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic