tailieunhanh - Mastering Jakarta Struts phần 9

tập trung vào cách JSP được thừa hưởng trong một ứng dụng Struts. JSP trong khuôn khổ Struts phục vụ hai chức năng chính. Việc đầu tiên của các chức năng này là để hoạt động như trình bày phải được lồng vào nhau bên trong cơ thể của một thẻ | html image page Provides the application-relative path of the image source used by this input tag. Optional pageKey Specifies a resources key to be retrieved from a resource bundle that references an application-relative path of the image source used by this input tag. Optional property Identifies the parameter names of the image tag. The parameter names will appear as and with the x and y characters representing the coordinates of the mouse click for the image. Optional src Specifies a URL that references the location of the image source used by this input tag. Optional srcKey Specifies a resources key to be retrieved from a resource bundle that references a URL pointing to the location of the image source used by this input tag. Optional style Specifies a Cascading Style Sheet style to apply to this HTML element. Optional styleClass Specifies a Cascading Style Sheet class to apply to this HTML element. Optional styleId Specifies an HTML identifier to be associated with this HTML element. Optional tabindex Identifies the tab order of this element in relation to the other elements of the containing Form. Optional title Specifies the advisory title for this HTML element. Required titleKey Specifies a resources key to be retrieved from a resource bundle that references a title string for this element. Optional value Specifies the label to be placed on this button. Optional An example of using the html image tag is shown here html image property add src images When this snippet is evaluated it will result in an HTML snippet similar to the following input type image name add src images In this example we are creating a simple html image tag with an attribute property which is used to name the tag s request parameter and an src element which references the location of the image to be used by this tag . When this tag instance is evaluated it will generate an HTML input element of type image that executes the action associated with .

TỪ KHÓA LIÊN QUAN