C.3 Java servlet VBDGetLatest
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import lotus.domino.*;
import java.util.Vector;
public class VBDGetLatest extends HttpServlet {
String viewname= All books ;
String dbname= Redbooks ;
String host= bdtest3:8000 ;
String category=null;
String tm, dumb;
DateTime dt;
public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
doService(req,res);
}
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
doService(req,res);
}
public void doService (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
int no;
/* Get parameter name and value */
/*
category=req.getParameter( category );
if (category.equals( All ))
viewname= All books ;
else
viewname= platform sorted ;
*/
try {
/* Create session and open the database */
Session s=NotesFactory.createSession(host);
Database db=s.getDatabase(s.getServerName(), dbname);
View view = db.getView(viewname);
Appendix C. Java code relating to Domino database
163




  

Home

About Services Network Support FAQ Order Contact
 

Linux Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved