Skip to main content

Directive Tags

Directive include/Static include tag
Standard syn
  1. <%@include file="..."%>
Xml syn
  1. <jsp:directive.include file="...">
-->This tag is given to include content/code of given destination file or component to the JES class code of source jsp page
-->Here there is no separate execution for B.jsp ,but it's code will be included to the JES class code of source page A.jsp

A.jsp
  1. <b>from A.jsp(start)</b>
  2. <%@include file="B.jsp"%>
  3. <b>end of jsp</b>
B.jsp
  1. <b>from B.jsp</b>
  2. <%=new java.util.Date()%>
  3. <br>end
JspApp6-DirectiveInclude
|-->webContent
      |-->A.jsp
      |-->B.jsp

Comments

Popular posts from this blog

Project Architecture's

1.) Functional flow/ Architecture a.) Only for 6+/7+years b.) Explain the flow of process/business 2.) Technical Flow/Architecture a.) Upto 5+ years b.) Explain technologies /components that are involved in the project Servlet & JSP Project Architecture:- 1.)What is need of Business Deligate to convert VO class object to DTO class object ? a.) If Business Deligate is not there servlet component directly prepares DTO class object by receiving and translating form data and passes to service class, if service class excepts certain input in other format like numeric employee number as string employee number then we need to modify servlet component code i.e For the changes that happened in business tier service component we have to modify servlet component of presentation tier b.) If Business Deligate is taken then it gets original form data as VO class object having string inputs and converts VO class object to DTO class object to pass to service class c.) If service class excepts ...

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 -->Jsp comments are not visible in any phase...

Security

Security:- a.)Network security (Network admins will take of this by using firewalls) b.)Web application security (Programmers should take care of it) (1)Authentication (2)Authorization (3)Data integrity (4)Data privacy (1)Authentication:- -->Checking the identity of a user is called Authentication. It can be done by using username, passwords, thumbs, impressions, iris, face recognition and etc... (2)Authorization:- -->Checking the access permissions of a user to use various services that are there in the project comes under authorization E.g: To get into banking application every one should be authenticated, but to use loan module the user must be manager role user (3)Data Integrity:- -->Making sure that, the data sent over the network can't be tampered(modification( by using encryption techniques is called Data integrity (4)Data Privacy/Data Confidentiality:- -->Making sure that sensitive data like username, passwords are not visible and accessible to others users whil...