Mohamed Emad Hegab
Mohamed Emad Hegab

Reputation: 2675

Using JSP tags in grails

I'm still new to grails and i kind of stuck in a problem where i can't use the Jsp tags that i put in the /WEB-INF/tags

if i create a tag file called text.tag and put in it the normal HTML input text tag and i go to the GSP and make the taglib < %@ taglib prefix="myTags" tagdir="/WEB-INF/tags"%> then trying to call it by < myTags:text/> it gives me nothing.. in fact if i checked the html source i find < mytags:text/> is there special way for that cause i need that in more sophisticated tags.

Upvotes: 1

Views: 1494

Answers (1)

Aaron Saunders
Aaron Saunders

Reputation: 33345

I would recommend writing the tags as grails tags

http://grails.org/Dynamic%20Tag%20Libraries

those tags are easier to write, but the answer to your original question is also documented at the link above

Upvotes: 3

Related Questions