test
Форк от lirfrnk/test
162 строки · 5.1 Кб
1<?xml version="1.0" encoding="UTF-8"?>
2<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"3xmlns:web="http://xmlns.jcp.org/xml/ns/javaee"4xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">5<servlet>6<servlet-name>SellerLoginServlet</servlet-name>7<servlet-class>servlets.SellerLoginServlet</servlet-class>8</servlet>9<servlet-mapping>10<servlet-name>SellerLoginServlet</servlet-name>11<url-pattern>/adminlog</url-pattern>12</servlet-mapping>13<servlet>14<servlet-name>StoreBookServlet</servlet-name>15<servlet-class>servlets.StoreBookServlet</servlet-class>16</servlet>17<servlet-mapping>18<servlet-name>StoreBookServlet</servlet-name>19<url-pattern>/storebooks</url-pattern>20</servlet-mapping>21<servlet>22<servlet-name>UpdateBookServlet</servlet-name>23<servlet-class>servlets.UpdateBookServlet</servlet-class>24</servlet>25<servlet-mapping>26<servlet-name>UpdateBookServlet</servlet-name>27<url-pattern>/updatebook</url-pattern>28</servlet-mapping>29<servlet>30<servlet-name>CustomerLoginServlet</servlet-name>31<servlet-class>servlets.CustomerLoginServlet</servlet-class>32</servlet>33<servlet-mapping>34<servlet-name>CustomerLoginServlet</servlet-name>35<url-pattern>/userlog</url-pattern>36</servlet-mapping>37<servlet>38<servlet-name>AboutServlet</servlet-name>39<servlet-class>servlets.AboutServlet</servlet-class>40</servlet>41<servlet-mapping>42<servlet-name>AboutServlet</servlet-name>43<url-pattern>/about</url-pattern>44</servlet-mapping>45<servlet>46<servlet-name>LogoutServlet</servlet-name>47<servlet-class>servlets.LogoutServlet</servlet-class>48</servlet>49<servlet-mapping>50<servlet-name>LogoutServlet</servlet-name>51<url-pattern>/logout</url-pattern>52</servlet-mapping>53<servlet>54<servlet-name>CustomerRegisterServlet</servlet-name>55<servlet-class>servlets.CustomerRegisterServlet</servlet-class>56</servlet>57<servlet-mapping>58<servlet-name>CustomerRegisterServlet</servlet-name>59<url-pattern>/userreg</url-pattern>60</servlet-mapping>61<servlet>62<servlet-name>RemoveBookServlet</servlet-name>63<servlet-class>servlets.RemoveBookServlet</servlet-class>64</servlet>65<servlet-mapping>66<servlet-name>RemoveBookServlet</servlet-name>67<url-pattern>/removebook</url-pattern>68</servlet-mapping>69<servlet>70<servlet-name>AddBookServlet</servlet-name>71<servlet-class>servlets.AddBookServlet</servlet-class>72</servlet>73<servlet-mapping>74<servlet-name>AddBookServlet</servlet-name>75<url-pattern>/addbook</url-pattern>76</servlet-mapping>77<servlet>78<servlet-name>ViewBookServlet</servlet-name>79<servlet-class>servlets.ViewBookServlet</servlet-class>80</servlet>81<servlet-mapping>82<servlet-name>ViewBookServlet</servlet-name>83<url-pattern>/viewbook</url-pattern>84</servlet-mapping>85<servlet>86<servlet-name>CartServlet</servlet-name>87<servlet-class>servlets.CartServlet</servlet-class>88</servlet>89<servlet-mapping>90<servlet-name>CartServlet</servlet-name>91<url-pattern>/cart</url-pattern>92</servlet-mapping>93<servlet>94<servlet-name>BuyBooksServlet</servlet-name>95<servlet-class>servlets.BuyBooksServlet</servlet-class>96</servlet>97<servlet-mapping>98<servlet-name>BuyBooksServlet</servlet-name>99<url-pattern>/buybook</url-pattern>100</servlet-mapping>101<servlet>102<servlet-name>ReceiptServlet</servlet-name>103<servlet-class>servlets.ReceiptServlet</servlet-class>104</servlet>105<servlet-mapping>106<servlet-name>ReceiptServlet</servlet-name>107<url-pattern>/buys</url-pattern>108</servlet-mapping>109<servlet>110<servlet-name>CheckoutServlet</servlet-name>111<servlet-class>servlets.CheckoutServlet</servlet-class>112</servlet>113<servlet-mapping>114<servlet-name>CheckoutServlet</servlet-name>115<url-pattern>/checkout</url-pattern>116</servlet-mapping>117<servlet>118<servlet-name>ProcessPaymentServlet</servlet-name>119<servlet-class>servlets.ProcessPaymentServlet</servlet-class>120</servlet>121<servlet-mapping>122<servlet-name>ProcessPaymentServlet</servlet-name>123<url-pattern>/pay</url-pattern>124</servlet-mapping>125
126<!-- Error Handlers -->127<servlet>128<servlet-name>ErrorHandlerServlet</servlet-name>129<servlet-class>servlets.ErrorHandlerServlet</servlet-class>130</servlet>131<servlet-mapping>132<servlet-name>ErrorHandlerServlet</servlet-name>133<url-pattern>/error</url-pattern>134</servlet-mapping>135<!-- error-code related error pages -->136<error-page>137<error-code>404</error-code>138<location>/error</location>139</error-page>140<error-page>141<error-code>405</error-code>142<location>/error</location>143</error-page>144
145<!-- exception-type related error pages -->146<error-page>147<exception-type>148javax.servlet.ServletException
149</exception-type>150<location>/error</location>151</error-page>152<!-- exception-type related all errors -->153<error-page>154<exception-type>java.lang.Throwable</exception-type>155<location>/error</location>156</error-page>157
158<!-- welcome file -->159<welcome-file-list>160<welcome-file>index.html</welcome-file>161</welcome-file-list>162</web-app>