struts-03

16
To use the tags in bean tag library in Jsp , you need to check the following:--------- Write the taglib directive in the Jsp where you are using the tags: --------- <%@ taglib uri=”WEB-INF/struts-bean.tld” prefix=”bean”%> Insure that struts-bean.tld file is available in WEB-INF folder. For the web container(Tomcat)version less than 5.0 ,you should write the following tags :--------- <taglib> <tlib-uri>/WEB-INF/struts-bean.tld</tlib-uri> <tlib-location>/WEB-INF/struts-bean.tld</tlib- location> </taglib> List of tags in bean tag library Some of the tags in the library are used to display the value of the scripting variables in JSP output stream. Some other tags is used to store the values in JSP scripting variables, by retrying the values from request parameters or cookies or headers or attributes. Html tags or library tags Bean Logic [I] <bean:write>:---------- write tag is used to display the values in JSP output stream. Attributes: --------------- <bean:write> <bean:message> <bean:parameter> <bean:cookie> <bean:header> <bean:size> <bean:page> <bean:includ e> <bean:define > Bean Tag Library name(*) property scope AS 1.JSP Link or form Model Action RP DB 2.JSP

description

st

Transcript of struts-03

To use the tags in bean tag library in Jsp , you need to check the following:--------- Write the taglib directive in the Jsp where you are using the tags: ---------