I'm working on using IDEA for a Struts1.3 project and IDEA was
complaining about my Tiles definition that I had declared:

<plug-in className="org.apache.struts.tiles.TilesPlugin">
                <set-property property="definitions-config"
value="/WEB-INF/tiles-definitions.xml" />
        <set-property property="moduleAware" value="true" />
    </plug-in>

It was complaining about not defining a controller (even though the
code actually worked without it.)

I decided to look at some examples that come with Struts, and to my
surprise, I didn't see a single application example using Tiles??? I
know this is more of a dev list questoin, but in case a dev is reading
this, shouldn't we include a simple Tiles example as an example app
released with Struts 1.x? Before people say the prefer Sitemesh - I
would prefer Sitemesh also IF I could get an answer about something I
found fundamentally wrong with it back when I used to use it. (I'm
going to try to follow up - bottom line is Sitemesh would buffer your
entire page contents into a Buffer(might have been StringBuffer),
which had some huge memory impact on some large pages we had. Even a
bunch of small pages this would be a huge memory footprint having to
buffer all that.)

Anyway, just playing around I figured if I declared...

<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

IDEA didn't complain, but I didn't see anywhere in the docs that
mentioned you should declare a Tiles controller? Maybe I missed it?

I found a Tiles example here that shows a use of declaring a
controller for Tiles
http://www.laliluna.de/first-steps-struts-tiles-tutorial.html

But in the Struts Tiles quick start I didn't see it even mentioned nor
in the user guide
http://struts.apache.org/1.x/struts-tiles/userGuide.html

Also what's a good buffer size to use (the example above uses 4096)?


-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to