Ques: 66 What is the use of <html:javascript/> tag in the
HTML tag library?
Ans: The
<html:javascript/> tag is used to insert JavaScript validation methods
based on the Commons Validator Plugin. The JavaScript methods used for
validation are retrieved from the validator definition file using the formName
as the index. The <html:javascript/> tag has no body and supports eight
attributes:
cdata, dynamicJavaScript, formName, htmlComment, method, page,
src, staticJavascript.
Ques: 67 What is the use of <html:message/> tag in HTML tag
library used in Struts application?
Ans: The
<html:message/> tag is used to display a collection of messages stored in
an ActionErrors, ActionMessages, String, or String array object.
The <html:message/> has a body type of JSP and supports eight attributes:
The <html:message/> has a body type of JSP and supports eight attributes:
id, bundle, locale, name, property, header, footer, message.
Ques: 68 What is the difference between <html:option/> and
<html:options/> tag in HTML tag library?
Ans: The <html:option/>
tag is used to generate an HTML <input> element to type <option>,
which represents a single option element nested inside a parent <select>
element. The <html:option/> tag has a body type of JSP and supports eight
attributes:
value, bundle, disabled, key, locale, style, styleId, styleClass.
The <html:options/> tag (as a child of the
<html:select/> tag) is used to generate a list of HTML <option>
elements. The <html:options/> tag has no body and support eight
attributes:
collection, filter, labelName, lableProperty, name, property,
style, styleClass.
Ques: 69 What is for <html:rewrite/> tag used defined by the
HTML tag library?
Ans: The
<html:rewrite/> tag is used to create a request URI based on the
identical policies used with the <html:link/> tag but without the
<a> element.
The <html:rewrite/> tag has no body and supports 12 attributes:
The <html:rewrite/> tag has no body and supports 12 attributes:
anchor, forward, href, name, page, paramId, paramName,
paramProperty, paramScope, property, scope, transaction.
Ques: 70 What are the steps involved in installing the Tiles tag
library in your Struts application?
Ans: To use Tiles tag library
in web application, You must complete the following steps:
* Copy the TLD file
packaged with this tag library struts-tiles.tld to the webapps/MyAppName/WEB-INF directory.
* Make sure that the
struts.jar file is in the webapps/MyAppName/WEB-INF/lib directory.
* Add the following
<taglib> sub-element to the web.xml file of the Web application:
<taglib>
<taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
You must add the following taglib directive to each JSP that will
leverage the Tiles tag library:
<%@ taglib
uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
Ques: 71 What is the use of <tiles:insert/> tag in Tiles tag
library in Struts framewrok?
Ans: The
<tiles:insert/> tag is used to insert a Tiles template into a JSP. You
must use the <tiles:put/> or <tiles:putList/> tags to substitute
sub-components of the tile being inserted.
The <tiles:insert/> tag has a body type of JSP and support 14 attributes:
The <tiles:insert/> tag has a body type of JSP and support 14 attributes:
template, components, page, definition, attribute, name, beanName,
beanProperty, beanScope, flush, ignore, role, controllerUrl, controllerClass.
Ques: 72 What is the use of <tiles:definition/> tag in Tiles
tag library in Struts framewrok?
Ans: The
<tiles:definition/> tag is used to create a JavaBean representation of
Tiles template definition that is stored in the named scope bound to the
identifier named by id attribute. The <tiles:definition/> tag acts much
like a runtime counterpart to the XML <definition/> found in the Tiles
definition file. The <tiles:definition/> tag has a body type of JSP and
supports six attribute:
id, scope, template, page, role, extends.
Ques: 73 What is for <tiles:put/> tag used in Tiles tag
library in Struts framewrok?
Ans: The <tiles:put/>
tag is used to define the equivalent of a parameter, representing a
sub-component of a template, that will be used to the Tiles object.
The <tiles:put/> tag has a body type of JSP and supports eight attribute:
The <tiles:put/> tag has a body type of JSP and supports eight attribute:
name, value, direct, type, beanName, beanProperty, beanScope,
role.
Ques: 74 What is the use of <tiles:putList/> tag in Tiles
tag library in Struts framewrok?
Ans: The
<tiles:putList/> tag is used to define a list of parameters that will
passed as attribute to the Tiles object. The list is created from a collection
of child <tiles:add/> tags.
The <tiles:putList/> tag has a body type of JSP and supports a single attribute:
The <tiles:putList/> tag has a body type of JSP and supports a single attribute:
name : The name of the list being created.(Required)
Ques: 75 What is the use of <tiles:add/> and
<tiles:get/> tags in Tiles tag library in Struts framewrok?
Ans: The <tiles:add/>
tag is used to add parameters to a parameter as defined by a
<tiles:putList/> tag.
The <tiles:add/> tag has a body type of JSP and supports seven attributes:
The <tiles:add/> tag has a body type of JSP and supports seven attributes:
beanName, beanProperty, beanScope, direct, role, type, value.
The <tiles:get/> tag is used to retrieve and insert
parameters previously defined from the Tiles context. With the exception of
ignore attribute being defaulted to true, this tag is functioanlly the same as
the <tiles:insert/>.
The <tiles:get/> tag has no body content and support four attributes:
The <tiles:get/> tag has no body content and support four attributes:
name, ignore, flush, role.
0 comments:
Post a Comment