now, i want to build a component for this scenario, what design pattern and perhaps steps you recommend?
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
i design every page using DIFFERENT action paths(href) but SAME action type(actual class for action), i design this because i want every page make sure cross over the component which i planning to do ...
is there anyone have comments and advice of these ? thank you very much on time !!
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
2)form data accepted and save into DB (believe have to apply design pattern here..what design pattern recommend ?)
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
2)form data accepted and save into DB (believe have to apply design pattern here..what design pattern recommend ?)
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
meaning say i have 10 pages, so i have 10 action path in each page(href=/action/page1,href=/action/page2 ..), but inside struts-config.xml, i put all action path pointing to my own defined action type = controller.action.product.ForAllPageAction,
this ForAllPageAction class (what pattern i should apply?)is actually doing all the function by import other class like store DB, check user clicked form, set message..and so on
would it be good by doing this ?
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Originally posted by Alvin chew:
ok..nicholas...i will check out on Actiondispatcher ...thank you !
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
What do you mean by that?Originally posted by Alvin chew:
is pattern able to apply any scenario ?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
No. Patterns are almost explicitly applicable within a certain context where certain forces are in effect. Take a look at the Core J2EE Patterns online catalog to get an idea of how each pattern has a specific type of situation where they are most useful.Originally posted by Alvin chew:
meaning is pattern able to apply to everywhere, every scenario means every situation/cases ?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
pattern still require further research for improvement and perhaps more pattern come out in future ?
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Originally posted by Nicholas Cheung:
As I said, different systems will need to have its own study.
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
That's what Computer Scientists do in the research lab.... I.T. people are waiting for the result of research of Computer Scientists and apply it to the real world project with a better solution....
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Originally posted by Ko Ko Naing:
That's what Computer Scientists do in the research lab.... I.T. people are waiting for the result of research of Computer Scientists and apply it to the real world project with a better solution....
Originally posted by Ali Pope:
Patterns are not born inside a lab. On the contrary the guys with very large experience are in fact the parents.
./pope
[ September 10, 2004: Message edited by: Ali Pope ]
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0