aspose file tools*
The moose likes Struts and the fly likes Deprecated method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Deprecated method" Watch "Deprecated method" New topic
Author

Deprecated method

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
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 ]
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
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

Joined: Nov 15, 2005
Posts: 184
Thank you. I will try that.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 184
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

Joined: Nov 15, 2005
Posts: 184
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

Joined: Feb 03, 2004
Posts: 456
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

Joined: Nov 15, 2005
Posts: 184
You are right.
The error went away when I got rid off
<!-- Global Exceptions -->
<global-exceptions>
</global-exceptions>
from struts-config.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deprecated method
 
Similar Threads
problem with templetes
Struts- Templates
Struts 1.1 : Template is creating problem
Struts templates
Tracking User's requests.