Re: URL redirect in .ftl?
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Tuesday, September 14, 2010, 11:47:02 PM, frabjousB wrote: > When I use the snippet above, I see an IO Exception. > > Any insights as to why this might be the case? I'm afraid you have forgotten to paste the snippet in. Anyway, FreeMarker itself doesn't deal with HTTP, so what you are using is certainly a custom directive or method. Note that redirection is technically impossible if any part of the HTTP response was already sent -- maybe that's the problem. Also note that in MVC templates should not redirect; you should decide do the redirections before calling any templates. > Thanks. -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev