Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2005, 08:49 AM
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Struts Please very very very very very urgent

Hi every body when i am running a struts file i am getting this error
org.apache.jasper.JasperException: /strutsEx/index.jsp(4,0) Attribute name invalid according to the specified TLD..i have placed the tld file struts-html.tld

My code is :

<%@ page language = "java"%>
<%@ taglib uri="myTagStruts-Html" prefix="html" %>
<html>
<body>
<html:form action = "lookup" name = "lookupForm" type = "ch03.lookupForm">
<table>
 <tbody>
    <tr>
      <td>Name:</td>
       <td><html:text property = "symbol" /></td>

            </tr>
            <tr>
    <td colspan = "2" align = "center"><html:submit /></td>
    </tr>
 </tbody>
</table>
</html:form>
</body>
</html>



 
Old June 2nd, 2005, 07:41 AM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I noticed that u r using "myTagStruts-Html" ! Is it your own tag library? If yes have u configured it in Web.xml? if not u need to do it !
Other wise try following solution:
1) Replace taglib declaration as follows
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
2) Notice that "struts-html.tld" file must be in your webapps WEB-INF directory

Hope this will solve ur problem





Similar Threads
Thread Thread Starter Forum Replies Last Post
struts actions package: "struts", other packages? ojasrege Struts 1 July 21st, 2007 06:02 AM
struts ahamad Struts 0 August 26th, 2006 02:31 AM
How to get upgraded from Struts 1.1 to struts 1.2. [email protected] Struts 0 January 3rd, 2006 04:29 AM
struts aytacakin J2EE 1 October 19th, 2005 02:39 AM
Need help with struts pkmleo J2EE 1 February 27th, 2005 06:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.