What is the first statement in jsp page.
Answers were Sorted based on User's Feedback
Answer / sandeep m
First statement in jsp can be anything such as a scriptlet
(<%.......%>), expression <%= .......%>), declaration
(<! ........>) or template text or java script.
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / kalyan
<%@ page ......%> --->it is import statement used in jsp.
<%! declaration (intilization) %>
<% Script let code %> ---->it copied into same java
code we enter into the scriptlet code ,it cant change th
code.
<%= Expression code %> ----->it uses a expression code
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / amutha
<%@ page language="java"------- %>
or
Any valid html tags or scriptlet
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / paku
(<%.......%>), expression <%= .......%>), declaration
(<! ........>) or template text or java script.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srikanth tummala
in any or any type of program in java the first statement
should be "package".
| Is This Answer Correct ? | 1 Yes | 12 No |
How can I share objects across different sessions?
How do servlets work?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is the directory structure of web application?
Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?
Explain the difference between generic servlet and http servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
What is with the javax.servlet package naming?
What are different Authentication options available in Servlets.
What do you mean by session tracking?
What is difference between server and servlet?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?