Converting the jsp to java code is pretty simple as the sample codes from SAP do not use any jsp tags. Refer to the attached file for your reference.
An FYI..As far as I am aware of SAP does not support thick client applications, at least that was the case till BI 4.0. So you would need to deal with any issues which arises in your thick client application.