This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Init-Parameters in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Init-Parameters in Struts2" Watch "Init-Parameters in Struts2" New topic
Author

Init-Parameters in Struts2

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 189
Hello Everyone,

I want to use the init-parameters in my action class like we do in servlets.
But unlike Struts2 .. servlet provides you getInitParameters(String) in ServletConfig & ServletContext interfaces.
So, how would we get an access to initParameters in Struts2 ?

Thanks!!!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9154
    
    9

Implement ServletContextAware.


[How To Ask Questions On JavaRanch]
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 189
Joe Ess wrote:Implement ServletContextAware.

Thanks Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Init-Parameters in Struts2
 
jQuery in Action, 3rd edition