简体   繁体   English

Struts框架设置中的错误

[英]error in Struts framework settings

I downloaded tomcat, eclipse, Struts framework. 我下载了tomcat,eclipse,Struts框架。 Tomcat is working. Tomcat正在工作。 Where to place eclipse and Struts? 蚀和Struts放在哪里? I placed eclipse and Struts outside tomcat folder. 我将eclipse和Struts放在了tomcat文件夹之外。 The needed jar files are stored inside eclipse current folder. 所需的jar文件存储在eclipse当前文件夹中。 I'm getting error. 我出错了。

 <%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hello World</title>
</head>
<body>
<bean:write name="helloWorldForm" property="message"/>
</body>
</html>
unknown tag:bean.write

Eclipse is an IDE. Eclipse是一个IDE。 It's used to develop Java applications. 它用于开发Java应用程序。 Not just one application, but several ones. 不只是一个应用程序,而是几个应用程序。 You shouldn't place any app-specific jar into the eclipse folder. 您不应该将任何特定于应用程序的jar放入eclipse文件夹。

Struts (and not strut or struct) is a web framework. Struts(而非strut或struct)是一个Web框架。 Its jars must be put in the WEB-INF/lib folder of your deployed application. 它的jars必须放在已部署应用程序的WEB-INF / lib文件夹中。 In an Eclipse web project, the location for them is (typically) <yourProjectDirectory>/WebContent/WEB-INF/lib . 在Eclipse Web项目中,它们的位置通常是<yourProjectDirectory>/WebContent/WEB-INF/lib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM