jsp点滴

来源:互联网 发布:rpg制作大师mac下载 编辑:程序博客网 时间:2024/04/29 14:14

***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
***************************************************************************************************
是el表达式的隐含对象,感觉和作用域差不多吧el表达式的隐含对象包括:pageScope,requestScope,sessionScope,applicationScope例如:${hello}el会依次到pageScope,requestScope,sessionScope,applicationScope中寻找,直到找到为止。可以写成${requestScope.hello}的形式,即只在requestScope中查找hello
表示变量的作用域,一共4种。
pageScope: 表示变量只能在本页面使用。
requestScope:表示变量能在本次请求中使用。
sessionScope:表示变量能在本次会话中使用。
applicationScope:表示变量能在整个应用程序中使用。
***************************************************************************************************

多行注释用 /*

xxxxxx

xxxxxxxx

*/

***************************************************************************************************

单行注释用 

//xxxxxxxxxxx



***************************************************************************************************

jsp编辑直接看到效果:

右键点jsp文件后,选择open with再选web page editor


如果不行,需要更新插件,在帮助菜单上更新所有插件

***************************************************************************************************

jsp代码自动对齐

右键source --->format
或者ctrl+ shift + f
***************************************************************************************************
<form action="login.action" method="post">
login.action其实只是login,系统会自动过滤action
***************************************************************************************************

	
				
		
原创粉丝点击