S No

Question

Option 1

Which of the following Java EE containers manages the execution of JSP page and servlet JMT1001 components for Java EE applications? m Which of the following Java EE containers manages the execution of enterprise beans for JMT1002 Java EE applications? m Which of the following is a collection of HTML pages and other media files that contains all the content that is visible to the user on a given web JMT1003 server? m Which of the following is a canonical name that JMT1004 locates a specific resource on the Internet? m

1, EJB container m

1, EJB container m

1, Web application m

1, Web application m

Which of the following is referred to as a stateless protocol and supports only one request per JMT1005 connection? m 1, Web application m You have to design a web application for a car manufacturing company. The processing of the client request is to be done as a separate OS shell on the server. Which of following should you JMT1006 use for the server-side programming? m 1, CGI m You have to design a web application for a car manufacturing company. The business logic of the web application should be written in the Java technology code and the processing of the client request is to be done as a thread in the web JMT1007 container. Which of 1, CGI m You have to design a web application for a car manufacturing company. The presentation logic of the web application should be an HTML page containing Java technology code in it. Which of following should you use to design the web pages JMT1008 containing the pres 1, CGI m You have to design a web application for a car manufacturing company. You decided to use the Model 2 architecture to design the web application. Which of the following will act as the controller that verifies form data and updates the JMT1009 model with the form 1, Servlet m You have to design a web application for a car manufacturing company. You decided to use the Model 2 architecture to design the web application. Which of the following will act as the view that renders the HTML response by JMT1010 retrieving data from the model n 1, Servlet m

In the J2EE platform the different components are allocated different responsibilities. These responsibilities include carrying out specific actions or viewing static content in a well formatted way without using custom tags. Of all JMT1011 the components availab 1,JSP m You need to develop an application for a client. The application should have the following features: 1. Should be able to run on any web server. 2. Should be accessible from any web browser. 3. Should allow a degree of separation between JMT1012 the static and dy Assertion: JSP supports features of servlets, such as platform independence, creation of databasedriven Web applications, and server side programming capabilities, etc. Reason: A JSP page after compilation generates a servlet JMT1013 Which of the following optio

1,EJB m

1,BOTH the assertion and reason are TRUE statements and the reason is the correct explanation of the assertion. M

You are using the MVC paradigm to divide the application into three distinct roles that have well defined responsibilities towards each other. One of the elements contains the parts of the application that can be rendered on any device JMT1014 and can be perceive 1,Model element m In the J2EE platform, the model, view and controller responsibilities are allotted to the different elements. One of the elements is usually a servlet. The servlet delegates the helper classes to carry out specific actions, rather than JMT1015 addressing them int 1,Controller m Smithline is a large chain of supermarket. The management of Smithline identifies that they had exceeded their budget. The management wants to make a fresh short term budget, which would cover the value exceeded. Identify who will take JMT1016 the responsibility 1, Strategic management m M&N Garments is planning to modify the process of selling their garments online. In this regard, they need to design a blueprint of the Web application. Identify who will get the responsibility JMT1017 of designing the Web application? m 1, Chief Executive Officer m

James owns a restaurant with five waiters, three chefs, and two cleaners. The waiters collect orders and conveys the same to the chefs. Then the chefs prepare the food and the waiters serve the food. Finally the waiter collects the bill. The JMT1018 cleaners ensu 1, Adaptive organizations m Allianz Corporation started a new insurance scheme which would provide accidental coverage to the people insured under this scheme. Allianz 1, Manufacturing-based JMT1019 is a ____________ . m organization m Nicole manages a social service centre. Her __________ provides education and food to the JMT1020 poor children free of cost. m 1, Adaptive organization m Which of the following prevent unauthorized modification, destruction, or disclosure of the data JMT1021 in an enterprise? m 1, Data warehouse m Which of the following provides an integrated solution to plan, schedule, and control pre-sales JMT1022 and post-sales activities in an organization? m Which of the following business process plans, manages, and review performance of the JMT1023 employees? m

1, Enterprise Resource Planning m

1, Finance and Accounting m

In which stage of Business Process Management, the business process experts review the problem areas and evaluate the end-to-end processes of JMT1024 the organization? m 1, Monitoring m Which of the following supports what-if analysis? 1, Supply Chain Management JMT1025 m System m Omeg, a mobile manufacturing organization, is planning to export their mobile phones in Asian market. To export their mobile phones, the senior management at Omeg needs to know about the Asian market. Which of the following systems can 1, Transaction Processing JMT1026 be used to fulfill Systems m GGN Construction wants to keep track of the valuation of their property and its depreciation. Which of the following business process would JMT1027 help the management to perform this activity? m

1, Sales and marketing m

JK Public School always receives complaints that their admission process is very complex and time consuming. In this process, initailly the student fills the form and then they attend the interview. After interview they submit the marksheets. Then 1, Continuous process JMT1028 the stu improvement m

Sundew's manufacturing unit is having problem in production as suppliers failed to sent the raw materials. They immediately need raw materials. Which support business process will help Sundew 1, Purchase and procurement JMT1029 in this situation? m m Smithline, a large chain of supermarket has automated systems for each of their divisions. However, the management is unable to retrieve data from multiple systems simultaneously. Identify which of the following technology JMT1030 components for providing data ca

1, Enterprise resource planning m

Omeg is launching a mobile phone. The management of Omeg is sure that the customers would like the design and style of the phone. In addition, a large number of salespersons were recruited to explain the features of the phone to JMT1031 the customers. Which key a 1, Intangible m A salesperson delivers the products to his customer. During delivery of the product, which two databases need to be updated JMT1032 simultaneously? m

1, Invoice and Inventory database m

Ace Beauty Products is planning to launch a new body lotion in the market. Therefore, they want to identify the likes and dislikes of the customers. Identify the factor of segmentation that is being JMT1033 focused in the preceding situation? m 1, Profile m Jane Cosmetics launched a perfume in the market because the customers have been demanding that type of perfume for quite long. Identify which of the following is used to develop JMT1034 huge demand for the product in the market? m

1, Push marketing m

When a sale transaction happens, a number of documents are exchanged between the buyer 1, I) Quotation and seller. Identify the correct sequence in which II) Purchase Order JMT1035 the documents are exchanged? m III) Invoice m Mandy needs to design a web application for his organization. He decides to use the servlet in the web application to respond to an HTTP request 1, By extending the servlet from the client. How can he create a servlet for class with the HttpServlet JMT1036 the web application? m class. m Mandy needs to design a web application for his organization. He decides to use the servlet in the web application to respond to an HTTP request from the client. He has to make sure that the 1, response sent from the server to the browser is response.setContentType("text JMT1037 intended for a s /html"); m

