0% found this document useful (0 votes)
20 views

Hibernate&struts 2

This JSP page allows a user to remove a product by entering its ID number. The page displays a form with a text field for the product ID and a submit button labeled "OK". When submitted, the form will send the product ID value to the removeProduct action to delete the product from the database.

Uploaded by

Fabiano Farah
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Hibernate&struts 2

This JSP page allows a user to remove a product by entering its ID number. The page displays a form with a text field for the product ID and a submit button labeled "OK". When submitted, the form will send the product ID value to the removeProduct action to delete the product from the database.

Uploaded by

Fabiano Farah
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

removeProduct.

jsp

<?xml version="1.0" encoding="ISO-8859-1" ?>


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>

<h1>Remover Produtos</h1>

<s:form namespace="/product" action="removeProdutc" method="post">


<s:textfield label="id do produto" name="product.id" />
<s:submit value="OK" />
</s:form>

</body>
</html>

Page 1

You might also like