dynamic variable name, cannot assign function to value

Hi code with a dynamic function name The function itself is irrelevant in this case, it performs mathematical tasks @for (int i = 4; i < 31; i++) { <script> var functionName = [@i]; document.getElementById(“[email protected]”).onchange = function() { functionName[@i](); }; document.getElementById(“[email protected]”).onchange = function() { functionName[@i](); }; functionName[@i] = function() { start = document.getElementById(“[email protected]”).value; end =…

Details

spring does not reginase “redirect:/path” returning a simple string

The redirect just returns a simple string. It does not recognise the redirect. The response just print “redirect:/getUser/” Can you help me guys? thanks already. the return should be the list of user with the new user added @Slf4j @RestController public class UserController { @Autowired UserService userService; @GetMapping(value = “/getUser”, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public List<UserDTO>…

Details

How to return value of userPass from array of object using angular 7?

How to access value of userPass from array of object using angular 7? I need to access Property userPass value from array of object I have variable type any his name auth auth have array of object I need to access property value of userpass from json below var auth; auth = [{“userLoginID”:0,”userName”:”test”,”userMail”:”[email protected]”,”userPass”:”12345678″,”fkTeamID”:0 ,”isAdmin”:false,”createdBy”:0,”createdDate”:”0001-01-01T00:00:00″,”isHidden”:false}] I…

Details