Re: AW: Tiles newbie with questions/errors
Gene McCullough <[email protected]> Thu, 09 Sep 2004 10:51:23 -0500
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Aleks, thanks for the reply. I'm now having issues with my build not moving my definitions file, tiles-defs.xml into my build directory. I currently have it in my conf/client folder for my project, which is apparently not the proper place. Where should I place this file so that it gets built properly? Thanks again, gene PS Thanks for the email on viewing inputs, it was very helpful also Vidakovic Aleksandar wrote: >Salut Gene, > >I'm using tiles extensively... I think you can't point your keel forwards directly to your tiles definitions... if you have a tiles definition like this: > >[code] > > .... > > <definition name="form.yourformname" > path="/layout/default.jsp"> > <put name="content" > value="/form/default.jsp"/> > </definition> > > .... > >[/code] > >...then you'll need to define a struts forward in your struts config like this > > >[code] > > <global-forwards> > > .... > > <forward name="prefix.form.yourformname" > path="form.yourformname"/> > > .... > > </global-forwards> > >[/code] > >... and now you can use the struts forward name in your models: > >[code] > > <model name="yourmodelname"> > <attribute name="forward" value="prefix.form.yourformname"/> > </model> > >[/code] > >Note: I'm not sure if you can use the same names for struts forwards and tiles definitions. I decided to give them different names... that's why you see this "prefix" for the struts forwards. > >Hope this helps, > >Aleks > >-----Ursprüngliche Nachricht----- >Von: Gene McCullough [mailto:[email protected]] >Gesendet: Donnerstag, 9. September 2004 05:24 >An: Keel Users >Betreff: [Keel User] Tiles newbie with questions/errors > > >Hi, is anyone using tiles and definitions? I've setup a definitions >file, and pointed my struts-config TilesPlugin element to the file. > >However, when I set an action forward to my definition names, Tomcat >gives me a resource not found. If I try using a .forward.name notation >for the tiles definitions, I get a struts error that the forward does >not begin with a "/" > >any help appreciated > >gene >_______________________________________________ >User mailing list >[email protected] >http://lists.keelframework.org/listinfo.cgi/user-keelframework.org >_______________________________________________ >User mailing list >[email protected] >http://lists.keelframework.org/listinfo.cgi/user-keelframework.org > > >