In jsp , in scriptlets if we write any java code that will goes to service method of the servlet. but if i write one method in scriptlet which will be placed in to service method of the servlet. that means service is one method , inside of that method one more method right?
how it is possible, method inside method(this concept is not there in java).
There are new means to effect what used to be done with scriptlets and scriptlet expressions: namely the JSTL (along with other custom actions) and the EL, in addition to proper structuring of the application such that complicated processing takes place elsewhere in the application than the JSP pages.