diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/WEB-INF/web.xml | 10 | ||||
-rw-r--r-- | src/lq/ImportQuotes.java | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/WEB-INF/web.xml b/src/WEB-INF/web.xml index 1fa3dab..bc14f52 100644 --- a/src/WEB-INF/web.xml +++ b/src/WEB-INF/web.xml @@ -37,16 +37,6 @@ </servlet-mapping> <servlet> - <servlet-name>dropdb</servlet-name> - <servlet-class>lq.DropData</servlet-class> - </servlet> - - <servlet-mapping> - <servlet-name>dropdb</servlet-name> - <url-pattern>/dropdb</url-pattern> - </servlet-mapping> - - <servlet> <servlet-name>new_admin</servlet-name> <servlet-class>lq.AddAdmin</servlet-class> </servlet> diff --git a/src/lq/ImportQuotes.java b/src/lq/ImportQuotes.java index db0a633..4016719 100644 --- a/src/lq/ImportQuotes.java +++ b/src/lq/ImportQuotes.java @@ -61,7 +61,7 @@ public class ImportQuotes extends HttpServlet { Quote q = quotes.get(importId); pm.makePersistent(q); for (Vote v : votes) { - if (v.getQuoteId() == q.getId()) { + if (v.getQuoteId().equals(q.getId())) { pm.makePersistent(v); } } |