This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Issue with Struts Global Forward

Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am having problem in creating a global forward in struts in 1.3.8. When I add the global forward tag I get an error in Tomcat during startup. I checked the spelling and it perfectly matches. When I remove the global forward tag, I do NOT get this error. I have not had a chance to work in struts in last 2 years, so can someone please let me know what is the mistake in this? Thanks in advance for your response.


Nov 12, 2009 7:41:37 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 35 column 17: The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

My struts-config.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"


<forward name="welcome" path="/pages/Welcome.jsp"/>


<form-bean name="selectBeerForm" type="com.example.web.BeerSelectForm"/>
<form-bean name="logonForm" type="com.example.web.LogonForm"/>



<action path="/SelectBeer"
scope="request" name="selectBeerForm"
validate="true" input="/form.jsp">

<forward name="show_results" path="/result.jsp" />



<message-resources parameter="ApplicationResources"/>


Posts: 67418
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
yogi reddy
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear - I am new to the forum and this was my first post. I will make sure I post it in the right section of the forum. Also I have found the problem. The order in the struts config is what caused the problem. I have placed the global forwards at the bottom of my config file and it resolved the issue.
What are you doing? You are supposed to be reading this tiny ad!
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic