File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 166
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: 8708
    
    6

Implement ServletContextAware.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Tarun Oohri
Ranch Hand

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

Thanks Joe
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Init-Parameters in Struts2
 
Similar Threads
FileNotFoundException on websphere + struts2
Struts2
migration to Struts2
struts2 package tag namespace
Working with Struts2