Reputation: 11
I want to create login form in CQ5 using normal JSP & AJAX request with database. Can any one tell me the steps how to use normal JSP and AJAX in CQ5?
Upvotes: 1
Views: 2274
Reputation: 787
At the server-side, an AJAX handler can be implemented the same way as an HTML handler, in CQ5. Create your CQ template with a standard backing component. In your component, code your JSP as your normally would, following CQ best practices such as including "/libs/foundation/global.jsp" (or your overridden version of this). You'll have access to all normal JSP objects such as request and response. global.jsp also includes JSTL, so you've got access to standard taglibs.
As for connecting to a database, see my other answer, External Database with Adobe CQ5.
Upvotes: 1