He has to make sure that the 1. He action='create_form. He decides to use the servlet in the web application to respond to an HTTP request from the client. <form create_form.servlet.3 m . HEAD m Which of the following HTTP methods request for the server to invoke an application-layer loopJMT1043 back of the request message? m 1. import java. 1. HEAD m Steve has developed an application. He decides to use the servlet in the web application to respond to an HTTP request from the client. import javax. The servlet needs to validate the user name and password after these values are submitted to the servlet.do' JMT1039 needs to make sure method='POST'> m Mandy needs to design a web application for his organization. He first creates a form. He first creates a form.*.setContentType("text JMT1038 subsequent request w /html"). The servlet has two fields on the home page.do.*.do' JMT1040 needs to make sure method='POST'> m Which of the following HTTP methods is identical to the GET except that it does not return a JMT1041 message-body. HEAD m Which of the following HTTP methods request for the server to store the entity enclosed in the body JMT1045 of the HTTP message? m 1.HttpServletResponse JMT1046 Steve is not able interface m Consider the following code snippet: import javax. browser should not reuse the response for a response. public class UserCount extends HttpServlet { static int c.io.util. This home page accepts the username and password. 1.servlet. HEAD m Which of the following HTTP methods request for the communication options available on the JMT1042 request/response chain? m 1.Mandy needs to design a web application for his organization. He decides to use the servlet in the web application to respond to an HTTP request from the client.*. to accept input from the user. m Mandy needs to design a web application for his organization. only the headers? m 1. 1. to accept input from the user.http. He action='create_form. HEAD m Which of the following HTTP methods is reserved for use with a proxy that can switch to being a JMT1044 tunnel? m 1.do. public void init(ServletConfig cn) throws JMT1047 Servl 1. <form create_form. import java.*.

After the web application has been created. you run the add_league servlet using the following address: 1. m You. Which JMT1049 method from the RequestDispatche Consider the following code snippet: Code for UserInterface: <html> <head></head> <body> <form method="post" action="/Servlet/validate"> Login:<input type="text" name="t1"> Password:<input type="text" name="t2"> JMT1050 <input ty 1. You decided to use servlets to create the web application. After you have created the servlet.Assertion: A change made to any code requires recompilation of the servlet. By overriding the service method in the servlet class. <servlet-mapping> <servletname>AddLeagueForm</servl et-name> <urlhttp://localhost:8080/soccer/admin/add_league. you now need to clean up the resources that your 1. The control needs to be transferred from one component to another component. m 1. Reason: Servlets tie up files (an HTML file for the static content and a Java file for the dynamic content) to independently handle the static JMT1048 presentation logic and the dynamic You are working on an application that has multiple components.Welcome to the web site.vi pattern>/localhost:8080/add_le ew ague. being a software developer. While you are creating the servlet. needs to develop a web application for your organization.view</url-pattern> </servlet-mapping> JMT1053 What should the corresponding cod m . You decided to use servlets to create the web application.request m 1. you feel the need to write the code for the JMT1052 initialization of the ser You have created a soccer league web application using servlets. m 1. The invoking component should not be able to produce any output of its own. being a software developer. needs to develop a web application for your organization.BOTH the assertion and reason are TRUE statements and the reason IS the correct explanation of the assertion. By overriding the service JMT1051 servlet has initiali method in the servlet class. m You.

Autumn. et</servlet-class> AddEmpFormServlet. value>Spring. The c m . After the servlet instance is created. The application requires that application-specific data is shared across independent web components. <servletYou decided to use servlets to create the web class>view. being a software developer.java to add the details of the </servlet> JMT1060 new employees and complied it. Winter. Servlet m 1.view. Calling the service method JMT1055 cycle? m m The life cycle of the servlet involves loading the servlet class. You created a form. Servlet m You are creating a web application using servlets. <servlet> <servletname>AddLeagueForm</servl et-name> <servletclass>sl314. Summer. Which object can be used to JMT1058 implement this? m 1.Autumn. You need to ensure that the shared application data must be in-memory before any HTTP requests are executed on the web application. <servlet> <servletname>AddEmpForm</servletYou. creating the servlet instance and then initializing the servlet component.AddEmpFormServl application. This configuration Winter</param-value> object is passed to the servlet instance by way of </init-param> JMT1054 the init method.AddLeagueF ormServlet</servlet-class> <param-name>seasonsYou have created the AddLeagueForm servlet list</param-name> that includes a single initialization parameter <paramcalled seasons-list with the value Spring. the web container creates a unique object that contains any initialization parameters that were JMT1057 specified in th 1. What will JMT1056 the next step of the servlet life cycle? m 1. which is s </servlet> m The life cycle of the servlet involves loading the servlet class and then creating the servlet instance. Which object can be used to perform this JMT1059 initialization? m 1. What will the third step of the servlet life 1.Summer. Calling the service method m The life cycle of the servlet involves loading the servlet class and then creating the servlet instance. needs to name> develop a web application for your organization.1. Servlet m You are creating a web application using servlets.

<name>FrontController<name > <servlet-class> org. 1. The ActionServlet INF/struts-config. The ActionServlet is given the name FrontController.xml</paramuses an initialization value> parameter. init m 1. m 1. to specify the path to the </init-param> JMT1066 Struts configuration file.struts.action </servlet-class> m While developing a web application using Struts.apache. init(ServletConfig) m Which of the following method is used to retrieve JMT1063 the attributes from the ServletContext object? m 1.Which of the following methods is used to store the context-scoped attributes in the JMT1061 ServletContext object? m 1. <servlet-mapping> you configured the Struts ActionServlet in the <servlet-name>Action</servletweb. To define the FrontController JMT1067 servlet.xml deployment descriptor. name> you configured Struts ActionServlet in the <param-value>/WEBweb. You are also <url-pattern>*. the following code i While developing a web application using Struts. The ActionServlet name> is given the name FrontController.do</url-pattern> required to configure the URL pattern that maps </servlet-mapping> JMT1068 to the Action m . <init-param> <param-name>config</paramWhile developing a web application using Struts. init(ServletConfig) m Which of the following is the run time JMT1064 representation of the web application? m 1. init(ServletConfig) m Which of the following method is used to retrieve JMT1062 the servlet's initialization parameters? m 1. you are required to configure the Struts ActionServlet in the web. called config.xml deployment descriptor. For this.xml deployment descriptor. init m Which of the following methods is issued a unique request and response object by the web container for each HTTP request mapped to a given JMT1065 servlet? m 1.

