I have this statement in JSP (it is not my code, I am rewriting someone else code):
String mode = (String)pageContext.findAttribute(IParameterName.POPUPMODE);
POPUPMODE contains value (during debug where I am right now) value: EDIT
In eclipse I used 'File Search' -> 'POPUPMODE' which indeed found another JSP where I found statement (shorted for brevity):
String gnEditPopup = "popWindow('"+RequestUtility.getSiteURL(s1Request)+"?NEXT_PAGE="+I .... .... + IParameterName.POPUPMODE +"=" +I .... user) +"</a>)";
and then in IParameterName java class I found 'POPUPMODE' constant which indeed has a value 'EDIT'.
and I found
<input type="hidden" name="<%=IParameterName.POPUPMODE%>" value="<%=mode%>">
I haven't found explicit 'pageContext.setAttribute'.
Now my question is how certain I can be that I found right place where 'POPUPMODE' attribute was set and what would be more elegant - smarter way to get this instead of searching through files with file search/text search?