This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I have the following String choice = (String)col.get(y); System.out.println("Choice is = " + choice); %> <jsp:include page="table.jsp?ART_TYPE=<%=choice%>" flush="true" /> <% The print line statement prints the appropriate choice however in table.jsp (String)request.getParameter("ART_TYPE"); returns null. However if I place a String in
<jsp:include page="table.jsp?ART_TYPE=Animal" flush="true" /> it works. What am I doing wrong?
Interesting. Most custom actions will throw an error if you try to piece together an attribute value with a partial scriptlet expression like you are doing. <jsp:include> doesn't throw an error, but it obviously isn;t doing what you expect either. You'd be better off forming the while URL in the String (or this might be a good time to investigate the <c:url> tag of the JSTL), along the lines of: