
servlet
xiaolintan
这个作者很懒,什么都没留下…
展开
-
servlet_simple_example_login
package com.xl;import javax.servlet.http.*;import java.io.*;public class Login extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse res){ try{ res.setC原创 2012-03-24 16:08:42 · 262 阅读 · 0 评论 -
//c
// c My JSP 'queryForm.jsp' starting page show result. <% ArrayList stus = (ArrayList)request.getAttribute("stus"); %> ѧۅ ѕĻ єҰ ԶʺŪՂ ݒͥסַ原创 2012-10-30 16:18:53 · 14220 阅读 · 0 评论 -
//b
// bpackage dao;import java.sql.*;import java.util.*;import po.Student;public class StudentDao { private Connection conn = null; public void initConnection(){ try{ Class.forName("sun.jd原创 2012-10-30 16:18:17 · 776 阅读 · 0 评论 -
// a
// a My JSP 'queryForm.jsp' starting page query form. please input stu name: // - -a原创 2012-10-30 16:17:05 · 242 阅读 · 0 评论 -
one mvc example
fill query info in queryForm.jsp form and action index is QueryServletand method is post see // aafter submit the query condition in queryForm.jspit will direct to QueryServlet.javaQue原创 2012-10-30 16:15:00 · 328 阅读 · 0 评论 -
servlet_simple_example_wel
package com.xl;import javax.servlet.http.*;import java.io.*;public class Wel extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse res){ try{ res.setContentT原创 2012-03-24 16:11:54 · 304 阅读 · 0 评论 -
servlet_simple_example_loginCl
package com.xl;import javax.servlet.http.*;import java.io.*;public class LoginCl extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse res){ try{ String u=re原创 2012-03-24 16:10:06 · 299 阅读 · 0 评论 -
servlet_config_servletmapping
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding cop原创 2012-03-24 16:14:47 · 344 阅读 · 0 评论 -
javaweb_servlet开发步骤
1.构建webapps目录下项目结构2.classes包下编写servlet类3.编译servlet类4.配置web.xml中的servlet mapping关系5.启动tomcat6.打开IE访问servlet原创 2012-03-24 11:29:09 · 274 阅读 · 0 评论 -
//d
// dpackage servlet;import java.io.IOException;import java.io.PrintWriter;import java.util.ArrayList;import javax.servlet.RequestDispatcher;import javax.servlet.ServletContext;import javax.se原创 2012-10-30 16:19:31 · 553 阅读 · 0 评论