Dylan Lukes
11/19/2024, 8:52 PMfoo
and bar
that can run as their own applications, but I might want to compose them and mount either at /foo/
and /bar/
such that context-relative URLs work? More broadly, is there a way to have context-relative URLs work properly using embedded Netty (and not Tomcat) at all?
It seems like it is potentially possible with some StandardLinkBuilder.computeContextPath
shenanigans, but it seems like it would be nicer/more elegant to actually provide an IContext
implementation (or adapt the existing servlet one..?)
Essentially what I’d like is that if I have @{/location}
in a template defined in foo
, then when running a standalone application in foo
, it resolved to /location
but when `foo`’s routes are mounted inside another application baz
it resolves to /foo/location
, or something like that.
The Thymeleaf plugin can only be configured once, so perhaps this is just something that needs to be handled with `computeContextPath`…Aleksei Tirman [JB]
11/20/2024, 7:42 AMDylan Lukes
11/20/2024, 10:22 PMIWebExchange
and concomitant interfaces (IWebApplication
, IWebRequest
, IWebPrincipal
etc) to see if it’s doable and if so I’ll publish it.Dylan Lukes
11/20/2024, 10:23 PMIWebSession
and gracefully handling getting resources when not in a servlet context.Dylan Lukes
11/20/2024, 10:23 PMDylan Lukes
11/20/2024, 10:24 PMApplication.rootPath
(which is what gets set when we are in a servlet context to the context path anyhow).Dylan Lukes
11/20/2024, 10:24 PMDylan Lukes
11/21/2024, 6:49 AM