This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Ajax validation to open a conditional popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax validation to open a conditional popup" Watch "Ajax validation to open a conditional popup" New topic
Author

Ajax validation to open a conditional popup

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
Hi
My current functionality is to send the form values as request parameteres to server where it will be first validated using xml and then Action will process the request to save the values in the database.
Now i want to add the 'download to excel' functionality.User can key in the values in form and can click on this download button to get the data in excel sheet.Issue here is that i have to do same validation and saving in this case also.
So i thought of using ajax to send the request as usual to the server and if i recieve the error show it on the jsp else on successfully saving the form values.open a window popup to download the excel sheet.
Is my approach correct.IF so please provide me some details or pointer so that i can implement this.In case if there is better appraoch then this,i will love to hear from you.
Thanks
Raj
 
GeeCON Prague 2014
 
subject: Ajax validation to open a conditional popup