You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Andrey Botalov <bo...@gmail.com> on 2012/08/11 23:21:07 UTC

Should JSPs have page directive?

Usually JSPs start from page directive. Do files in usual Tiles 
structure need them? or stuff like encoding or content-type is usually 
setupped in another way in Tiles?

Re: Should JSPs have page directive?

Posted by Mick Semb Wever <mc...@apache.org>.
On Sun, 2012-08-12 at 00:21 +0300, Andrey Botalov wrote:
> Usually JSPs start from page directive. Do files in usual Tiles 
> structure need them? 

Yes, jsps should look like they usually do.
encoding and content-type, if not set by your controller, is only needed
on the initial jsp. All jsps included as tiles attributes can use the
page directive if other of its attributes need to be declared (eg
errorPage).

~mck


-- 
"Friendship with the upright, with the truthful and with the well
informed is beneficial. Friendship with those who flatter, with those
who are meek and who compromise with principles, and with those who talk
cleverly is harmful." Confucius 

| http://github.com/finn-no | http://tech.finn.no |