html select multiple, how to preselect with anugularjs while using jstl
There is a problem when you mix angularjs with JSTL. JSTL provides you complete HTML from the server side once whereas angularjs is good with ajax model and getting data in JSON format. There are ways to pre-set the ng-model with ng-init as shown below < label > Username </ label > < input id = "username" name = "username" type = "text" disabled = "disabled" ng-model = "user.username" ng-init = "user.username='Vaibhav'" required > The above code will create following visual. We can the same thing with HTML select tag (no multiple) like following with JSTL < label > Role* </ label > < select id = "role" ng-multiple = "false" name = "role" ng-init = "user.role='ADMIN...