This really depends on what you mean by 'calling directly' if you put a jsp file under the /apps directory. You are putting a file there. You can access that file directly as a file. If you are looking at accessing the functionality that the jsp provides, the servlet, you need to point to something that says
1. compile that jsp over there that the meta data is aware of into a servlet 2. pass the arguments from the called object into that servlet That's the whole basis of the sling design with the separation of logic and content that represents that logic. If you feel really compelled to do something where you want to put a jsp and then be able to call that as servlet from the location you put it, in my understanding, that would be a custom implementation where you would need to create your own extension or selector so that when you requested the jsp file it would be handled in the manner that you want. -Jason ________________________________________ From: Júnior <[email protected]> Sent: Tuesday, August 9, 2016 9:10 AM To: [email protected] Subject: Call JSP Directly on Apache Sling Hi, Is there any way to call a JSP directly on Apache Sling? I'd like to call a JSP that is deployed on Apache Sling. Any tips are welcome. Thanks -- Francisco Ribeiro *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
