You may go through some basic JSP tutorial (
Sun tutorial) to know basics of JSP. For Sybase I think
this guide (with Transact-SQL) would help you learn how to use them. But you may try to re-factor the code to eliminate DB access/any other business logic inside JSPs moving forward if possible.