Java Server Pages 2nd Edition phần 9

Tiếp theo, chúng tôi tập trung trên lớp kết nối JDBC và cách tổng hợp đối tượng kết nối sẽ giúp giải quyết một số vấn đề phổ biến. Chúng tôi nhìn vào hai cách để thực hiện tổng hợp khả năng kết nối: cách JDBC và bằng cách cho phép một JDBC kết nối hồ bơi mô phỏng một JDBC hồ bơi. | Appendix B. JSTL Actions and API Reference For a number type the format specification can be currency percent integer or the type of customized pattern described for fmt formatNumber . fmt parseDate The fmt parseDate action parses a date and time value formatted according to localespecific rules. A custom pattern can be specified or locale-dependent default patterns for one or both of the date portion and the time portion can be selected. The locale used is the one explicitly specified or is taken from the locale configuration setting or the locale from the localization context setting. If none of these are set the locale is determined as the best match for the user preferences Accept-Language request header . Syntax 1 Without a body fmt parseDate value dateAndTime pattern pattern type time date both dateStyle default short medium long full timeStyle default short medium long full timeZone timeZone parseLocale locale var var scope page request session application Syntax 2 With a body fmt parseDate pattern pattern type time date both dateStyle default short medium long full timeStyle default short medium long full timeZone timeZone parseLocale locale var var scope page request session application dateAndTime fmt parseDate Attributes Attributename Java type Dynamic valueaccepted Description value String Yes The date and time to parse pattern String Yes A custom pattern in the form accepted by see fmt formatDate. type String Yes Which portions the value contains. 487 Appendix B. JSTL Actions and API Reference dateStyle String Yes One of the predefined localedependent date patterns. timeStyle String Yes One of the predefined localedependent time patterns. timeZone String or Yes The time zone to use instead of the default parseLocale String or Yes A locale to be used instead of the default. var String No The variable name. The type is . scope String No The variable scope. Example fmt parseDate

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
7    78    2    21-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.