• 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

Adding new properties

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to add new properties to my struts action mapping

something of this sort

<action path="/Login" type="com.catcall.action.LoginAction">
<set-property
property="context" value="com.catcall.context.LoginContext" />
<forward name="success" path="index.jsp" />
</action>

please dont mind I am missing the formbean etc...

when i wrote the property tag and started the container... i got

Parsing error processing resource path jndi:/localhost/catcall/WEB-INF/struts-config.xml
java.lang.NoSuchMethodException: Bean has no property named context
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3333)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:3359)
at org.apache.commons.digester.Digester.startElement(Digester.java:1566)

my intention was to map the word context with the class name
so that i can get it from my actionmapping. I think it is trying to set the value in my bean !
I dont want that..
All i want is it should be as a key value pair in my actionmapping !

Can any one help me???

Regards
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic