当jswdk配置好了之后又有什么可以做的呢?在默认情况下当使用http://localhost:8080打开jsp网页时,我们看到的是jswdk指定的默认页面index.jsp,这个网页位于webpages目录下。当我们查看jsp或者是servlets打开的又是examples目录下的各个jsp页面。比较examples目录和webpages目录,看看这两个目录的目录结构有什么相同之处?是不是都有web-inf这个目录?再打开web-inf目录里面是不是有两个文件夹?一个是jsp,一个是servlets,还有四个文件,分别是:mappings,webapp,servlets,mine再看看这四个文件的属性,是不是properties类型的?然后打开startserver.bat文件(当然是用写字板打开喽),找到如下语句:
set beanjars=.\examples\web-inf\jsp\beans;.\webpages\web-inf\servlets;.\webpages\web-inf\jsp\beans;
<webserver id="webserver">
<service id="service0">
<webapplication id="examples" mapping="/examples" docbase="examples"/>
</service>
</webserver>
<html>
<head>
<title>hello world</title>
</head>
<body>
<%
string msg="this is jsp test.";
out.print("hello world!");
%>
<h2><%=msg%></h2>
</body>
</html>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器