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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

error while using 2 strut-config files for 2 modules.plz guide

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am a newbie to struts.
i have 2 modules..and one struts-config file for each.But iam getting the error as cant find actionmapping for /confirmAdd(this is the uri). i dont know where is the error..plz guide me
my struts-config file is
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">; <struts-config>
<form-beans> <!--TAXGROUP--> <form-bean name="TaxGroupActionForm" type="com.khodaysstech.kb.tax.taxgroup.TaxGroupActionForm"/>
</form-beans> <global-forwards>
<!--TAXGROUP--> <forward name="RegTaxGroup" path="/TaxGroup/RegTaxGroup.jsp"/> <forward name="ConfirmAddTaxGroup" path="/TaxGroup/ConfirmAddTaxGroup.jsp"/>
</global-forwards>
<action-mappings>
<!--TAX GROUP-->
<action path="/ConfirmAddTaxGroup" type="com.khodaysstech.kb.tax.taxgroup.TaxGroupAction" name="TaxGroupActionForm" scope="session" input="/TaxGroup/RegTaxGroup.jsp" parameter="ConfirmAddTaxGroup"> </action>
</action-mappings>
</struts-config>
and in web.xml the relevant portion is
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param> <init-param> <param-name>config/Tax</param-name> <param-value>/WEB-INF/struts-config-Tax.xml</param-value>
</init-param>

i have my jsp pages in Tax/TaxGroup/ directory and my action uri is
<action forward path="/confirmadd" >
thanks in advance
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"shn ind",
Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy. Please edit your display name to comply with this policy. Thanks in advance and we look forward to seeing you around the Ranch.
 
    Bookmark Topic Watch Topic
  • New Topic