• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting Configuration Files

 
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 129
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Sagar for your prompt help...
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


You're welcome
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic