JSP笔记
JSP元素包括:1、脚本元素(语言为Java,使用Java代码规范。其中<%!声明(变量、方法)%><%=表达式元素%><%程序代码%>)
2、指令元素:指定网页中的指令如何被执行,包括page和include。
3、动作元素:连接要用的组件,如JavaBean(useBean、get/setProperty),还有param、forward、include。
include指令元素实在将JSP转译成Servlet时,插入另一文件的内容,所以当另一文件中的内容改变时,不会反映当前网页。而include动作元素实在进行页面请求时,插入另一文件中的内容,所以当另一文件中的内容改变时,会反映到当前网页。前者为静态加载,后者为动态加载。
相关文档:
<SCRIPT language=JavaScript>
function Run(strPath)
{
try
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
//alert("ok");
}
catch(e)
{
alert('找不到文 ......
I used Eclipse to try the google app engine demo project: guestbook.
when i create a *.jsp file in the WAR directory,the error information appear:
"Your Web Application Project must be configured to use a JDK in order to use JSPs."
solution:
It is because Eclipse put the JRE to the JRE directory ......
package com.gc.tool;
import java.util.ArrayList;
import java.util.List;
public class MyPagination {
private int recordCount = 0;
private int pagesize = 0;
private int maxPage = 0;
&n ......
水晶易表毕竟是做报表的,离开数据库它是飞不远的。从目前的版本来看,易表连接数据库虽然有好几种方式,但都比较麻烦,而且还有很多局限性。其中通过xml方式连接数据库还算比较灵活,我要说的就是这种方式。
在易表的数据管理里新建一个xml数据连接,如下图:
我的是英文版的,不好意思,以前是中文版来着,后来 ......
jsp:setProperty标签用于设置被加载到当前页面中的JavaBean中属性的值
格式:<jsp:setProperty name=? property=? value=?(或param=?) />
name:某个JavaBean的对象名,用于指定给哪个JavaBean中的属性赋值
property:JavaBean中的某个属性名,用于指定给当前JavaBean中的哪个属性赋值
& ......