WebLogic the solution of the tag error when configuring struts application

Source: Internet
Author: User
Tags tld
Web| Error | resolution

Error message:

The following error often occurs when configuring struts applications under WEBLOIGC, but it is not a problem under other Web servers:

Parsing of JSP File '/index.jsp ' failed:
------------------------------------------------ -
/index.jsp (3): Error in using tag library uri= '/web-inf/struts-html.tld ' prefix= ' html ': the Tag class ' Org.apache.struts. Taglib.html.FormTag ' has no setter method corresponding to TLD declared attribute ' name ', (JSP 1.1 spec, 5.4.1)
Probably occurred due to a error in/index.jsp line 3:
<%@ taglib uri= "/web-inf/struts-html.tld" prefix= "html"%>

reason :

This is because WebLogic is very strict with tag.

Workaround:

Open Struts.jar can be seen with org and meta-inf two directories, in the Meta-inf directory is the authentication of the TLD file, in fact, we simply delete the Meta-inf directory. You can download the source code for struts, and then regenerate the new Jar file, containing only Java class files, and do not include TLD files



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.