JSP Comments
Comments in JSP:-
-->Compiler /Interpreter doesn't take commented code for compilation /Interpretation, so the commented code doesn't participate in execution
JSP supports 3 types of comments:-
a.)HTML comments /Template text comments/ Output comments
- Syn:- <!---text--->
-->Recognized by html interpreter of browser
b.)JSP comments /Hidden comments
- Syn:- <%--text--%>
-->JSP page compiler recognize these comments
c.)Java comments /Scripting comments
- Syn:-
- //-->For single line
- /*--
- -----*/-->For multiple line
-->Java compiler(java) recognize these comments
-->In Eclipse IDE JES class for first.jsp comes in our(workspace)folder/.metadata/.plugins/.org eclipse
Comments
(1)JSP comment<%--%>
(2)Java comment(// or /*--*/)
(3)HTML comments(<!--->
JES Source Code
(1)No
(2)Yes
(3)Yes
In JES compiled code
(1)No
(2)No
(3)Yes
In the code going to browser
(1)No
(2)No
(3)Yes
Output
(1)No
(2)No
(3)No
(1)JSP comment<%--%>
(2)Java comment(// or /*--*/)
(3)HTML comments(<!--->
JES Source Code
(1)No
(2)Yes
(3)Yes
In JES compiled code
(1)No
(2)No
(3)Yes
In the code going to browser
(1)No
(2)No
(3)Yes
Output
(1)No
(2)No
(3)No
-->Jsp comments are not visible in any phase at jsp execution so there are called hidden component
-->Html comments will not be recognised in the server they go to browser along with the response, so there are called output comments
-->We can use page directive tag to import the packages in our jsp component
- <%@page import="java.util.*, java.net.*"%>
-->In Eclipse IDE we can use Ctrl+Shift+c to put appropriate comments in appropriate lines
tipobet
ReplyDeletebetmatik
poker siteleri
kralbet
betpark
slot siteleri
kibris bahis siteleri
bonus veren siteler
mobil ödeme bahis
AV0UCY
شركة تنظيف افران بالمدينة المنورة
ReplyDeletem2Y2iQHpkk
شركة تنظيف مجالس بجازان
ReplyDeleteTwBDaW69aXm
شركة تنظيف كنب بجازان
ReplyDeleteExniTBm
شركة تنظيف بجده
ReplyDeleteDv3FnHxE3Z83AWA