Java syntax fixes.
Changes in export call invocation.

Seems like the first call to action=export does not bring us to the
required page. Therefore, a dummy call to action=home should be
performed first. After that the export page can be retrieved.