<% String connStr=request.getParameter("connStr"); if (connStr==null) { connStr=(String)session.getValue("connStr"); } else { session.putValue("connStr",connStr); } if (connStr==null) { %> <% } %> <%@ taglib uri="/WEB-INF/sqltaglib.tld" prefix="jml" %> Nested Tag with Query inside Open <% String searchCondition = request.getParameter("cond"); if (searchCondition != null) { %>

Search results for : <%= searchCondition %>



<% } else searchCondition = ""; %> Enter a search condition:

SELECT ename, sal FROM scott.emp <%= (searchCondition.equals("") ? "" : "WHERE " + searchCondition ) %>