• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deprecated method

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a homePage.jsp in my struts project and it is giving a warning that reads:

Java Compile: The method doStartTag() from the type InsertTag is deprecated.

Can somebody tell me what is wrong?
Thanks.



homepage.jsp fillows:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>



<font color="#c10000"> <html:errors/> </font>

<template:insert template="/jsp/template.jsp" >
<template :put name="title" content="Home" direct="true"/>
<template :put name="header" content="/jsp/header.jsp"/>
<template :put name="content" content="/jsp/homePageContent.jsp"/>
<template :put name="footer" content="/jsp/footer.jsp"/>
</template:insert>

[ September 15, 2006: Message edited by: PradeepPillai Pradeep ]

[ September 15, 2006: Message edited by: PradeepPillai Pradeep ]
[ September 15, 2006: Message edited by: PradeepPillai Pradeep ]
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
as far as i know templates-taglib has been replaced with tiles... use tiles taglib instead, i guess its even the same syntax...

regards,
jan
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. I will try that.
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. I don't see the warning about the deprecated method anymore. But there is an error in the struts-config.xml. It doen't show where the error is. But at the end there is a red error mark. If I hold the mouse pinter there it shows the following:
The content of element type "struts-config" must match "(data source?, form-beans?, global-exceptions?, global-forwards?, action-mappings?, controller?, message-resources*, plug-in*)".

But other than that the appication works fine. But it is just that the error is bothering me. Can somebody please help.
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I delete the following lines from the struts-config.xml I don't see that error.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

Does that give a clue?
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your struts config is not wellformed in the sense of this dtd:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

obviously if you delete the link to the dtd, your ide cannot check the syntax anymore.

:-)

take a valid config and manipulate it step by step to find out where the problem is.

jan
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right.
The error went away when I got rid off
<!-- Global Exceptions -->
<global-exceptions>
</global-exceptions>
from struts-config.
 
reply
    Bookmark Topic Watch Topic
  • New Topic