If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?
Answers were Sorted based on User's Feedback
Answer / prs01
It will give compilation error. In order to define a method
in JSP, it should be defined in the JSP declarations <%!..%
>, and it can be called in the JSP expression.
On translation, the method will be added outside all
methods in the servlet class.
| Is This Answer Correct ? | 35 Yes | 1 No |
Answer / vamsi krishna.i
The code that writes in JSP Scriptlets itself excutes in
service method.We can not create a method with in the
Method.So We cont define a method in <%...%>.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / karthikeyan
the question is the scriptlet code. this scriptlets are
embedded into servlet's service method
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / karthik
After translation of jsp code into servlet the scriplets
(<%...%> contents will be executed via the service methods.
suppose if we define the new method inside the scriplte tag
the container will raise the compilation error.
| Is This Answer Correct ? | 1 Yes | 0 No |
How are the elements of a cardlayout organized?
How do u supress the parameters from the displaying in the url?
Difference between loadclass and class.forname?
Which javutil classes and interfaces support event handling?
What is ioc concept?
what is domain,give me some brief information about that?
a US company has filed my H1B visa ,, and i got selected in random number process.I wanna ask Could they ask regarding my languages(java,c++) or there will b just general questions?? And wat kind of questions will they ask in embassy interview??
what is the diffrence between banking and insurance domain?
when we applied start()method on a thread ,how does it know that to execute run()method on that object?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Name the class that is used to bind the server object with RMI Registry?
What is mdb and what is the special feature of that?