When freemarker is used with web frameworks (e.g. WebWork, Struts2) there are several variables that are always available.
Currently these are highlighed as "cannot resolve variable..." but it would be good if when using a Struts2 facet these were recognised.
For example for Struts2 (http://struts.apache.org/2.x/docs/freemarker.html
)
| Name |
Description |
| stack |
The value stack itself, useful for calls like ${stack.findString('ognl expr')} |
| action |
The action most recently executed |
| response |
The HttpServletResponse |
| res |
Same as response |
| request |
The HttpServletRequest |
| req |
Same as request |
| session |
The HttpSession |
| application |
The ServletContext |
| base |
The request's context path |