1.发帖时,插入图片的完整地址是什么样的地址;2.CSDN从发帖到结贴可以有多长时间;3.文本文档写JSP文件时怎样配置JDK环境变量,打开tomcat的start.bat文件时一闪而过怎么回事;4.有错吗?下面
main.jsp <%@ page contentType="text/html";charset=gb2312" %>
<html><body>
<jsp:include page="lader.jsp">
<jsp:param name="up" value="5"/>
<jsp:param name="down" value="8"/>
<jsp:param name="height" value="10"/>
</jsp:include>
</body></html>lader.jsp
<%@ page contentType="text/html";charset=gb2312" %>
<html><body>
<% String u=request.getParameter("up");
String d=request.getParameter("down");
String h=request.getParameter("height");
double i,j,k,s;
i=Double.parseDouble(u);
j=Double.parseDouble(d);
k=Double.parseDouble(h);
s=(i+j)*k/2;
%>
<p>梯形的面积是:<br>
<%=s %>
</body></html>
main.jsp <%@ page contentType="text/html";charset=gb2312" %>
<html><body>
<jsp:include page="lader.jsp">
<jsp:param name="up" value="5"/>
<jsp:param name="down" value="8"/>
<jsp:param name="height" value="10"/>
</jsp:include>
</body></html>lader.jsp
<%@ page contentType="text/html";charset=gb2312" %>
<html><body>
<% String u=request.getParameter("up");
String d=request.getParameter("down");
String h=request.getParameter("height");
double i,j,k,s;
i=Double.parseDouble(u);
j=Double.parseDouble(d);
k=Double.parseDouble(h);
s=(i+j)*k/2;
%>
<p>梯形的面积是:<br>
<%=s %>
</body></html>
2.不知道。
3.jre等等没找到
4.太长了懒得看了
我自己想办法吧
1.http://topic.csdn.net/u/20100917/17/00aebf0f-493f-43b6-af82-a3a2a8c9b056.html?72262
不懂
2.应该有十天半个月的
3.Java_Home,终于知道怎么配了
4.<%@ page contentType="text/html";charset=gb2312" %>
到了个引号。
这娃没戏