Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

Re: [groovy-user] embed groovy IN a jsp?

Stand Trooper

2008-08-23

Replies: Find Java Web Hosting

Author LoginPost Reply
You could also write a simple Tag for your JSPs that you write your Groovy inside of... that Tag Body is taken and run through the Groovy evaluations to return what you expect.

There are other things that have come across GSPs (which the standalone is 4 years old now, since it's been merged with Grails), Grapplet -- a way to do <script src="text/Groovy"> like things, and Groovy Templates which isn't exactly what you're wanting, and Groovlets.

Are you just wanting to write Groovy inside of scriptlet tags like <%= false ?: "was false" %> or more along the lines of GvTags, or like freemarker?

thx

timo

On Fri, Aug 22, 2008 at 6:56 AM, Graeme Rocher <graeme@g2one.com> wrote:
Maybe you want to look at http://www.gvtags.org/

Cheers

On Fri, Aug 22, 2008 at 10:06 AM, krobblestopper <savoysavvy@gmail.com> wrote:
>
> Yeah, that's what the big boys say. I've been coding Struts and Spring MVC
> for years, so I know the mantra. Only thing is, rules are meant to broken.
> So for the purpose of this question, I don't really care who thinks it
> shouldn't be done, I just want to know if anybody knows how to do it.
>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.