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 |
What is the type of method for sending request from http server?
What do you mean by request dispatcher in servlet?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.
Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.
How do you create a cookie using servlet?
How to get the IP address of client in servlet?
What is servlet tunnelling?
What is a deployment descriptor?
How to get the server information in a servlet?
Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?
Which java framework is most popular?