Moved from SourceForge
https://sourceforge.net/tracker/index.php?func=detail&aid=965199&group_id=48726&atid=453977:
The new variable feature for a menu item is great!
Changing the parseString method to retrieve variables
that are not strings would be even better. My specific
example is a menu item that loads an object based on
an ID session attribute. The id attribute is a Long and
thus causes an ClassCastException. I've created a
string representation of this as a workaround, but would
love to see a small change...
Instead of this:
private StringBuffer parseString(String str,
HttpServletRequest request) {
//...
String value = (String) pageContext.findAttribute
(variable);
//...
}
Consider:
private StringBuffer parseString(String str,
HttpServletRequest request) {
//...
String value = String.valueOf(pageContext.findAttribute
(variable));
//...
}
submitted by
jonwilmoth@yahoo.com