This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes getInitParameter confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getInitParameter confusion" Watch "getInitParameter confusion" New topic
Author

getInitParameter confusion

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
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.
 
 
subject: getInitParameter confusion
 
Similar Threads
tiles definition error, maping .(dot) error
Element order in DD
MessageResource vs init-parm
TC4-TC5.5 with context-param
web.xml elements