xml. <action-mappings> <action path="/add_dvd" type="com. the followi </action-mappings> m James is developing a web application using Struts framework. For this </action> JMT1070 purpose.view"/> declare two forward entries.controller. Which of the following files is used to configure the Struts JMT1071 infrastructure controller? m 1.view"/> you are required to configure the Struts <forward name="error" configuration file. he needs to configure all of the application-specific classes in the strutsconfig.view declare two forward entries.dvd. struts-config. Which of the following files is used to configure JMT1072 the action mappings? m 1. he needs to configure all of the application-specific classes in a file. You have to path="/add_dvd. VDAction"> you are required to configure the Struts <forward name="error" configuration file.xml m James is developing a web application using Struts framework. Which of the following tag in this file specifies one action class and has two primary JMT1074 att 1.AddD While developing a web application using Struts. For this. Which of the following is the JMT1073 primary subtag to the root tag of this file? m 1. success and error "/> within the /admin/add_league action. For this purpose. <action-mappings> <action path="/admin/add_league" type="sl314. web. he needs to configure all of the application-specific classes in the strutsconfig. success and error </action> within the /add_dvd action. You have to path="/admin/add_league. For this. path="/admin/success. action-mappings m . web.xml. action-mappings m James is developing a web application using Struts framework.1. struts-config. For this. he needs to configure the Struts ActionServlet in a file.controller.xml m James is developing a web application using Struts framework. For this.AddLeag ueAction"> <forward name="success" While developing a web application using Struts.xml file.xml file. the </action-mappings> JMT1069 following code i m 1.

you are required to extend the Struts Action base and implement the execute method. For this. Which of the following object is the return value of the execute JMT1078 method? 1. ActionMapping m While developing a web application using Struts. For this. you are required to extend the Struts Action base and implement the execute method. /WEB-INF/lib/ m 1. he needs to configure all of the application-specific classes in the strutsconfig.James is developing a web application using Struts framework. you need to create a Struts controller. you are required to extend the Struts Action base and implement the execute method. action m 1.xml file.xml file? m 1. Which of the following arguments of execute method is a JMT1076 representation o 1. Which of the following is the third argument of the execute method and i Which of the following tag is NOT a part of the web. Which of the following is the second argument of the execute JMT1079 method and 1. For this. action-mappings m While developing a web application using Struts. you need to create a Struts controller. Which of the following is the first argument of the execute JMT1077 method and i 1. Which of the following tag in this file configures the set of view mappings between JMT1075 the sy 1. For this. you need to create a Struts controller. ActionMapping m 1. you are required to extend the Struts Action base and implement the execute method. init-param m . you need to create a Struts controller. For this. ActionMapping m While developing a web application using Struts. you are required to extend the Struts Action base and implement the execute method. you need to create a Struts controller. ActionMapping m While developing a web application using Struts. servlet m 1. For this. Boundary m Which of the following tag is used to specify the JMT1085 initialization parameters in the web.xml file? m Which of the following tag is NOT a part of the struts-config file? m Which of the following directory is used to install struts library file? m Which of the following is NOT a part of the Analysis Model components? m JMT1080 JMT1081 JMT1082 JMT1083 JMT1084 1. ActionMapping m While developing a web application using Struts.

Which of the following method of the filter is passed a JMT1088 FilterConfig object and 1. You have to use filters so that the web container intercepts the incoming requests before it is forwarded to the servlet. Mark does not want the user to enter the username every time he logs into the website. You have to use filters so that the web container intercepts the incoming requests before it is forwarded to the servlet. Which of the following methods is called once when the JMT1087 container instantiates a 1. FilterConfig m You are developing a web application using Servlets. getCookie m Consider the code for filter mapping in web application deployment descriptor file. init m Mark is developing a web based application. Which of the following interface or class do you need to JMT1086 implement or extend whi 1. Which of the following method is equivalent of a servlet's JMT1090 service method and is 1. init m You are developing a web application using Servlets. You have to use filters so that the web container intercepts the incoming requests before it is forwarded to the servlet. You have to use filters so that the web container intercepts the incoming requests before it is forwarded to the servlet. The home page is a servlet that accepts the user name and password. Which of the following method is called for every request JMT1089 intercepted by the fil 1. init m You are developing a web application using Servlets. You have to use filters so that the web container intercepts the incoming requests before it is forwarded to the servlet.First>Second>Third>Fourth m . <servlet-mapping> <servlet-name>MyController</servlet-name> <url-pattern>*.You are developing a web application using Servlets. He wants to find a way to store the value JMT1091 on the user's 1.do</url-pattern> </servlet-mapping> 1)<filter-mapping> <filter-name>First</filter-name> JMT1092 <servl 1. init m You are developing a web application using Servlets.

