Jsp入门小常识

因为选修了一门信息系统的课,选择了用jsp做了一个系统。在这期间自学了jsp的一点皮毛,特与大家分享:

script标签:用于向jsp中嵌入java代码块,<%  // embed java code%>

声明标签:用于声明变量和方法,<% !variable declaration;

                                                    method declaration>

表达式标签:用于向JSP中插入Java表达式,<% =Java Expression %>

JSP指令:<% directive_type directive_attributes%>

                   directive_attributes::=page|Include|taglib

                   directive_attributes::=dependent on thye directive_type

include指令:用于包含另一个文件的文本,<% @include file ="Relative_URL_to_File"%>

taglib指令:用于通过导入定制行为标签扩展JSP的功能 <%@taglib uri ="URI_to_Tag_Library"prefix="Custom_action"%>

useBean,setProperty行为,,,,这些就不一一细讲。

posted @ 2015-04-24 20:42  乔瑟琳  阅读(125)  评论(0编辑  收藏  举报