JSP怎么运行.
但在执行程序
<%@ page contentType="text/html; charset=GB2312" %>
<%
string str;
str=new String("ddd");
%>
i=<%=str%>
时还是有误.
/jspgo.jsp:3: 找不到类 string。
string str;
^
1 个错误
--------------------------------------------------------------------------------
Resin 2.1.1 (built Mon May 13 16:53:21 PDT 2002)
相关推荐
jsp项目运行实践教程
jsp实习报告jsp实习报告jsp实习报告jsp实习报告jsp实习报告
jsp文件运行的机制
jsp文件运行的机制,讲述的是tomcat服务器的作用与运行机制
jsp各种的程序运行图
jsp的运行程序 <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>use application doing a counter</title> </head> <body> <% int count=1; try{ count=Integer.parseInt(application.getAttribute("counter").toString()); } catch(Exception e){ out.println("the count is wrong!"); } count++; application.setAttribute("counter", count); %> </body> </html>
jsp运行原理
其步骤如下: 1.jsp引擎将jsp文件翻译为Servlet源程序; 2.之后又将Servlet源程序编译为.class类文件;其中: 1.Jsp引擎是通常一个Servlet程序,Tomcat中的jsp引擎就是org.apache.jasper.servlet.JspServlet;
jsp 运行环境 配置 教程
本章学习如何安装和配置JSP页面运行环境。JSP页面运行环境主要由三部分组成:JDK、WEB服务器、JSP引擎和Servlet引擎。


Web 开发
