gma
gma

Reputation: 218

Warning in struts2 application s:property tag

I did a Struts2 tutorial and everything works, however I am left with a Warning:

The tag handler class for <s:property> (org.apache.struts2.views.jsp.PropertyTag) was not found on the Java Build Path HelloWorld.jsp

I can't seem to find which library is missing especially since it runs fine.

Upvotes: 1

Views: 4696

Answers (5)

Java Coder
Java Coder

Reputation: 60

Add these two lines under the struts tag:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

Upvotes: 0

user6368539
user6368539

Reputation: 21

I ran into this problem: Mine was: <%@ taglib prefix="s" uri="/struts-tags"% >

I had a space after the last % When I deleted the space it solved all my warnings.

Upvotes: 2

Usmin S
Usmin S

Reputation: 31

Move <%@ taglib prefix="s" uri="/struts-tags"%> to the very first line of your jsp - it removes the warning

Upvotes: 3

user4538931
user4538931

Reputation: 1

I had the same problem. After adding struts2-core-2.1.8.jar, the warning was gone and my project executed successfully.

Upvotes: 0

afsal parangooz
afsal parangooz

Reputation: 162

org.apache.struts2.views.jsp.PropertyTag is contained in Struts 2 Core 2.x.x.x API.

In Jsp file you have to import this tag-lib by adding following import code in top of your jsp.

<%@ taglib prefix="s" uri="/struts-tags"%>

Upvotes: 0

Related Questions