File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/main/java/io/shiftleft/controller Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,13 @@ public class SearchController {
2020 @ RequestMapping (value = "/search/user" , method = RequestMethod .GET )
2121 public String doGetSearch (@ RequestParam String foo , HttpServletResponse response , HttpServletRequest request ) {
2222 java .lang .Object message = new Object ();
23- [
24- {
25- "[javax.servlet.http.HttpServletResponse]" : "VALID and ACTIVE" ,
26- "[javax.servlet.http.HttpServletRequest]" : "VALID and ACTIVE" ,
27- "[org.apache.commons.text.StringEscapeUtils]" : "VALID and ACTIVE" ,
28- "[org.slf4j.Logger]" : "VALID and ACTIVE" ,
29- "[org.slf4j.LoggerFactory]" : "VALID and ACTIVE"
23+ try {
24+ ExpressionParser parser = new SpelExpressionParser ();
25+ Expression exp = parser .parseExpression (foo );
26+ message = (Object ) exp .getValue ();
27+ } catch (Exception ex ) {
28+ System .out .println (ex .getMessage ());
3029 }
31- ]
32-
3330 return message .toString ();
3431 }
3532}
You can’t perform that action at this time.
0 commit comments