• Post Reply Bookmark Topic Watch Topic
  • New Topic

Validations for an excel version in my Servlet.  RSS feed

 
kirankumar Bethina
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a JSP which allows user to upload an Excel file and i am doing the validations on the server side in my Servlet. In this process, i should only allow Excel file with versions earlier than MS Office Excel 2007. How can i check for this condition? Any insight is highly appreciated.


Thanks,
Kiran.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A search for excel file structure found helpful hits such as this one.

It seems likely you will have to grab the first part of the file to a byte[] and locate the indicators of which version it is.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!