This web application needs to be integrated with the database.String login=request. JDBC API m You are creating a web application using Servlets.getParameter("lo gin").sql m . For this. JDBC API m You are creating a web application using Servlets.equals("tim") { return Stem text : Consider the following code regarding mapping.setAttribute(cnum."customern umber").equals("David") errors. java. Which of the following package contains the DataSource interface to be included JMT1098 in your ap 1.<filter-mapping> <filter-name>LoginFilter</filtername> <dispatcher>ERROR</dispatch er> </filter-mapping> m 1. JMT1094 if(login. accessing of session attributes in a session } management program. mapping. { return String login=request. you want to create a resource that contains the information needed to connect to an underlying database (typically the JMT1096 database URL 1.Forward("error"). This web application needs to be integrated with the database. For this.ServletContext c=getServletContext(). This web application needs to be integrated with the database. m You are creating a web application using Servlets.equals }m Stem text : You have deployed two servlets named servlet1 and servlet2 in your Web server.getParameterValue("login"). you are required to create a datasource. Which of the following is the JMT1095 correct method for doing it? m 1. if(login. c. You want to create an attribute called "customernumber" and assign the value of a variable cnum to it. You decide to keep only a few connections that are JMT1097 shared among data access 1.Forward("success").A code for filter mapping has to be written for a filter called Login Filter for components in such a manner that it should be applied to component whenever an error occurs . you are required to manage the database communication. But this program has few if(login. Predict the correct code for the program. For this. Predict the code for filter mapping to perform the JMT1093 required task from the follo 1.

JMT1103 3) import the javax. JDBC API m Consider the following statements regarding DAO Pattern Advantages: Statement A: DAO pattern design enhances the flexibility in front end technologies. getConnection m You are creating a web application using Servlets.lookup ("java:comp/env/jdbc/myDB"). you are required to create a datasource. you are required to create a datasource.Statement A.sq 1. This datasource will be used by the components to retrieve a connection. m What would be code for locating a Datasource named myDB thru JNDI Context named JMT1104 mycontext? m .1>2>3>4 m 1. This web application needs to be integrated with the database.You are creating a web application using Servlets. What would be the code for this? m </resource-ref m What is the correct sequence when a component needs a DataBase connection? 1) The Component uses JDBC API to communicate with the DataBase. JMT1101 Statement C: 1. After the JMT1100 connect 1.Context mycontext= new Context(). For this.sql. Which of JMT1099 the foll 1.B.DataSource</re s-type> A Datasource reference for a datasource called <res-auth>Container</respassworddb has to be defined in a deployment auth> JMT1102 descriptor file. This web application needs to be integrated with the database. DataSource ds= (DataSource)mycontext. m 1.<resorurce-ref> <res-refname>jdbc/passworddb</resref-name> <restype>javax. Statement B: DAO pattern design enhances the flexibility in back end technologies. 2) The Component performs a JNDI Lookup on the naming service to retrieve the DataSource. For this. This datasource will be used by the components to retrieve a connection.C are true and Statement D is False.

eith You are creating a JSP page. application m Which of the following attributes of the page directive defines the MIME type of the output JMT1109 stream? m You are creating a JSP page. Which of the following scripting element holds a Java language JMT1113 expression that is evaluated duri 1. application m Which of the following JSP page implicit variable represents the Throwable object that was thrown JMT1107 by some other JSP page? m 1.DataSource</re </description> s-type> <res-refname>jdbc/myDB<resref-name> <res-auth>container</res<res-type>java. For this.<resource-ref> <description> Stem text : Consider the following lines of code in </description> web. For this.1.DataSource</res-type> auth> JMT1105 <res-auth>container<res </resource-ref> m Which of the following JSP page implicit variable represents the JspWriter object associated with JMT1106 the output stream of the response? m 1. Directive Tag m You are creating a JSP page. For this. For this. buffer m 1. you need to use the JSP scripting elements that are processed by the JSP engine during the translation of the JSP page.sql. Which of the following scripting element lets the JSP page JMT1112 developer include arbitrary Java tech 1. Directive Tag m 1.xml file regarding defining of DataSource <res-refreference: name>jdbc/myDB</res-refname> <resource-ref> <res<description> type>javax. you need to use the JSP scripting elements that are processed by the JSP engine during the translation of the JSP page. application m Which of the following JSP page implicit variable represents the ServletConfig object associated JMT1108 with the servlet for this JSP page? m 1. Which of the following scripting element provides information JMT1110 that affects the overall translati You are creating a JSP page. Directive Tag m 1. Which of the following scripting element lets you include JMT1111 members in the JSP servlet class. you need to use the JSP scripting elements that are processed by the JSP engine during the translation of the JSP page.sql. you need to use the JSP scripting elements that are processed by the JSP engine during the translation of the JSP page. Directive Tag m .

m 1. B. application m Stem text : Consider the usage of JSTL forEach tag in the following code snippet.B.out.You are creating a JSP page. 1. and C are JMT1117 C) The Result of the true. The JSTL library contains several tags that reduce the scripting necessary in a JSP page.Statement A.Statement A. set m Which of the following JSP page implicit variable represents the ServletContext object for the web JMT1115 application? m 1. C are true JMT1118 D) Declaration tag can include attributes & metho and D is False. m Stem text : Consider the following statements: A) Declaration tag can override jspInit() Method B) Declaration tag can not override jspDestroy() Method C) Declaration tag can override _jspService() Method 1. Which of the following tag of the JSTL library is used to JMT1114 evaluate an e 1.println. You decide to use the JSTL core library to create the JSP page.<font color='green'> <ul> <c:forEach var=errmsg items="${errorMsgs}"> <li>$errmsg</li> </c:forEach> </ul> </font> m . <font color='green'> <ul> <c:foreach flag=errmsg items="${errorMsgs}"> <li>$errmsg</li> </c:forEach> </ul> </font> The code snippet contains some errors Predict JMT1116 the corre Stem text : Consider following statements for Expression Tag in JSP. A) An Expression tag can take any java language expression that can be used an argument to System. B) Expression tag is evaluated during HTTP Response.

