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 Getting Configuration Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting Configuration Files" Watch "Getting Configuration Files" New topic
Author

Getting Configuration Files

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I am new to struts...

I want to use Struts 1.3 & I downloaded the Struts (1.3.10) package.
In lib directory I got all jar files to include.

But how to get the struts-config.xml, validator.xml & tiles-defs.xml.

I am using Eclipse v.3.3.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ramnna jain wrote:
But how to get the struts-config.xml, validator.xml & tiles-defs.xml.

If you downloaded the full setup of Struts, then you will find "struts-1.3.10-apps" folder, which contain one "struts-blank.war" file, unzipped, it and you will get base folder structure for struts project as well as required files.

But You wouldn't find a tiles.xml, for that you have to configure yourself, Follow this tutorial
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

Sagar! I downloaded the struts-1.3.10-all.zip from: http://struts.apache.org/download.cgi

Neither it contains struts-1.3.10-apps folder nor have struts-blank.war.

It is a complete bundle download.

Please help...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ramnna jain wrote:
Neither it contains struts-1.3.10-apps folder nor have struts-blank.war.

Not exactly the same folder name, which I had given, but similar to that.

Look for something like this,

"\struts-1.3.9\struts-1.3.9-apps\struts-1.3.9\apps\struts-blank-1.3.9.war"

[I'm using Struts 1.3.9 distro version]
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

Thank you Sagar,

I get those xml files in the specified path:

struts-1.3.10-all\struts-1.3.10\src\apps\blank\src\main\webapp\WEB-INF

thank you...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ramnna jain wrote:
struts-1.3.10-all\struts-1.3.10\src\apps\blank\src\main\webapp\WEB-INF

Such a weird change in paths from 1.3.9 to 1.3.10
ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

I am again in one new search,

could you help me to find these tld files:

struts-bean.tld
struts-html.tld
struts-logic.tld
struts-nested.tld
struts-tiles.tld

tiles-defs.xml
c.tld

are those files come with struts jar files?
do we need to include those exclusively along with the web.xml & struts-config.xml?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ramnna jain wrote:
struts-bean.tld
struts-html.tld
struts-logic.tld
struts-nested.tld
struts-tiles.tld

No need to configure this, Just use them by declaring,

in JSP page. I don't know about tiles, never used, Isn't that tutorial helpful.

ramnna jain
Ranch Hand

Joined: Mar 16, 2009
Posts: 129

Thank you Sagar for your prompt help...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

ramnna jain wrote:Thank you Sagar for your prompt help...

You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Configuration Files
 
Similar Threads
specifying different resource bundle in validation.xml
where is c.tld and sql.tld
Basic jars and Plugins to run struts application
want to know about struts api and tld files
which are the main packages to import while writing a strut app?