]> git.mxchange.org Git - pizzaservice-war.git/log
pizzaservice-war.git
9 years agoAgain lesser scriptlets + added initialization of controller bean
Roland Haeder [Fri, 28 Aug 2015 09:24:10 +0000 (11:24 +0200)]
Again lesser scriptlets + added initialization of controller bean
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMigration to JSF continued:
Roland Haeder [Fri, 28 Aug 2015 09:16:36 +0000 (11:16 +0200)]
Migration to JSF continued:
- used lesser scriptlets where possible, e.g.:
- <%=request.getContextPath()%> can be converted to ${pageContext.request.contextPath}
- after that, set it with <c:set var="basePath" value="${pageContext....}" />
- then you can use it: ${basePath}
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoHuh? Wasn't updated correctly?
Roland Haeder [Fri, 28 Aug 2015 06:38:56 +0000 (08:38 +0200)]
Huh? Wasn't updated correctly?
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 27 Aug 2015 21:52:56 +0000 (23:52 +0200)]
Continued with project:
- added method getProduct()
- added method getLast()
- added method getAll() (again?)
- Used BasketBean instead of Basket
- Yepp, JSPs don't support @Inject and @PostConstruct ... :-(
- added getLastNumRows() which deligates this call to jcore's method
- implemented MiniBasketTag (a bit broken)
- added missing language resourced
- updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoJSPs don't support @Inject and @PostConstruct annotations
Roland Haeder [Thu, 27 Aug 2015 19:39:51 +0000 (21:39 +0200)]
JSPs don't support @Inject and @PostConstruct annotations
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded logger to tag + used "this"
Roland Haeder [Thu, 27 Aug 2015 19:17:48 +0000 (21:17 +0200)]
Added logger to tag + used "this"
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 27 Aug 2015 19:05:37 +0000 (21:05 +0200)]
Continued with project:
- started to refacture all JSPs towards JSFs
- this requires a lot to be rewritten
- moved some classes to better location
- deleted some old JSPs
- moved constants from FooBarConstants class to proper interface
- removed above mentioned classes
- added interface BasketTag
- updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded a lot new stuff:
Roland Haeder [Thu, 27 Aug 2015 13:33:11 +0000 (15:33 +0200)]
Added a lot new stuff:
- New beans added that should get rid of scriptlets (Java code within view)
- New JARs added
- jcore updated

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoBetter compare this way:
Roland Haeder [Thu, 27 Aug 2015 06:52:34 +0000 (08:52 +0200)]
Better compare this way:

if (null == foo)

Otherwise could lead to a bug if you miss only one equal sign

+ updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoRenamed more stuff for fixes + updated jcore
Roland Haeder [Wed, 26 Aug 2015 13:33:52 +0000 (15:33 +0200)]
Renamed more stuff for fixes + updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Wed, 26 Aug 2015 12:39:32 +0000 (14:39 +0200)]
Continued with project:
- Had to renamed id -> itemId and categoryId accordingly to allow databased- baskets
- Implemented almost all methods in basket database frontend class
- Added constants class for above frontend
- Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoRewrote item handling in BaseBasket to a database approach:
Roland Haeder [Wed, 26 Aug 2015 08:24:20 +0000 (10:24 +0200)]
Rewrote item handling in BaseBasket to a database approach:
- added method addItem() for adding items, please make sure to call ...
- added method isItemAdded() which checks if the given item is found by its id number
- added method getItem() to get an item from given Product instance
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded missing diamond type
Roland Haeder [Wed, 26 Aug 2015 07:27:52 +0000 (09:27 +0200)]
Added missing diamond type
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded path for sources (relative). You need to have jsfcore cloned there to have...
Roland Haeder [Tue, 25 Aug 2015 16:10:50 +0000 (18:10 +0200)]
Added path for sources (relative). You need to have jsfcore cloned there to have this working. Else you may accidentally commit your path and then it may get silently merged.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jsfcore.jar
Roland Haeder [Tue, 25 Aug 2015 16:07:10 +0000 (18:07 +0200)]
Updated jsfcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded jsfcore as this project is being converted to a JSF-based application
Roland Haeder [Tue, 25 Aug 2015 16:03:38 +0000 (18:03 +0200)]
Added jsfcore as this project is being converted to a JSF-based application
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded jsfcore as this project is being converted to a JSF-based application
Roland Haeder [Tue, 25 Aug 2015 16:03:12 +0000 (18:03 +0200)]
Added jsfcore as this project is being converted to a JSF-based application
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore
Roland Haeder [Tue, 25 Aug 2015 15:25:39 +0000 (17:25 +0200)]
Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore
Roland Haeder [Tue, 25 Aug 2015 13:31:50 +0000 (15:31 +0200)]
Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMerge remote-tracking branch 'origin/master'
Roland Haeder [Tue, 25 Aug 2015 08:35:23 +0000 (10:35 +0200)]
Merge remote-tracking branch 'origin/master'

