Code:
<jsp:include flush="true" page="test_include.jsp?a=<%=java_variable%>&b=debasis&c=jana" />
If i pass plain hard coded value then it's getting passed.
What should i be doing?
<jsp:include flush="true" page="test_include.jsp?a=<%=java_variable%>&b=debasis&c=jana" />
<%! private boolean includeIfExisting(String pageName, PageContext pageContext) throws Exception { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); String url = request.getParameter(pageName); if (url != null) { if (Log.isDebug()) Log.debug("before including " + pageName + " =" + url); pageContext.include(url); if (Log.isDebug()) Log.debug("after including " + pageName + " =" + url); return true; } return false; } %> ... <div id=menu> <% includeIfExisting("topMenu", pageContext); %> </div> ...
Comment