Home Use Grails Form tag with Controller in Subfolder
Reply: 1

Use Grails Form tag with Controller in Subfolder

Travis Smith
1#
Travis Smith Published in 2017-12-07 23:43:28Z

I'd like to send an email using a controller in a subfolder. I can't seem to find the syntax to accomplish this.

The default would be something like this...

<g:form controller="email" action="sendEmail">
     // form stuff
</g:form>

But my email controller, called Email.groovy, is in controllers/portal/Utils. Maybe this is outside normal convention?

elixir
2#
elixir Reply to 2017-12-08 17:40:06Z

Change your controller class name to EmailController.groovy

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.353051 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO