Incompatible operand types String and int



<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>






My JSP 'index.jsp' starting page













This is my JSP page.











${2*4 }
dd








报错原因:

dd


比较内容${1==1}没有任何意义,一般解释为 变量和变量比较,或变量和常量比较,两个常量没意义,所报错,但没有影响

你可能感兴趣的:(jsp,jsp)