I have an application that do motly excel parsing. It is currently written in jsp+ servlets. Can you guide me how to migrate my application in grails. One of the problems I see is the excel part. DOes grails have API in Excel files processing. Getting the number of sheets for example, using ajax to prompt the user the available sheet names. Something like that. I hope you can give me at least an overview or a step by step guide. Thanks.
Vikrant Pandit
Ranch Hand
Joined: Mar 27, 2006
Posts: 245
posted
0
cj,
Why do you want to migrate ? Grails is a domain model centric framework. From your description it does not look like your application has much of a domain model. In case you just want to dabble in the technology, see getting started guide on groovy site or you can follow "Mastering Grails" series on IBM developerworks site
Groovy is build on Java, and can use existing Java libraries. So if you currently have servlets and JSPs that use a Java API to process Excell documents, then you can do the same with Groovy. Look in the Groovy documentation on how to access Java classes. (Grails is basically a web framework for Groovy.)
I'd just like to back up Vyas' answer. If you have an API in Java, you can very easily use it from Groovy too. And remember that almost all Java code is valid Groovy.
Unless things have changed recently, Groovy is missing:
1. support for anonymous or inner classes
2. the do...while loop
3. support for multiple variables in the standard Java for loop.
4. character literals
Character literals should work as string literals in most cases, since Groovy will coerce the string to a char. It wouldn't surprise me if there are some cases where that coercion doesn't occur.