JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expre



JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expre

JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions

应用部署运行的时候出现JSP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file,[......]

Read more

java动态调用webservice服务端



java动态调用webservice服务端

1.用jdk命令生成客户端文件

命令调用webservice接口:【AuctionService?wsdl】

       wsimport -keep -d d:\web -s d:\web http://ip:port/projectname/AuctionService?wsdl -p com.sw.webservice
2.把生成的文件拷贝项目里编写调用文件如下:

  1. public class WebserviceClent {
  2.   [......]

Read more

Java递归算法的小例子 求1+2+3…+1000 和

Java递归算法的小例子 求1+2+3…+1000 和

public class Test1 {
int sum=0;
int a=1;
public void sum()
{
sum+=a;
a++;
if(a<=1000)
{
sum();//调用自身实现递归
}
}
public static void main(String[] args) {
Test1 test=new Test1();
test.sum();
System.out.println(“计算结果:”+test.sum+”!”);
}

本文链接地址: Java递归算法的小[......]

Read more

js+加载等待效果进度条

js+加载等待效果进度条,

  1. <!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Transitional//EN” ”http://www.w3.org/TR/html4/loose.dtd”>
  2. <html>
  3.  <head>
  4.   <title> 加载等待效果 </title>
  5.   <meta name=”Generator” content=”EditPlus”>
  6.   <meta name=”Author” content=”">
  7.   &lt[......]

Read more

jdbc调用存储过程

jdbc调用存储过程。

import java.sql.*;

import java.sql.CallableStatement;

/**
*
* 简单的jdbc调用存储过程 只有输入参数 返回单个结果集
*
*/
public class GeTest1 {
public static void main(String[] args) {

Connection connection = null;
//用于执行 SQL 存储过程的接口
CallableStatement statement = null;
ResultSet resultSet =[......]

Read more

jdbc调用存储过程

jdbc调用存储过程

import java.sql.*;

import java.sql.CallableStatement;

/**
*
* 简单的jdbc调用存储过程 只有输入参数 返回单个结果集
*
*/
public class GeTest1 {
public static void main(String[] args) {

Connection connection = null;
//用于执行 SQL 存储过程的接口
CallableStatement statement = null;
ResultSet resultSet = n[......]

Read more

jsp中mztreeview的应用实例

jsp中mztreeview的应用实例

web中tree的应用非常广泛,动态tree的实现也是多种多样,这里主要是写下我用mztreeview(梅花雪大侠所写)的jsp例子.

梅大侠的文档中给了个asp的例子,但是在jsp中如何应用呢?熟知asp和jsp的人可以很好的把程序移植,但是对于不是同时很熟悉这2中语言的人来说,有一个jsp例子,会方便很多.

1.首先,下载控件,MzTreeView10

2.(最好)将控件放到工程目录下

3,建立数据库

create table tree
(
id int primary key,
parentId int,[......]

Read more

jsp中request 初学随笔–post、get提交方法getAttribute、getParameter

jsp中request 初学随笔–post、get提交方法getAttribute、getParameter。

表单提交有post和get两种方法:

post提交:提交后的地址栏不会附加目标地址的其他内容,只能用在表单上的一种提交形式

get提交:提交后的地址栏是会改变的,而且会使用地址重写的方式完成,既然所有的内容都要要显示,则传递时,肯定收到地址长度的限制

 

什么是偶使用getAttribute(),什么时候使用getParameter():

|– 如果使用getAttribute()则之前一定会存在setAttribute()的设置操作[......]

Read more