Topic: JBUILDER9如何来做JSP/BEANS呢?

  Print this page

1.JBUILDER9如何来做JSP/BEANS呢? Copy to clipboard
Posted by: beafox
Posted on: 2003-09-05 17:47

为什么我建了项目把TOMCAT的例子HELLOWORLD的SERVLET源程序用JBUILDER9编译提示出错,请问原因?

2.Re:JBUILDER9如何来做JSP/BEANS呢? [Re: beafox] Copy to clipboard
Posted by: 金溶
Posted on: 2003-09-05 19:45

你的问题和你的问的内容不符,:-)

在jb9中建一个这样的servlet一定能用的,经本人测试.

package test;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Servlet1
extends HttpServlet {
private static final String CONTENT_TYPE = "text/html; charset=GBK";
//Initialize global variables
public void init() throws ServletException {
}

//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body bgcolor=\"#ffffff\">");
out.println("<p>Hello,World !! 中国 </p>");
out.println("</body></html>");
}

//Clean up resources
public void destroy() {
}
}

3.Re:JBUILDER9如何来做JSP/BEANS呢? [Re: beafox] Copy to clipboard
Posted by: beafox
Posted on: 2003-09-06 10:31

应该不是程序问题而是我不会用JB9!谢谢你了要如何用它呢

4.Re:JBUILDER9如何来做JSP/BEANS呢? [Re: beafox] Copy to clipboard
Posted by: 阿熊
Posted on: 2003-09-06 10:41

到borland下载官方文档
很详细的


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923