【汇智学堂】管理请求中的属性(jsp内置对象)
< % @ page contentType = "text/html;charset=UTF-8" language = "java" % > < % @ page import = "com.huizhi.bean.Book" % > < % @ page import = "java.util.Date" % > < html > < head > < title > Title < / title > < / head > < body > < % Book book = new Book ( ) ; book . setAuthor ( "leilei" ) ; book . setId ( 123 ) ; book . setTitle ( "学习JSP" ) ; request . setAttribute ( "bk" , book ) ; request . setAttribute ( "today" , new Date ( ) ) ; % > < % -- 需要显示的地方进行强制转换 -- % > < % Book bk ; bk = ( Book ) request . getAttribute ( "bk" ) ; % > < table cellpadding = "3" cellspacing = "3" > < tr > < td > 图书编号 :