0

I downloaded tomcat, eclipse, Struts framework. Tomcat is working. Where to place eclipse and Struts? I placed eclipse and Struts outside tomcat folder. The needed jar files are stored inside eclipse current folder. 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
4

1 回答 1

0

Eclipse 是一个 IDE。它用于开发 Java 应用程序。不只是一个应用程序,而是几个应用程序。您不应将任何特定于应用程序的 jar 放入 eclipse 文件夹中。

Struts(而不是 strut 或 struct)是一个 Web 框架。它的 jar 必须放在已部署应用程序的 WEB-INF/lib 文件夹中。在 Eclipse Web 项目中,它们的位置(通常)是<yourProjectDirectory>/WebContent/WEB-INF/lib.

于 2012-05-01T07:39:13.077 回答