File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts within an existing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts within an existing application" Watch "Struts within an existing application" New topic

Struts within an existing application

Ritu varada
Ranch Hand

Joined: Sep 08, 2004
Posts: 117
I am trying to understand an existing struts application. I have an existing struts application which has its own build.xml file and everything. I wrote a simple jsp file to add to this application. But, when I make the war file and deploy it, it doesn't not recognize the struts tags like <html:form> etc.. But, the other jsp's have their struts tags properly constructed into html. What am I missing ? Any help would be greatly appreciated!!!

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864

What you are most likely missing is the custom tag library declaration as in:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

Consultant, Sima Solutions
Ritu varada
Ranch Hand

Joined: Sep 08, 2004
Posts: 117
Thank you, Merill. That was so DUMB of me!!! If you are new to something, everything looks so daunting!!! Thanks!!1
I agree. Here's the link:
subject: Struts within an existing application