⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displayprice.jsp

📁 java web services how to program
💻 JSP
字号:
<?xml version ="1.0 "?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN "
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1.1-strict.dtd "> 
<!-- DisplayPrice.jsp -->

<%-- JSP page settings --%>
<%@ page language = "java" session = "true" %>

<html xmlns = "http://www.w3.org/1999/xhtml">

   <head>
      <title>PriceFinder - Search Results</title>
   </head>

   <body>

      <%
         // get price quote information
         String price = ( String )session.getAttribute( "price" );
         String isbn = ( String )session.getAttribute( "isbn" );
         String storeID = 
            ( String )session.getAttribute( "storeID" );

         String storeDescription = 
            ( String )session.getAttribute( "storeDescription" );

         // get book details information
         String title = ( String )session.getAttribute( "title" );
         String description = 
           ( String )session.getAttribute( "description" );

         String authors = 
            ( String )session.getAttribute( "authors" );

         String coverImage = 
            ( String )session.getAttribute( "coverImageURL" );
      %>

      <center><h1>PriceFinder Results</h1></center>

      <table>
         <tr>
            <td width="350" bgColor="#00CC00"> Book </td>
            <td width="50" bgColor="#00CC00" align="center"> 
               Price 
            </td>
            <td width="100" bgColor="#00CC00" align="center"> 
               Store 
            </td>
            <td width="400" bgColor="#00CC00"> 
               Store Description
            </td>
         </tr>
         <tr>
            <td> 
               <img align="center" src=<%= coverImage %>> <p>
               <b>Title:</b> <%= title %> <br>
               <b>ISBN:</b> <%= isbn %> <br>
               <b>Authors:</b> <%= authors %> <br>
               <p> <%= description %> </p>
            </td>
            <td align="center"> $<%= price %> </td>
            <td align="center"> <%= storeID %> </td>
            <td> <%= storeDescription %> </td>
         </tr>
      </table>
      <form action="/casestudy/Purchase.html">
         <input type="submit" value="Buy!">
      </form>

   </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -