Thursday, 18 April 2013

Jquery Basic

Aryantech Pune
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>AryanTech</title>
</head>
<body>
  <h2 align="center">Selected Product Details</h2>
  <hr width=300 >
 <%
  String [] dropdownValues = request.getParameterValues("dropdown");
  int count=1;
  if(dropdownValues!=null){
 %>
  <table align="center" >
    <tr>
     <th>S.No.</th>
     <th>Product Name</th>
    </tr>  
 <%
   for(int i = 0; i < dropdownValues.length; i++){
if(!dropdownValues[i].equals("All")){  
 %>
   <tr>
     <td>
        <% out.println(""+count+" . "); %>
     </td>
     <td>
        <% out.println(dropdownValues[i]); %>
     </td>
   </tr>
 <%
    count++;
  }
}
 %>
   </table>
Best Traning Institute .
 <% }else{ %>
    <table align="center" >
      <tr>
        <td><% out.println("You not select any Product."); %></td>
      </tr>
    </table>
 <% } %>
</body>
</html>

No comments:

Post a Comment