Is it a good idea to have a JSP page call my java classes directly or is it better to do an http post to my web service? what is the difference in terms of scalability and security?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JSP has its own responsibility, view generation. Unless required, it doesn’t make sense to embed any java code inside JSP. Invoked Servlet/Other framework controller to do business logic.
If the calls are with-in same web application, let us say from JSP1 to JSP2 (or) JSP1 to Servlet2, webservices calls doesn’t make sense. They will be heavy.