%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% Connection con = null;
String url = "jdbc:mysql://localhost:3306/";
Statement st;
try{
Class.forName(driver).newInstance();
con = DriverManager.getConnection(url+db,userName,password);
String city=request.getParameter("city");
String query = "select * from suppliers ";
if(city != null){
query=query+"where city='"+city+"'";
}
st = con.createStatement();
ResultSet rs = st.executeQuery(query);
System.out.println(query);
%>
| Compnay Name |
Address |
<%
while(rs.next()){
%>
|
<%=rs.getString("company_name")%> |
<%=rs.getString("address")%> |
<% }
}catch(Exception e){
e.printStackTrace();
}
%>
Major V-belt Raw materials
- Natural Rubber RMA VI
- Natural Rubber RMA V
- Natural Rubber RMA 1X
- Synthetic Rubber Powerene
- Synthetic Rubber Neoprene / Chloroprene
- Synthetic Rubber Styrene Butadiene Rubber
- Carbon FEF N-550
- Carbon HAF N-330
- Polyester Cord Type 2x5
- Polyester Cord Type 3x6
- Polyester Cord Type 3x9
- Polyester Cord Type 5x12
- Jacketing Fabric
- Rubber Chemicals
- Silica
- Elasto - 710 rp oil
- Petroleum Resin
- Zinc Oxide
<%@include file="footer.jsp"%>