Myeclipse 做个jsp显示图片只出现个叉
<%@pagelanguage="java"contentType="text/html;charset=GBK"%><HTML><HEAD><TITLE>HEAD</T...
<%@ page language="java" contentType="text/html;charset=GBK"%>
<HTML>
<HEAD>
<TITLE>HEAD</TITLE>
</HEAD>
<BODY>
<IMG alt="" src="./image/Logo.jpg" width="300" height="120"/><h2 ><font color=red>猪仙</font></h2>
</BODY>
</HTML> 展开
<HTML>
<HEAD>
<TITLE>HEAD</TITLE>
</HEAD>
<BODY>
<IMG alt="" src="./image/Logo.jpg" width="300" height="120"/><h2 ><font color=red>猪仙</font></h2>
</BODY>
</HTML> 展开
2个回答
展开全部
<%@ page language="java" contentType="text/html;charset=GBK"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<HTML>
<HEAD>
<TITLE>HEAD</TITLE>
</HEAD>
<BODY>
<IMG alt="" src="<%=path%>/image/Logo.jpg" width="300" height="120"/><h2 ><font color=red>猪仙</font></h2>
</BODY>
</HTML>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<HTML>
<HEAD>
<TITLE>HEAD</TITLE>
</HEAD>
<BODY>
<IMG alt="" src="<%=path%>/image/Logo.jpg" width="300" height="120"/><h2 ><font color=red>猪仙</font></h2>
</BODY>
</HTML>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询