AW: Tiles newbie with questions/errors

"Vidakovic Aleksandar" <[email protected]> Thu, 9 Sep 2004 10:46:01 +0200
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
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