Predict the n"> Correct Code.LoginBea JSP Bean that contains few errors.LoginBean> login.<html> <% exception.<jsp-config> <jsp-property-group> <urlpattern>/scriptting_off/*</urlpattern> <scriptinginvalid>true</scripting-invalid> </jsp-property-group> <jsp-property-group> <url-pattern>/EL_off/*</urlWhile configuring the JSP Environment you want pattern> to turn off scripting as well as ignore EL in jsp file.setAddress(request.class" codebase="/applets" width="400" height = "300"> </jsp:plugin> m 1.getPa <%! rameter("address")).getPara <jsp:usebean identity="login" scope="Session" meter("Loginid")). <el_ignored>true</el_ignored> JMT1120 What would be the code for this? m </jsp-property-group Stem text : Which of the following lines of code can be used for adding a pre-defined applet named chatApp to a JSP page? The chatApp class file is present in the /applets JMT1121 directory.<jsp:useBean id="login" scope="Session" Stem text : Consider the following code snippet of class="s1314. <% login. login.getMessage() %> JMT1122 green color? m </body></html> m . m 1. class=s1314.setAddre </jsp:useBean> m 1.beans.getMessage() %> <body text = "green"> <%@ page isErrorPage="true"> The following error has been Which of the following lines of code represents a generated: <%= JSP error page that displays the error message in exception. %> JMT1119 login.setValue(request.1.beans.<jsp:plugin type="applet" code="chatApp.getParameter("Loginid")).setValue(request.

println("Passwo Password message once.getYear() %>/<%=now.getDay()%></H1> </body></html> 1. displayed ten times and JMT1125 out. String password=(request.i++) 1. %> <H1><%= now.getParameter("Password")).Date now=new java. It will display the date as JMT1124 What will be the output of the abo mm/dd/yy format.println("Login is"+" "+login).getHours() %>:< %=now.Date now=new java.It will display the date as mm:dd:yy.Login message will be out.Date().getSeconds()5%></H1> </body> </html> JMT1123 What will b 1. He wants to check the input fields to ensure data integrity before the Action class is executed. He wants to use the validate method to check for any errors in the form before calling the execute method. HttpServletRequest m . execute m John is developing a web application using Struts.Stem text : Consider the following code snippet: <%@ page language="java"%> <html> <head></head> <body> <%java. Which of the following methods is used to check JMT1126 the input fields for any error? m 1.util.i<10. %> <H1><%= now. for(int i=0.util.getParameter("Login")). Which of the following object is passed an argument to the validate method and JMT1127 encapsulates the i 1. m Consider the code given below: <%@ page language="java"%> <html> <body> <% String login=(request.util. m Consider the following code snippet: <%@ page language="java"%> <html> <head></head> <body> <%java.getMinutes()%>:< %=now. m John is developing a web application using Struts.Date().util.getMonth() %>/<%=now.

action. If any error occurs. type m Which of the following tags of the Struts html Tag JMT1131 Library defines an HTML form? m 1. Which of the following attribute in the action tag of the Struts configuration file is set to JMT1129 tru 1. form m Which of the following tags of the Struts html Tag JMT1132 Library renders an HTML anchor tag? m 1. He wants to use the validate method to check for any errors in the form before calling the execute method.Action Form. He wants to use the validate method to check for any errors in the form before calling the execute method.import org. Which of the following object is the return JMT1128 value of the validate method? m 1. name m 1. Which JMT1130 of the 1. type m John is developing a web application using Struts. form m Which of the following tags of the Struts html Tag JMT1133 Library renders an image input element? m 1. the ActionServlet dispatches to the form to correct the errors.apache. public class employeeform implements ActionForm { Predict the correct code for declaration of a form //required code JMT1136 bean called employeeform in struts framework? m } m Harry wants to create a form bean in struts framework. form m Which of the following attributes in the action tag of the Struts configuration file specifies the resource that is providing the form for the Action? JMT1134 M 1.struts. He wants to use the validate method to check for any errors in the form before calling the execute method. Which class he should use to create a form bean and which method he should use to perform the validations for the form bean? 1.John is developing a web application using Struts. name m Which of the following attributes in the action tag of the Struts configuration file supplies the name JMT1135 of the form bean used by the Action? m 1. HttpServletRequest m John is developing a web application using Struts.ActionForm Class & JMT1137 m doValidate() method m . He wants to perform certain validation for that form bean.

jsp"> <jsp: param name="param1" value="Login"/> </jsp:forward> m 1.jsp to validate. JMT1139 D) The valida You are establishing interconnection between two JSP pages.It is an authentication technique of authenticating users before allowing them to access protected resources and the server enforces security through the Web browser. You want to forward a request from index.A Web application developed for an educational institution requires insertion of a header file comprising the logo and institution name.html"> m Consider the following statements: A) doValidate() Method is used to perform validation of Form Fields. C) Data Conversion can be performed by ActionForm Class.Statement A.<jsp: forward page="/validate. The names of the two pages are index.jsp and validate. M 1. m Which of the following is correct in reference to JMT1141 basic authentication technique? M Which of the following is correct in reference to JMT1142 digest authentication technique? m 1. m 1.It secures Web applications by maintaining a record of the rights assigned to different types of Web users. B) Struts provides a mechanism to store form data into a javabeans instance.C are true and D is false. m Which of the following is correct in reference to JMT1143 Auditing security technique? m .B.jsp in the same context. As well as you also want to send a JMT1140 parameter name. Identify the correct JSP tag from the options given below to add the logo and institution name to all pages 1. par 1.It is an authentication technique of authenticating users before allowing them to access protected resources.<form method="post" JMT1138 of the Web action="Header.jsp.

It secures Web applications by maintaining a record of the rights assigned to different types of Web users. 1.Step 1 --> Step 2 --> Step 3 JMT1150 Step --> Step 4 --> Step 5 m .<login-config> <auth-method>BASIC</authmethod> <realm-name>Secure Basic Authentication</realm-name> </login-config> m 1. Step 2: Type User in the Role Name text box. m You are creating a secure web application which is deployed on the J2EE application server. You want to specify the authentication technique in which the server authenticates a client by using digital certificates. Step 3: Select the Add button under the Security Role category.It is used in empty tags to direct the JSP engine to skip the body of the tag and Which of the following is correct in refrence to the subsequently invoke the next JMT1145 doAfterBody() method? m doEndTag() method. --> Step 5 --> Step 4 --> Step 6 JMT1149 Step 4: Type Use in the Group Name t m Consider the following steps: Step 1: Open the web.<security-role-ref> <role-name>Admin</rolename> <role-link>James</role-link> </security-role-ref> m Consider the following steps: Step 1: Open the sun-web. Which of the following code JMT1147 snippet will Sam is creating a secure J2EE Web application. Which of the following code snippet JMT1146 will you use to c You are creating a secure web application which is deployed on the J2EE application server. Step 3: Expand the Sun Web Application node in 1. in NetBeans IDE and click the security tab.Step 1 --> Step 3 --> Step 2 the right panel of the sun-web.xml file for the Secure_Form_App application.xml file. He wants to map roles with the list of users created in the J2EE application server.xml file for the Secure_Form_App application.Which of the following is correct in reference to JMT1144 Authorization security technique? m 1. m 1. Which of the following code snippet will Sam use that map JMT1148 the user 'James' with the role 'Admin' ? m 1.<login-config> <auth-method>BASIC</authmethod> <realm-name>Secure Basic Authentication</realm-name> </login-config> m 1. You want to specify the authentication technique which creates a customized logon page for a Web application. Step 2: Select the User node.

JSP m 4. Web site m 3. JSP m 4.Option 2 Option 3 Option 4 Solution 2. URL m 4. Servlet m 3. Web site m 3. Application client container m 3. HTML m 2 . Servlet m 3. Application client container m 4. Applet container m 1 2. JSP page m 3. HTTP m 3 2. HTML m 1 2. JSP page m 3. Servlet m 3. Java technology classes m 4. Web container m 3. HTML m 2 2. Web site m 3. HTML m 3 2. Java technology classes m 4. Applet container m 2 2. URL m 4. Web container m 4. HTML m 1 2. URL m 4. HTTP m 4 2. HTTP m 2 2. JSP m 4.

Component m 1 2. m statement.RMI m 3 2. Architects m 4.JSP m 4.ASP m 3 2. Middle management m 3. but the reason IS NOT a 3.A combination of these elements m 2 2.View element m 3. m 4.Model m 4. Enterprise Engineers m 3 .2.Servlet m 4.BOTH the assertion and reason are TRUE statements. Operational management m 2 2. Senior Management m 3. Both operational and strategic management m 4.The assertion is FALSE hence the reason DOES NOT apply.View m 3. m 1 2.The assertion is TRUE but correct explanation of the the reason is a FALSE assertion.EJB m 3.Controller element m 4.HTML m 3.

Complex organizations m 2 2. Transaction Processing m Systems m 3. Manufacturing and Production m 2 2. Human Resource m 4 2. Business process reengineering m 4. Management Information Systems m 4. Improving m 3.2. Simple organization m 2 2. Network security layers m 3 2. Analyzing m 2. Complex organization m 3. Simple organization m 4. Service-based organization m 3 4. Business Intelligence Systems m 3. Non-profit-based organization m 4. Finance and accounting m 3. Data mart m 3. Manufacturing and production m 4. Continuous performance improvement m 3. Business performance reengineering m 1 . Service-based organization m 3. Simple organizations m 3. Implementing m 2 4. Management Information Systems m 4. Nonadaptive organizations m 4. Sales and Marketing m 4. Customer Relationship Management m 3. Decision Support Systems m 4 2. Supply Chain Management 4. Enterprise Resource Planning Systems m 3. Customer Relationship Management System m 2 2. Human resource m 2 2. Front-end interface design tools m 2.

m 4. Human resource m 3. m 4.setHeader("CacheControl". By extending the servlet class with the HttpServletResponse interface.setHeader("CacheControl". m 4. Supply chain management m 4. I) Invoice II) Purchase order III) Quotation m 3. Transaction processing systems m 3. response. Market segmentation m 2. I) Quotation II) Invoice III) Purchase Order m 4 1 2. Both perishable and intangible m 3 2. Workforce intensive m 4.setHeader("CacheControl".2. IT support m 4. Infrastructure development m 1 2. Customer relationship management m 1 2. By extending the servlet class with the HttpServletRequest interface. Demographics m 3. "no-cache"). m 1 2. Psychographic m 4. Buying decisions m 3 2. "cache"). Perishable m 3. Quotation and Inventory database m 1 2. Pull marketing m 4. I) Invoice II) Quotation III) Purchase Order m 3. m 3. m 3 . Inventory and Order detail database m 4. response. "private"). Target market identification m 3. response. By extending the servlet class with the ListLeagueServlet class. Invoice and Order detail database m 3.

