<%@ page contentType="text/html;charset=Gb2312"%>
<%@ page import="java.io.*"%>
<%@ page import="java.text.*"%>
<%@ page import="PUB.*"%>
<%@ page import="javax.naming.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.naming.*"%>
<%
//创建session对象时:
MyDB mydb = new MyDB();
session.setAttribute("mydb",mydb);
// 取对象时:
Object mydb2 = session.getAttribute("mydb");
MyDB newg = (MyDB)mydb;
out.println(newg.to_char("xxxx","yyyyy"));
%>
<%@ page import="java.io.*"%>
<%@ page import="java.text.*"%>
<%@ page import="PUB.*"%>
<%@ page import="javax.naming.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="java.text.*"%>
<%@ page import="javax.naming.*"%>
<%
//创建session对象时:
MyDB mydb = new MyDB();
session.setAttribute("mydb",mydb);
// 取对象时:
Object mydb2 = session.getAttribute("mydb");
MyDB newg = (MyDB)mydb;
out.println(newg.to_char("xxxx","yyyyy"));
%>