>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I believe there is no direct means to achieve this using validator-plugin. Either you can store the javascript generated from validator into a static script file and modify the validation function or you need to write your own javascript function to do this. I am not sure what you meant by forward to another window. Did you mean opening new window or just submit the form and refresh the content on the page?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I mean, when user click "Yes", it will replace current page (same window) but when user clicks "No", it will bring user back to current page(without any changes on already-inputted data)
The actual problem is, I need to validate whether someone's name already exists in database (CMIIW - server-side-validation). If it is exists, the system will ask user whether user wants to continue with current person (that already exists in database). What should I do? I thought I can use following flow :
1. put validation in
jsp (call by something like isExists = validator.checkPersonExistence(name, townOfBirth, dateOfBirth) ). In this case, isExists may vary (I have 6 different values based on validation).
2. based on isExists, if it is not 0, display appropriate confirmation window. In this window, if user answers yes, replace page with second page. If user answers no, rreload current page (just close the confirmation window). Now, I don't know how to do it using JSP. I can retrieve isExists correctly, but I stuck here. So I think maybe Struts can answer my problem rather than using only pure JSP and JS. JSP can get isExists, but cannot open confirmation window while JS do vice versa.
Any suggestion?