This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts within an existing application" Watch "Struts within an existing application" New topic
Author

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!!!


SCJP,SCWCD(1.4)
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Ritu,

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" %>


Merrill
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts within an existing application
 
Similar Threads
Enabling/Installing Struts Tiles
Migration to RAD 7.5 - Unable to Find Struts Tag Handler Classes
Struts Layout properties
JSP without scriptlets
JSP error