This is my Spring controller
@RequestMapping(value = "/board/{id}" ,method=RequestMethod.GET)
public String scrumboard(@PathVariable("id") String id) { // if I change string to key error occurs
System.out.println(id); //123
return "html/board";
}
Here is the HTML code.
<a class='scrumboard' href='/board/123'>
Issue:
<a class='board' href='/board'>
By using the statement above, I am able to successfully access the board.jsp page.
<a class='board' href='/board/123'>
When I pass it with an ID, I can retrieve the board.jsp page but CSS and JS files are not being applied. The ID in my code is generated dynamically.