use*_*924 2 java eclipse spring jsp struts2
我无法解决 Eclipse 中的警告,该警告说 The tag handler class for s:form (org.apache.struts2.views.jsp.ui.FormTag)was not found on theJava Build Path
我已将 thestruts2-core-2.3.24.jar以及standard.jarand 添加jstl.jar到WEB-INF/liband 中build path。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World From Struts2 - Spring integration</h1>
<s:form>
<s:textfield name="firstName" label="First Name"/><br/>
<s:textfield name="lastName" label="Last Name"/><br/>
</s:form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)