Lets share love

How ? copy url of this blog and share in your social network :) simple

12

Friday, December 9, 2016

How to redirect to previous page in grails from controller

use this redirect(uri: request.getHeader('referer') ...

Wednesday, November 23, 2016

Districts and Zones of Nepal in HTML select

Districts of Nepal in HTML select                             <select class="form-control" name="district" required="required">                                 %{--Mechi--}%                                 <option value="">--Select District--</option>              ...

Friday, October 7, 2016

Upload multiple files in Grails

in controller  def files = request.getFiles("userFiles[]")  for (def file:files ){ //logic for saving file in you storage } in GSP <g:form enctype='multipart/form-data' controller="contacts" action="addEvent" class="form-horizontal" role="form"> <input type='file' name='userFiles[]' multiple /> <input type="submit" class="btn btn-primary" value="Save Event"> </g:form> If any confusions let me know. Email me at aadityabhatta@gmail.c...

Wednesday, March 16, 2016

Error initializing classpath: Unable to start the daemon process. | grails 3

$ grails run-app Error | Error initializing classpath: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.3/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error:...