• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getInitParameter confusion

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
What is the correct syntax in the struts-config.xml
and the syntax in the Action, to establish/retreive an
initialization parameter for the default application. I have
tried:
web.xml
<context-param>
<param-name>totalSamples</param-name>
<param-value>3</param-value>
</context-param>

action
String textNum =totalSamples =
servlet.getInitParameter("totalSamples");

What is the correct way? tia.
 
reply
    Bookmark Topic Watch Topic
  • New Topic