Catalog design...
Hi there,
I am currently developing catalog stock jsp for my project... but somehow I am struggling because of lack of experience and other stuff... But I will tell what I am gonna to do...
firstly, I want to make a page that will show criteria option to list a collection of stock... for example name equals to rice, or maybe amount of stock less than 10, and so on...
then in the list of collection stock we can also edit and remove the stock from the database... so for example after staff edit the stock.... the system will redirect back to previous page which is list of stock that staff set the criteria...
and at the moment, I just think to use session variable... but maybe anyone can help me to share any idea? thanks!
[758 byte] By [
-wizz-a] at [2007-11-26 16:31:08]

# 2
Hi jgalacambra,
Yeah... But I have to time to do that... because I only need jsp and servlet to do it roughly.... After I am finished developing this... I have to deploy it to Web Service... So I think better I stick with JSP +servlet (loosely coupled pattern like helper pattern, command pattern, DAo pattern) Thanks very much!
# 3
try to make first a component on your application that is loosely coupled to your app, and is pluggable if you want that (EJB).. btw there are sample applications on struts which could be simple and easy to learn, you can use that
# 4
Hi jgalacambra,Yes... I did that on my servlet implementation... which it has so many design pattern that quite a bit loosely coupled... but the problem is the JSP design like I stated before... How to make the criteria stock page and remembering it? Thanks very much!
# 6
Hi jgalacambra,
well..... try to not consider about database... because i am quite a bit confident to do that my self... try to think about java beans object where there is some property... In my problem is in Stock so there are id, name, price, supplierid... because I am confused in jsp design and mechanism... Thanks very much...
# 8
Hi jgalacambra,
Your code is nice tho! It may solve my other problem... But already look at it... and try to apply it by using jstl n javascript... I think it will work... but I will tell you about that one... But actually the one that I asked is partially not in your example code... maybe I will give you some idea....
Query Catalog Stock
|__| Name : __
|__| Supplier : __
Search
In the left side of text there are box that is check box... if user checked 2 or more it will do and query.... example
|_X_| Name : _Grain__
|__| Supplier :
it will display all stock that has name Grain no matter who is the supplier...
Catalog Stock
_
ID | Name | Supplier| Action
1001 Grain 1 ABCEdit Remove
1002 Grain 2 BCAEdit Remove
then in the catalog stock, the staff can edit or remove it... for example edit
the 1001 stock name into Grain 0
Editing Stock
ID1001
NameGrain 0
SupplierABC
Save ChangeBack
After edit... then the staff should go back to the previous page but it is updated.... so
Catalog Stock
_
ID | Name | Supplier| Action
1001 Grain 3 ABCEdit Remove
1002 Grain 2 BCAEdit Remove
That is what I want.... But I already developed it with no criteria... I just plain display all stock in the database... I am confused how to make the jsp so that after the staff edit stock it will go back to current catalog stock (from our example it is catalog stock that has "grain" name).... Thanks very much!