• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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
 
We don't have time for this. We've gotta save the moon! Or check this out:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic