wood burning stoves*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax validation to open a conditional popup" Watch "Ajax validation to open a conditional popup" New topic

Ajax validation to open a conditional popup

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Ajax validation to open a conditional popup
Similar Threads
Excel-format report
After validation drop down box values will be lost.
How to use Threads in Servlets?
Controlling Microsoft Document Box
html:select AJAX question