Question: (Cigar Shop) Using JSP & JSTL + Java Servlet Use Cigar.java coded below 1) (createNewCigar.jsp) First page adds the cigar item to the inventory page
(Cigar Shop)
Using JSP & JSTL + Java Servlet
Use Cigar.java coded below
1) (createNewCigar.jsp) First page adds the cigar item to the inventory page (supply.jsp). A form to fill out including Name, Price, Image, and Information box.
2) (supply.jsp) Displays the list of added or created cigars. In addition, a button to create a new cigar.
3) (cart.jsp) Displays the list of cigars in cart. Including date-created, cigar name,image, and information, and a status drop-down option if the order is completed or not.
public class Cigar {
public final int id;
public final String cigarName;
public final String information;
public Cigar (int id, String cigarName, String information) {
this.id = id;
this.cigarName = cigarName;
this.information = information;
}
public int getId() {
return id;
}
public String getName() {
return cigarName;
}
public String getInformation() {
return information;
}
}
{createCigar.jsp}



aar Cigar 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
