What I am trying to do is add on to the URL for my static HTML page to have request parameters. Subsequently, the page should consume them and call my Java api (in the same module) using the value(s) in the request parameter to dynamically build an HTML table. I have tried to add onto the URL like this via the ResourceHandlerRegistry:
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("status.html")
.addResourceLocations("classpath:/META-INF/resources/");
}
and altered the method to have request parameters:
registry.addResourceHandler("status.html?testparam=")
.addResourceLocations("classpath:/META-INF/resources/");
but get a 404 error when I try to do that.
The goal is to have the page be dynamic so that it gets created for someone based off the value of the request parameter they add. I know that the parameters can be parsed with javascript, it's just a matter of getting them to the page.
It seems to me that this wouldn't require a java code change, but I am not sure of the best way to go about doing this, if it's at all possible.