do' action='GET'> m 1 2. CONNECT m 2 2.do' action='GET'> m 2 2. TRACE m 4. response. "no-cache"). <form action='create_form.do' method='GET'> m 3. m 4. TRACE m 4. TRACE m 4. OPTIONS m 3.HttpServlet class m 2 2. CONNECT m 1 2. CONNECT m 3 2. "cache"). <form method='create_form.do' action='POST'> m 4. <form method='create_form. PUT m 4 2. response. m 3.setHeader("CacheControl". OPTIONS m 3.do' method='GET'> m 3. OPTIONS m 3.1 m 3 . response. TRACE m 4. OPTIONS m 3. CONNECT m 4 2. <form method='create_form.4 m 4.do' action='POST'> m 4. <form method='create_form. "private").2 m 3. TRACE m 4.HttpServletRequest interface m 3.setHeader("CacheControl".ServletConfig class m 4. <form action='create_form.setHeader("CacheControl".2. m 2 2. OPTIONS m 3.

m method in the servlet class. but the reason IS NOT a 3. m method in the servlet class.BOTH the assertion and reason are TRUE statements. m 3 2. By overriding the init method 3. By overriding the doGet in the servlet class. <servlet-mapping> <servletname>AddLeagueForm</servl et-name> <urlpattern>/admin/add_league. m 2 2. <servlet-mapping> <servletname>AddLeagueForm</servl et-name> <urlpattern>/localhost/add_league.Invalid Password. m 4.The assertion is TRUE but correct explanation of the the reason is a FALSE assertion.vie w</url-pattern> </servlet-mapping> m 4 . By overriding the doGet in the servlet class.response m 4. m 3. m statement. By overriding the destroy 4.include m 3. m 4. view</url-pattern> </servlet-mapping> m 3. By overriding the init method 3. m method in the servlet class. <servlet-mapping> <servletname>AddLeagueForm</servl et-name> <urlpattern>http/add_league.The code will not compile successfully. m method in the servlet class.view< /url-pattern> </servlet-mapping> m 4.The assertion is FALSE hence the reason DOES NOT apply. m 3 2. m 1 2. By overriding the destroy 4.No such User.forward m 4 2.2.

ServletContext m 4.view. Calling the servlet method m 1 2. <servlet> <servletname>AddEmpForm</servletname> <servlet-class>WEBINF.view. Calling the init method m 3. <servlet> <servletname>AddEmpForm</servletname> <servletclass>AddEmpFormServlet</s ervlet-class> </servlet> m 3. ServletContextListener m 4 4. Calling the init method m 3.3. Calling the destroy method m 4.Summer. <servlet> <servletname>AddEmpForm</servletname> <servletclass>classes. Calling the destroy method m 4. ServletContext m 4.Summer. ServletContextListener m 3 2. ServletContextListener m 2 2.AddEmpFo rmServlet</servlet-class> </servlet> m 4.AddEmpFormServlet </servlet-class> </servlet> m 1 . ServletConfig m 3. ServletContext m 3.AddLeagueF et-name> <servletormServlet</servlet-class> <servletclass>sl314.Autumn. ServletConfig m 2. value>Spring.view. Winter</param-value> Winter</param-value> Winter</param-value> </init-param> </init-param> </servlet> </servlet> </servlet> m m m 3 2.AddLeagueF <init-param> class>sl314. <servlet> name>AddLeagueForm</servl 4. Calling the servlet method m 2 2.Summer.view. <servlet> <servletet-name> <servletname>AddLeagueForm</servl <servletname>AddLeagueForm</servl et-name> class>sl314.view.AddLeagueF ormServlet</servlet-class> <param-name>seasonsormServlet</servlet-class> <param-name>seasonslist</param-name> <init-param> list</param-name> <param<param<paramvalue>Spring.Autumn. ServletConfig m 3.Autumn. <servlet> <servlet2. value>Spring.

<init-param> <param-name>config</paramname> <param-value>strutsconfig. getAttribute m 2. <servletname> name>FrontController</servlet<servlet-class> name> org. <servletname>FrontController</servlet.xml</param-value> </init-param> m 1 4. ContextInitialized m 4. Servlet m 2 4. <servlet-mapping> 3.action.do</url-pattern> </servlet-mapping> m 3 .ActionServlet </servlet-class> <servlet-class> m m 2.action.struts. service m 3. setAttribute m 3. <servletname>FrontController<servletname> <class> org. Servlet m 2 3 2. setAttribute m 3. ContextInitialized m 3 2. service m 2.do</url-pattern> </servlet-mapping> </servlet-mapping> m m 4.action. ServletContext m 3.xml</paramvalue> </init-param> m 4. getInitParameter m 3.Action Servlet <class> m 2 2.2. ContextInitialized m 2 2.apache. <servlet-mapping> <servlet<servletname>FrontController</servlet. getInitParameter m 4.3.Action <servlet-class> Servlet struts. getInitParameter m 4. <init-param> <param-name>config</paramname> <param-value>/WEBINF</param-value> </init-param> m 3.do<url-pattern> <url-pattern>*. <servlet-mapping> <servlet-name>Action</servletname> <url-pattern>.struts. <init-param> <name>config</name> <param-value>/WEBINF/struts-config. ServletContext m 4.apache.name>FrontController</servletname> name> <url-pattern>.

forward m 3.view"/> </action> </action> </action> </action-mappings> </action-mappings> </action-mappings> m m m 4 3.xml m 4. action m 4.view"> <forward name="error" <forward name="error" <forward name="error" path="/admin/add_league. <action-mappings> <action <action 2. struts-config m 1 2.do m 1 2.view"/> <forward name="error" type="com. <action-mappings> path="add_league" path="/add_league" <action type="sl314.controller.dvd. <action-mappings> <action path="/add_dvd" 2.view "/> "/> "> </action> </action> </action> </action-mappings> m </action-mappings> m </action-mappings> m 1 2.view path="/admin/add_league. struts-config. <action-mappings> type="com. form. <action-mappings> name="success" path="/success.xml m 4. struts-config m 3 .AddLeag type="sl314.do m 3.controller. forward m 3.controller. list_leagues. <action-mappings> 4.AddLeag path="/admin/add_league"> ueAction"> ueAction"> <forward name="success" <forward name="success" <forward name="success" path="/admin/success.do m 3. form.do m 3 2. struts-config. action m 4.view"/> path="/admin/success.dvd.view"/> <action path="/add_dvd" path="/success.controller. list_leagues.view path="/admin/add_league.AddD <forward name="error" path="/add_dvd.AddD <action path="/add_dvd"> VDAction"> <forward <forward name="success" 3.view"/> path="/admin/success.view"/> VDAction"> path="/add_dvd.4.

action m 4.2. /WEB-INF/web/ m 3. action m 2. Action m 2 2. HttpServletResponse m 4. Action m 1 2. ActionForm m 4. ActionForm m 4. ActionForm m 4. url-pattern m 1 . Entity m 4. ActionForm m 4. action-mappings m 3. ActionForward m 2. Action m 1 2. /WEB-INF/model/ m 4. forward m 2. servlet-name m 4. Service m 3. HttpServletRequest m 3. ActionForward m 3. param-value m 4. ActionForward m 3. Action m 3 2. param-name m 3. ActionForward m 3. servlet-mapping m 4. Action m 3 2 4 1 4 2. struts-config m 2 2. /WEB-INF/ m 2. servlet m 3. forward m 3. ActionForward m 3.

doFilter m 3. PerformanceFilter m 2 2. doGet m 2 2. destroy m 4.2.Fourth>Third>Second>First m 4. doGet m 2 2. doGet m 1 2.Second>First>Fourth>Third m 2 . addCookie m 3.Third>Fourth>First>Second m 3. doFilter m 3. Filter m 3. addSession m 4. destroy m 4. destroy m 4. getSession m 2 2. FilterChain m 4. doFilter m 3. doFilter m 3. destroy m 4. doGet m 1 2.

javax.setAttribute("customernumbe r"."customern c.String login=request. }m 4 3.equals("David") { { return return mapping.findForward("error").equals("tim") if(login.findForward(error).do</url-pattern> er> <dispatcher>dispatcher. java.ServletContext c=getServletConfig(). c=getServletContext() c.<filter-name>LoginFilter</filtername> name> <dispatcher>ERROR</dispatch <url-pattern>*. DataSource m 3.ServletConfig c=getServletConfig().setAttribute(cnum. DataSource m 3. if(login.do</url-pattern> R</dispatcher> </filter-mapping> m </filter-mapping> m 2 4.<filter-mapping> 4.equals("tim") { return mapping.<filter-mapping> <filter-name>LoginFilter</filtername> <url-pattern>*.getParameter("lo ue("login").do</url-pattern> <dispatcher>ERROR<dispatch er> </filter-mapping> m 3.<filter-mapping> <filter-name>LoginFilter</filter. gin").equals("David") { return mapping.String login=request. if(login.ERRO <url-pattern>*.sql m 3.ServletConfig 3.findForward("error").2.findForward("success mapping.setAttribute("customernumbe umber"). DAO m 2 2. cnum) m 4.io m 4.getParameter("lo gin"). } if(login. Connection Pooling m 4. Connection Pooling m 4. m 3 2. m r".servlet m 2 . }m }m 2. cnum). ").String 2.equals("tim") { { return return mapping.getParameterVal login=request. DAO m 3 2. javax. } } if(login. mapping.findForward("success ").findForward(success).equals("David") if(login. c.

lookup (java:comp/env/jdbc/myDB).sql.Statement B.Context mycontext= new InitialContext().Context mycontext= new InitialContext().sql. m 2 2.DataSo urce</respackage> <res-auth>Container</resauth> </resource-ref> m 4. prepareStatement m 1 2.3>2>1>4 m 3 4. DataSource ds= (DataSource)mycontext.B are true and Statement C.DataSource"</r es-type> <res-auth>Container</resauth> </resource-ref> m 1 2. m 4.<resorurce-ref> <resname>jdbc/passworddb</r esname> <restype>javax. m 3 .Context mycontext= new InitialContext(). lookup m 4.B.sql package m 3.D are true and Statement C is False.D are False.Statement A. java.<resorurce-ref> <res-refname>"jdbc/passworddb"<resref-name> <restype>"javax. close m 3.DataSource</re s-type> <res-auth>Container</resauth> </resource-ref> m 3.D are true and Statement A is False.4>2>3>1 m 2.sql.3>2>4>1 m 3. m 3. m 4.<resorurce-ref> <res-refname>jdbc/passworddb<resref-name> <respackage>javax.2.lookup("java:comp/e nv/jdbc/myDB").C. Connection Pooling m 4.lookup ("java:comp/env/jdbc/myDB"). DataSource ds= (DataSource)mycontext. Context object m 1 2.Statement A. m 3. DataSource ds= mycontext.

Scriptlet Tag m 4. Declaration Tag m 3.sql. Expression Tag m 4 . out m 3. config m 2 2.DataSource</re -type> s-type> <res-auth>container</res<res-auth>container</resauth> auth> </resource-ref> m </resource-ref> m 1 2. config m 4 2.<resource-ref> <description> </description> <res-refname>jdbc/myDB<res-refname> <restype>java. Expression Tag m 3 2. contentType m 4. Declaration Tag m 3. Declaration Tag m 3. out m 3. Scriptlet Tag m 4.DataSource<res type>javax.2. exception m 4. Expression Tag m 1 2.name>jdbc/myDB<res-refrefname> name> <res<restype>javax. info m 3. pageEncoding m 3 2. config m 3 2. exception m 4. exception m 4. Scriptlet Tag m 4.sql. Expression Tag m 2 2. Scriptlet Tag m 4. Declaration Tag m 3.sql.<resource-ref> 3. out m 3.DataSource<restype> <res-auth>container<res-auth> </resource-ref> m 4.<resource-ref> <description> <description> </description> </description> <res-ref<res-refname>jdbc/myDB<res.

B.Statement B. exception m 4. m 2 .<font color='green'> <ul> <c:forEach var="errmsg" items="${errorMsgs}"> <li>$errmsg</li> </c:forEach> </ul> </font> m 4. 3. m 4 2.Statement B is False and A. D are true. and D are true. url m 3.D are False. D are true and 3. if m 3 2.B are true and B. m 4. m 4.2. C are False.<font color='green'> <ul> <c:forEach var=errmsg items="${errorMsgs}"> <li>${errmsg}</li> </c:forEach> </ul> </font> m 2 2.Statement A. out m 4. out m 3. config m 1 2. C.<font color='green'> <ul> <c:forEach var="errmsg" items="${errorMsgs}"> <li>${errmsg}</li> </c:forEach> </ul> </font> m 3. and D are m true.C. m C.Statement A.Statement A and D are true.Statement A.

beans.LoginBea class="s1314. %> %> %> <jsp:useBean> m </jsp:useBean> m <jsp:useBean> m 1 2.<jsp-config> <jsp-property-group> <url-pattern>scriptting_off</url3.class" codebase="/applets" width="400" height = "300> </jsp:plugin> m 1 2.jsp:useBean id="login" scope="Session" scope="Session" scope="Session" class="s1314.getPa login.getPara meter("Loginid")).setValue(request. login.LoginBea n"> n"> n"> <%! <%! <% login.beans.<jsp-config> pattern> <url<scriptingpattern>/scriptting_off/*</urlinvalid>true</scripting-invalid> pattern> </jsp-property-group> <scripting<jsp-property-group> invalid>true</scripting-invalid> <url-pattern>EL_off</url<url-pattern>/EL_off/*</urlpattern> pattern> <el_ignored>true</el_ignored> <el_ignored>true</el_ignored> </jsp-property-group> </jsp-config> m </js 1 3. meter("Loginid")).Message() %> </body> </html> m 4.jsp:useBean id="login" 4.getPa rameter("address")).getPara login.<jsp:plugin code="chatApp.2.getMessage() %> </body> </html> m 2 .<jsp:plugin type="applet" code="chatApp.getPara login.class" codebase="/applets" width="400" height = "300"> <jsp:plugin> m 4.<jsp-property-group> <urlpattern>/scriptting_off/*</urlpattern> <scriptinginvalid>true</scripting-invalid> </jsp-property-group> <jsp-property-group> <url-pattern>/EL_off/*</urlpattern> <el_ignored>true</el_ignored> </jsp-property-group> m 2.setValue(request.class" codebase="applets" width="400" height = "300""> </jsp:plugin> m 4.<html> <body> <%@ page isErrorPage="true"> The following error has been generated: <%= exception.LoginBea class="s1314.<jsp:plugin type="applet" code="chatApp.setAddress(request.<jsp:useBean identity="login" 3.getPa login. meter("Loginid")).beans.setValue(request.<html> <body text = "green"> <%@ page isErrorPage="true"%> The following error has been generated: <%= exception.getMessage() %> </body></html> m 3.setAddress(request. rameter("address")).<html> <body text = "green"> <%@ page isErrorPage="true"%> The following error has been generated: <%= exception.setAddress(request. rameter("address")).

m 4. m 3.It will display the current time as hh:mm:ss. m 4. m 4. It will display the time as dd/mm/yy format.Both login and password 3. findForward m 4. ActionError m 2 . m 1 2. validate m 3.It will display the date and time. ActionErrors m 4. m 3.Login Message will be message will be displayed ten displayed nine times and times. m Password message once.It will display the date and time in dd/yy/mm format. ActionMapping m 3.2. M 4 2.It will display the current date in yy/mm/dd format. m 4 2.Both login and password message will be displayed nine times. init m 2 2.It will display time as hh/mm/ss.

ActionErrors m 4. link m 4.ActionForm. input m 2. link m 4. img m 3.import org.import org.struts. public class employeeform extends ActionForm { //required code }m 4.action. scope m 3. input m 4 2. image m 2 1 3 2. input m 1 4. validate m 4. image m 4 2. image m 4. input m 3. validate m 4. scope m 2. ActionError m 3 2. img m 3.struts.apache.Action Class & Validate() method m 3.ActionForm Class & validate() method m 4.action.apache.ActionForm Class & performValidations() method m 3 .Action Form. link m 3. path m 3. img m 2.apache. public class employeeform { //required code }m 2 2. public class employeeform extends ActionForm { //required code }m 3.2. path m 4. validate m 3. ActionMapping m 3.struts. validate m 4 2.Action Form.import org.

html"> m 4.Statement A is False and B.It is an authentication techniques where the administrator specifies the Web pages that are to be secured 4.D are true C. m 4. m 3. m 3 4.It is an authentication technique which creates a customized logon page for a Web application.Statement A. m digital certificates.B are true and 4.It is the process of identifying and the client.D are False.jsp> page="/validate. Also the user technique in which the server information is encrypted before authenticates a client by using it is sent to the server. m and C is False.D are true. m a user.It is an authentication pages.B.<%@ page import="Header.jsp"> <jsp: param name="param1" value="Login"/> </jsp:forward> m 2 3. m 1 2.Statement A.html" %> m 2 2. m digital certificates.It ensures that data is not modified while being transferred between the server 3.<%@ forward 2.It is an authentication technique which creates a customized logon page for a Web application. m 1 2.It is an authentication on a website and the users that technique in which the server have the access to these Web authenticates a client by using pages.jsp"> <jsp: param <jsp: param name="param1" name="param1" value="Login"/> value="Login"/> </jsp:forward> m </jsp:forward> m 1 2.It is an authentication techniques where the administrator specifies the Web pages that are to be secured on a website and the users that have the access to these Web 4.C.<%@ include file="Header.html" %> m 3. m 3.<jsp: @page="/validate.<jsp: page="/Validate. m .It specifies the rights asssigned to an authenticated user to access resources of a Web application. m 3.2.<jsp:forward page="Header.

m a tag.It is invoked after completion such as writing the output and 4.<security-role-ref> <role-name>Admin <role-link>James</rolelink></role-name> </security-role-ref> m 2 2.<security-role> <role-name>Admin <role-link>James</rolelink></role-name> </security-role-ref> m 3.3.It is used to direct the JSP of the evaluation of the body closing the database engine to process the body of tag.<security-role> <role-name>Admin</rolename> <role-link>James</role-link> </security-role-ref> m 2 4 1 2. m connection.It ensures that data is not modified while being 2. m and the client. m 4. 2.It is the process of identifying transferred between the server a user.Step 1 --> Step 3 --> Step 4 --> Step 2 --> Step 5 m 4.Step 1 --> Step 2 --> Step 3 --> Step 5 --> Step 4 --> Step 6 --> Step 4 --> Step 5 --> Step 6 --> Step 4 --> Step 5 --> Step 6 m m m 1 2.Step 1 --> Step 2 --> Step 3 3.<login-config> <auth-method>FORM</authmethod> <realm-name>Secure Form Authentication</realm-name> </login-config> m 2.<login-config> <auth-method>CLIENTCERT</auth-method> <realmname>Certificate</realmname> </login-config> m 4.Step 1 --> Step 2 --> Step 4 --> Step 3 --> Step 5 m 2 .<login-config> <auth-method>FORM</authmethod> <realm-name>Secure Form Authentication</realm-name> </login-config> m 2. m 4 3.It performs post tag tsks.<login-config> <auth-method>DIGEST</authmethod> <realm-name>Secure Digest Authentication</realm-name> m 3. m 4.<login-config> <auth-method>DIGEST</authmethod> <realm-name>Secure Digest Authentication</realm-name> </login-config> m 3.<login-config> <auth-method>CLIENTCERT</auth-method> <realmname>Certificate</realmname> </login-config> m 4.Step 1 --> Step 3 --> Step 2 --> Step 4 --> Step 5 m 3.It specifies the rights asssigned to an authenticated user to access resources of a Web application.Step 1 --> Step 3 --> Step 2 4.

Sign up to vote on this title
UsefulNot useful