As jsp is translated in servlet, can anyone tell me where the declaration part of jsp and scriplet part of jsp goes in servlet after its translation in servlet
Bear Bibeault wrote:Bear in mind that putting scriptlets and declaration into a JSP is a bad practice that has been discredited for almost ten years now. You should be concentrating your JSP learning on modern techniques, not outdated poor practices.
but i didn't get you properly, if we didn't write a scriplet in jsp so where we write a java code in jsp, can please explain me...
Perhaps this article can help.
Amit Ghorpade wrote:IDEs like Netbeans allow you to see the generated servlet, but there is no much point looking at the generated code, a better alternative is look at the JSP you are writing and forget how its processed.
I know that, but uou have to know whats happening in back end, I face this question in interview thats why i am asking...