Major Question: URL and HTML encoding
Hi, I'm figuring out how to best use the Spring framework and there's just two things coming up all the time thatdon't seem to be properly addressed by spring or servlet docs.
1) context-relative URLs
2) escaping text for output
Now I can do these in JSTL (not that the doc actually recognized these important tasks, whatsoever) but I'm constructing args for message formatting and wish to accomplish these standard basic tasks programatically; from my Controller or HandlerInterceptor.
QUESTION:
What is the correct/ best way to perform standard encoding on URLs and text for Response output, from a controller or similar?
I've looked at ResponseUtils, 3x TagUtils, HttpServletResponse, HttpServletRequest etc. Now I want a convenient and ready-to-use way to accomplish these basics.
I'll probably write up the results in some form, so I'm trying to get the best/ most correct answers in this area. Thanks in advance!
Cheers,
Thomas
www.powermapjdo.com