*
The moose likes Struts and the fly likes Struts Properties File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Properties File" Watch "Struts Properties File" New topic
Author

Struts Properties File

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Guys,

What's the use of the struts.properties file in Struts 2?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Here is an example, fully documented.


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

Joined: Sep 26, 2006
Posts: 9345
    
    2

The link is fine but I wanted to know why we need a struts.properties file when we already have a struts.xml file?
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Well, if you don't like it, try zero configuration.


SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Don Brown
author
Greenhorn

Joined: Apr 22, 2008
Posts: 25
struts.properties is mostly a legacy feature that allows you to specify configuration settings, or as they are called in struts.xml, constants. I believe, at this point, struts.properties is effectively deprecated, however, there are a few bugs open right now of settings that must go into this file and can't go into struts.xml.

Fun fact of the day: you can specify any setting you'd normally put in struts.properties or struts.xml in web.xml as a filter init parameter for the Struts 2 filter.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Properties File
 
Similar Threads
File download
How can I upload a File using Struts
struts blank.war
Regarding Upload a file
/struts2tutorial/struts2tutorial/roseindia/showLogin.action) is not available.