jsp notes
<%@ page c language="java"%>
<%@ page import="com.dragon.*" %>
<%@ page import="lotus.domino.*" %>
<%!
session sess;
database db;
view view;
document doc;
string host = "",user = "", pawd = "";
%>
<%
try{
sess = notesfactory.createsession("192.168.2.1","admin","12345678");
host = sess.getservername();
user = sess.getusername();
system.out.println("host: " + host + "; user: " +user);
db = sess.getdatabase(host,"fawen\\sample.nsf",false);
view = db.getview("jsp");
doc = view.getfirstdocument();
out.println(db.gettitle());
}catch(notesexception ne){
system.out.println("error: " + ne.id + " ==> " + ne.getmessage());
}
%>
<html>
<head>
<title>jsp get domino data</t
Ïà¹ØÎĵµ£º
Ê×ÏÈÄãÒªÓÐtomcat,»¹ÒªÓÐoracle jdbcµÄjarµµµÈ»·¾³.
µÚÒ»²½: дJSP
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<html>
<body>
<%Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@(des ......
Ò» Ç°Ìá
Ï£Íû×îеļͼÔÚ¿ªÍ·¸øÄãµÄ±í½¨Á¢²éѯ£º
񡜧mytable
²éѯ£ºcreate or replace view as mytable_view from mytable order by id desc ÆäÖУ¬×îºÃʹÓÃÐòÁкÅcreate sequence mytable_sequence À´×Ô¶¯Ôö¼ÓÄãµÄ¼ ......
jspÖÐʹÓÃjavabeanµÄÁ½µã×¢ÒâÊÂÏî
Ê×ÏÈÒ»µã£ºjavabeanÒ»¶¨Òª·ÅÔÚÃüÃû°üÀ²»ÄÜ·ÅÔÚĬÈÏ°üÀҲ¾ÍÊÇÔÚbeanÎļþµÄ¿ªÍ·Òªpackage¡¡pname;ÁË£¬Èç¹û²»·ÅÔÚÃüÃû°üÀï¶ø·ÅÔÚÁËĬÈÏ°üÀ×îºó½«±¨ÈçÏÂÕâÑùµÄ´íÎó£º
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 18 in the ......
EOS6ÖÐÔÚJSPÒ³ÃæÖжÁÈ¡Ò³ÃæÁ÷ÖеÄDataObject¶ÔÏó
´úÂëÈçÏ£º
<%@page pageEncoding="UTF-8" import="java.util.*"%>
<%@page import="com.eos.web.taglib.util.*" %>
<%@page import="commonj.sdo.DataObject,commonj.sdo.Property" %>
<%@include file="/common/common.jsp"%>
<%@incl ......
Õë¶ÔgetÌá½»·½Ê½¡¢ÂÒÂë½â¾ö·½Ê½
tomcat5ÖУ¬ÎªÁ˱£Ö¤getÊý¾Ý²ÉÓÃGBK±àÂ룬ÔÚserver.xmlÖнøÐÐÁËÈçÏÂÉèÖ㺸ıäwebÈÝÆ÷ÇëÇóÊý¾ÝµÄ±àÂë¸ñʽ(¶ÔpostÇëÇó·½Ê½ÎÞЧ)
<Connector port="8080" maxHttpHeaderSize="8192"
&nbs ......