<%= query %>
<%
if (books.isEmpty()) {
%>
did not select any book.
<%
return;
}
%>
%-- * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. --%> <%-- ==================================================================== --%> <%-- Executes a query which is determined by the request parameter. --%> <%-- Displays the results --%> <%-- ==================================================================== --%> <%@include file="header.jsp"%> <%@page import="openbook.server.OpenBookService"%> <%@page import="openbook.domain.Book"%> <%@page import="openbook.domain.Author"%> <%@page import="openbook.util.JSPUtility"%> <%@page import="java.util.List"%>
toString()
method to display a Criteria query as a string that is quite
similar to an equivalent JPQL string. Similar because Criteria query can
express certain queries that has no equivalent JPQL counterpart.
<%= query %>
<%
if (books.isEmpty()) {
%>
did not select any book.
<%
return;
}
%>