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 struts doubts 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 "struts doubts" Watch "struts doubts" New topic
Author

struts doubts

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92


1. Can we change the name of struts.xml file

2. Can we change the name of struts-config.xml file
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Have you tried to change it?, have you looked for the changes need to be done in DD for the same ?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
I suppose we can.

But make sure you update the web.xml file too. (struts-config.xml file is mentioned as a <param> parameter to the ActionServlet). So long as you update this location with your change as well, I dont think there should be a problem.
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
Hi,

For example, you want to change xml file name as: sample-config.xml instead of struts-config.xml

So you must edit web.xml file for following way:




Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Guys, let the OP have some RnD, let him put some thought about how the Struts work. Providing the ready made solution just break the thought process.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts doubts
 
Similar Threads
struts-config.xml with a different name
URL Rewriting and Struts
can I change name of the execute() method in struts ?
How to obfuscate a j2ee application
How to submit a form with out a name in javascript