Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Tiles

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am trying to integrate tiles in struts2
I have followed the below link
http://struts.apache.org/2.0.11.2/docs/tiles-plugin.html
can any one mention where to include the 3 rd point
i.e.

<result-types>
<result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
</result-types>


I mean in struts.xml or else in the include file of struts.xml
if i include the above code in struts.xml I am getting error like
the contents of the element struts must match package.

and also in the Example given i am getting error
cannot find the descrpition for "http://tiles.apache.org/tags-tiles"
which was mentioned in taglib uri.

Thanks in advance.
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
It should go in struts.xml like this:



Hope this helps!
 
srinivas.b
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Will that tile applicable for whole package?
I am using different package will this tiles reflect to all packages?

also i saw someware, tiles in struts2 is in beta version isit?
 
Raj Bhandari
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That tile will be applicable to only that package where it is in.
If you are using different packages, then the common practice is to have one package contain all the common things (like this result-type info) and let your other packages extend it.

not sure about the beta vesion thing..
reply
    Bookmark Topic Watch Topic
  • New Topic