9 years agoMinor improvement
Roland Haeder [Mon, 24 Aug 2015 13:28:17 +0000 (15:28 +0200)]
Minor improvement
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUse more generic, because it is cool to do so! ;-)
Roland Haeder [Mon, 24 Aug 2015 13:17:43 +0000 (15:17 +0200)]
Use more generic, because it is cool to do so! ;-)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIgnored for internationalization
Roland Haeder [Mon, 24 Aug 2015 13:12:24 +0000 (15:12 +0200)]
Ignored for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoBetter this way
Roland Haeder [Mon, 24 Aug 2015 13:08:09 +0000 (15:08 +0200)]
Better this way
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded Serializable to BaseBasket + added log4j-web and filter for it (all URLs)
Roland Haeder [Mon, 24 Aug 2015 13:04:30 +0000 (15:04 +0200)]
Added Serializable to BaseBasket + added log4j-web and filter for it (all URLs)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded important TODO to handle insert result
Roland Haeder [Mon, 24 Aug 2015 12:38:11 +0000 (14:38 +0200)]
Added important TODO to handle insert result
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore + added stub method
Roland Haeder [Mon, 24 Aug 2015 11:57:53 +0000 (13:57 +0200)]
Updated jcore + added stub method
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore
Roland Haeder [Mon, 24 Aug 2015 10:53:35 +0000 (12:53 +0200)]
Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoConverted private constructor to public init() method with context, still this cannot...
Roland Haeder [Mon, 24 Aug 2015 09:49:47 +0000 (11:49 +0200)]
Converted private constructor to public init() method with context, still this cannot be converted to a bean as the context is somehow needed. :-(
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMinor improvement
Roland Haeder [Mon, 24 Aug 2015 13:28:17 +0000 (15:28 +0200)]
Minor improvement
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUse more generic, because it is cool to do so! ;-)
Roland Haeder [Mon, 24 Aug 2015 13:17:43 +0000 (15:17 +0200)]
Use more generic, because it is cool to do so! ;-)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIgnored for internationalization
Roland Haeder [Mon, 24 Aug 2015 13:12:24 +0000 (15:12 +0200)]
Ignored for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoBetter this way
Roland Haeder [Mon, 24 Aug 2015 13:08:09 +0000 (15:08 +0200)]
Better this way
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded Serializable to BaseBasket + added log4j-web and filter for it (all URLs)
Roland Haeder [Mon, 24 Aug 2015 13:04:30 +0000 (15:04 +0200)]
Added Serializable to BaseBasket + added log4j-web and filter for it (all URLs)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded important TODO to handle insert result
Roland Haeder [Mon, 24 Aug 2015 12:38:11 +0000 (14:38 +0200)]
Added important TODO to handle insert result
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore + added stub method
Roland Haeder [Mon, 24 Aug 2015 11:57:53 +0000 (13:57 +0200)]
Updated jcore + added stub method
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore
Roland Haeder [Mon, 24 Aug 2015 10:53:35 +0000 (12:53 +0200)]
Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoConverted private constructor to public init() method with context, still this cannot...
Roland Haeder [Mon, 24 Aug 2015 09:49:47 +0000 (11:49 +0200)]
Converted private constructor to public init() method with context, still this cannot be converted to a bean as the context is somehow needed. :-(
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoInitial stuff for Java Server Faces added
Roland Haeder [Mon, 24 Aug 2015 09:24:50 +0000 (11:24 +0200)]
Initial stuff for Java Server Faces added
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore
Roland Haeder [Mon, 24 Aug 2015 06:51:34 +0000 (08:51 +0200)]
Updated jcore
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded @Override + call of default constructor
Roland Haeder [Mon, 24 Aug 2015 06:48:22 +0000 (08:48 +0200)]
Added @Override + call of default constructor
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMoved includes in proper sub folders + renamed them according "access group"
Roland Haeder [Sat, 22 Aug 2015 12:01:11 +0000 (14:01 +0200)]
Moved includes in proper sub folders + renamed them according "access group"
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoThe item bean must go into request scope, else all added items have same amount ...
Roland Haeder [Sat, 22 Aug 2015 11:25:31 +0000 (13:25 +0200)]
The item bean must go into request scope, else all added items have same amount + began to cleanup rudimentary JSPs for a basket-based approach
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project, added more checks for items and handling of already added...
Roland Haeder [Fri, 21 Aug 2015 10:41:41 +0000 (12:41 +0200)]
Continued with project, added more checks for items and handling of already added items
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoDifferent class paths between Linux and Windows systems? :-(
Roland Haeder [Fri, 21 Aug 2015 09:36:41 +0000 (11:36 +0200)]
Different class paths between Linux and Windows systems? :-(
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoFixes for bad HTML with better HTML and CSS
Roland Haeder [Fri, 21 Aug 2015 09:32:12 +0000 (11:32 +0200)]
Fixes for bad HTML with better HTML and CSS
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoupdate jcore.jar ... Yes, maybe a lot more updates now. This way the application...
Roland Haeder [Thu, 20 Aug 2015 12:26:09 +0000 (14:26 +0200)]
update jcore.jar ... Yes, maybe a lot more updates now. This way the application is independent from latest jcore updates, means it is decentralized. If you add jcore as a project dependency, the application becomes directly depending on latest changes in jcore which centralizes it.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoGarr, comments are not supported, but XML specification allows it. :-(
Roland Haeder [Wed, 19 Aug 2015 16:19:31 +0000 (18:19 +0200)]
Garr, comments are not supported, but XML specification allows it. :-(
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome fixes:
Roland Haeder [Wed, 19 Aug 2015 15:38:31 +0000 (17:38 +0200)]
Some fixes:
- fixes for `updated` column as MariaDB doesn't seem to like ON UPDATE CURRENT_TIMESTAMP on one column *and* DEFAULT CURRENT_TIMESTAMP on other column in same table
- Again some properties fixed
- updated 'jcore.jar'

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded mysql driver
Roland Haeder [Wed, 19 Aug 2015 13:40:55 +0000 (15:40 +0200)]
Added mysql driver
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoRemoved notice
Roland Haeder [Wed, 19 Aug 2015 13:09:19 +0000 (15:09 +0200)]
Removed notice
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated 'jcore.jar' + added initialization of backends for local call + caught all...
Roland Haeder [Wed, 19 Aug 2015 12:47:05 +0000 (14:47 +0200)]
Updated 'jcore.jar' + added initialization of backends for local call + caught all exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSimplified it more
Roland Haeder [Wed, 19 Aug 2015 11:39:00 +0000 (13:39 +0200)]
Simplified it more
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoChanged field 'surname' to 'firstName' as surname is an other word for family name...
Roland Haeder [Wed, 19 Aug 2015 10:00:14 +0000 (12:00 +0200)]
Changed field 'surname' to 'firstName' as surname is an other word for family name + updated 'jcore.lib'
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoFixed interface import
Roland Haeder [Wed, 19 Aug 2015 06:50:09 +0000 (08:50 +0200)]
Fixed interface import
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMissed some @Override and added logger + ignored log messages for internationalization
Roland Haeder [Tue, 18 Aug 2015 13:28:23 +0000 (15:28 +0200)]
Missed some @Override and added logger + ignored log messages for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Tue, 18 Aug 2015 13:22:35 +0000 (15:22 +0200)]
Continued with project:
- added filter for handling added basket items
- added frontend class for baskets (not their items) as they may be stored in database for later reusage
- Renamed "FooHttpFilter" to "FooServletFilter" as they actually are servlet filters
- Other minor improvements
- BaseServletFilter is now abstract and implements Filter, so all filters extendending (and re-implementing Filter) must implement at least doFilter(). Please call chain.doFilter() in your own filter
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoOrganized members
Roland Haeder [Tue, 18 Aug 2015 12:58:26 +0000 (14:58 +0200)]
Organized members
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoYou need to have jcore cloned in same upper directory as this project has been cloned to.
Roland Haeder [Tue, 18 Aug 2015 09:48:04 +0000 (11:48 +0200)]
You need to have jcore cloned in same upper directory as this project has been cloned to.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Tue, 18 Aug 2015 09:45:36 +0000 (11:45 +0200)]
Continued with project:
- no flush, maybe better?
- space removed
- Renamed variable "value" to "customerGender" for making it more clear
- Some more debug logging
- Added missing error handler (but commented out for developing)
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore.jar
Roland Haeder [Tue, 18 Aug 2015 06:51:04 +0000 (08:51 +0200)]
Updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSorted members
Roland Haeder [Tue, 18 Aug 2015 06:46:47 +0000 (08:46 +0200)]
Sorted members
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded footer for admin area + error include file "direct_call.jsp"
Roland Haeder [Tue, 18 Aug 2015 06:25:13 +0000 (08:25 +0200)]
Added footer for admin area + error include file "direct_call.jsp"
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUpdated jcore.jar
Roland Haeder [Tue, 18 Aug 2015 05:04:13 +0000 (07:04 +0200)]
Updated jcore.jar
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Tue, 18 Aug 2015 04:59:47 +0000 (06:59 +0200)]
Continued with project:
- started to rewrite to a more flexible solution: a general item basket that will accept OrderableItem instances
- added parameter "type" for upcoming basket feature
- renamed "choose" to "id", this old thing will be completely rewritten
- added new script "add_item.jsp"
- added some more CSS for footer navigation
- Accessing the JSPs directly may not be a good idea, better is to have aliases (more about that later)
- added generic interface OrderableItem and BasketItem class (unfinished)
- added links in footer.jsp for new pages "privacy.jsp", "terms.jsp" and "imprint.jsp"
- using JSTL "fmt" for formatting currency values
- added project's license "GPL3"
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded div for header
Roland Haeder [Mon, 17 Aug 2015 16:45:59 +0000 (18:45 +0200)]
Added div for header
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoDecentralized jcore.
Roland Haeder [Mon, 17 Aug 2015 15:36:50 +0000 (17:36 +0200)]
Decentralized jcore.

Signed-off-by: Roland Häder <roland@mxchange.org>
9 years agoContinued with project:
Roland Haeder [Mon, 17 Aug 2015 13:45:28 +0000 (15:45 +0200)]
Continued with project:
- added new pages "privacy.jsp" and "terms.jsp"
- form "register.jsp" is basicly finished
- added more CSS classes
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded "lost_passwd.jsp" + fixed links to it
Roland Haeder [Mon, 17 Aug 2015 12:52:57 +0000 (14:52 +0200)]
Added "lost_passwd.jsp" + fixed links to it
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome fixes for design
Roland Haeder [Mon, 17 Aug 2015 12:22:11 +0000 (14:22 +0200)]
Some fixes for design
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoNo need for class here
Roland Haeder [Mon, 17 Aug 2015 11:27:42 +0000 (13:27 +0200)]
No need for class here
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome cleanups
Roland Haeder [Mon, 17 Aug 2015 11:00:59 +0000 (13:00 +0200)]
Some cleanups
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoReplace multiple-added strings/objects into MessageFormat.format() call to reduce...
Roland Haeder [Mon, 17 Aug 2015 07:30:17 +0000 (09:30 +0200)]
Replace multiple-added strings/objects into MessageFormat.format() call to reduce string objects in string pool + ignored them for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoSome minor fixes
Roland Haeder [Sat, 15 Aug 2015 11:57:20 +0000 (13:57 +0200)]
Some minor fixes
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Sat, 15 Aug 2015 11:24:47 +0000 (13:24 +0200)]
Continued with project:
- added doAdminHandleCategoryForms() and doAdminHandleProductForms()
- isCategoryTitleUsed() and isProductTitleUsed() are now private and continue to throw all "low-level" exceptions and never a ServletException as this is thrown by publicc access methods (which servets may invoke)

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Sat, 15 Aug 2015 10:25:32 +0000 (12:25 +0200)]
Continued with project:
- added showing product's category in admin area
- added method getPrintableProduktCategory() for this
- fixed logger XML file
- added method getCategory() of given Product instance to category database frontend
- added method isProductTitleUsed() to pre-check if the title has been used. This avoids an exception thrown in doAdminAddProduct() which expects that the product's title is not yet used.
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoUse Float, not float
Roland Haeder [Fri, 14 Aug 2015 22:50:46 +0000 (00:50 +0200)]
Use Float, not float
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agotoStoreable() is now "basicly finished"
Roland Haeder [Fri, 14 Aug 2015 22:47:29 +0000 (00:47 +0200)]
toStoreable() is now "basicly finished"
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoImplemented missing method getIdName()
Roland Haeder [Fri, 14 Aug 2015 21:25:36 +0000 (23:25 +0200)]
Implemented missing method getIdName()
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIds must be parsed as Long, not Integer ...
Roland Haeder [Fri, 14 Aug 2015 20:27:24 +0000 (22:27 +0200)]
Ids must be parsed as Long, not Integer ...
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoMethod toStoreable() is now "basicly finished".
Roland Haeder [Fri, 14 Aug 2015 20:20:16 +0000 (22:20 +0200)]
Method toStoreable() is now "basicly finished".
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exception (yes, again)Changed parameter type from String to Object...
Roland Haeder [Fri, 14 Aug 2015 19:51:00 +0000 (21:51 +0200)]
Added more thrown exception (yes, again)Changed parameter type from String to Object + implemented one setter
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions
Roland Haeder [Fri, 14 Aug 2015 19:45:54 +0000 (21:45 +0200)]
Added more thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions
Roland Haeder [Fri, 14 Aug 2015 19:42:00 +0000 (21:42 +0200)]
Added more thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAlso added here missing thrown exceptions
Roland Haeder [Fri, 14 Aug 2015 19:35:57 +0000 (21:35 +0200)]
Also added here missing thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded missing thrown exceptions
Roland Haeder [Fri, 14 Aug 2015 19:23:32 +0000 (21:23 +0200)]
Added missing thrown exceptions
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 18:36:36 +0000 (20:36 +0200)]
Continued with project:
- moved PizzaProduct to own package and created BaseProduct from it. This class and interface Product are possible candidates for jcore
- Added Apache commons jar (for new jcore changes for having a non-proprietary implementation of BASE64 encoding and decoding
- Added newly thrown exception CorruptedDatabaseFileException
- Ignored some strings for internationalization
- Id needs to be initialized with zero, not null
- Method toStoreable() has been fully rewritten to a more flexible solution
- Removed some deprecated/unused methods
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 13:39:12 +0000 (15:39 +0200)]
Continued with project:
- added install.sql
- Renamed method getProducts() to getAvailableProducts()
- Added method getAllProducts()
- Renamed parseLineToCategory() and parseLineToProduct() to parseLine()
- All products are now comparable + compareTo() implemented in BaseProduct
- Added column "id" for product database
- Implemented getPrintableProduktAvailability() very rudely
- Ids must be parsed as Long, not Integer, as the BASE64-encoded database backend does parse it so
- Added "available" to HTML form and all relevant methods
- Added method decodedTitle() to have a UTF8-decoded title
- Constructor PizzaProduct (id, title, price) is now deprecated
- Some other cleanups
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 12:46:08 +0000 (14:46 +0200)]
Continued with project:
- Used "category" instead of "id" for category selection box
- Added method addProduct()
- Added method isProductTitleUsed()
- Added new exception ProductTitleAlreadyUsedException
- Changed parameter type of "parent" to Integer as it can be done (better type-hint)
- Rewrote addCategory() a bit for this
- Added database columns "category", "price" and "title" for products
- Renamed method isCategoryUsed() to isCategoryTitleUsed()
- Deleted do_products.jsp
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded decodedTitle() which decodes the UTF-8 + added new exception
Roland Haeder [Fri, 14 Aug 2015 11:59:23 +0000 (13:59 +0200)]
Added decodedTitle() which decodes the UTF-8 + added new exception
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 11:22:29 +0000 (13:22 +0200)]
Continued with project:
- Added parent_category_selection_box.jsp which holds the selection box for parent categories
- Added method generateLinkForParent()
- Fixed wrong use of COLUMN_PARENT for title
- Catched newly thrown CategoryTitleAlreadyUsedException

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 10:05:07 +0000 (12:05 +0200)]
Continued with project:
- Added new class BaseCategory and ProductCategory
- Implemented newly required method emptyStringToNull() in category database frontend
- Half-implemented newly required method emptyStringToNull() in product database frontend (unfinished)
- Category is now Comparable and asks for compareTo() method as well
- Added method addCategory() to database frontend
- doAdminAddCategory() should be "basicly finished" by now
- Better implement generateLinkForParent() to generate a HTML link for parent id. This links to product.jsp?category_id=x
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Fri, 14 Aug 2015 06:14:47 +0000 (08:14 +0200)]
Continued with project:
- Added method isCategoryUsed() and implemented it rudely in frontend, too.
- doAdminAddCategory() does now check request parameter if they exist and are not empty

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 13 Aug 2015 11:42:33 +0000 (13:42 +0200)]
Continued with project:
- added doAdminAddCategory() and doAdminAddProduct()
- it is getParameter() for HttpServletRequest instances to get the actual POST/GET *parameter*
- Ignored more strings for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 13 Aug 2015 11:21:21 +0000 (13:21 +0200)]
Continued with project:
- added placeholder class for category datbase constants
- added stub JSPs for handling category and product requests in admin area
- improved category handling a little more
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 13 Aug 2015 10:51:46 +0000 (12:51 +0200)]
Continued with project:
- added thrown exceptions
- Very rude implementation of getResultFromSet()
- getProducts() and getCategories() now only throw ServletException
- The above change allows to remove the try-catch block
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 13 Aug 2015 08:41:26 +0000 (10:41 +0200)]
Continued with project:
- Added new frontend class and interface for categories + rewritings
- Used <c:forEach> instead of for-loop where possible, else a while() loop has to be used with iterator.hasNext() and iterator.next()

Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoIntroduced markAllChoosenProductsAsOrdered() and used forEach from taglib
Roland Haeder [Thu, 13 Aug 2015 08:14:56 +0000 (10:14 +0200)]
Introduced markAllChoosenProductsAsOrdered() and used forEach from taglib
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoAdded more thrown exceptions + implemented getProducts()
Roland Haeder [Thu, 13 Aug 2015 07:56:33 +0000 (09:56 +0200)]
Added more thrown exceptions + implemented getProducts()
Signed-off-by:Roland Häder <roland@mxchange.org>

9 years agoContinued with project:
Roland Haeder [Thu, 13 Aug 2015 07:37:43 +0000 (09:37 +0200)]
Continued with project:
- Added menu item (and JSP) for categories
- Renamed JSP to get rid of plural
- Started with refactoring of application, the whole product (and now category) list would be kept in RAM which is far to much wasting
- Got rid of getUnmarkedProducts(), better use generic getProducts()
Signed-off-by:Roland Häder <roland@mxchange.org>