oyarzou / clicl

Automatically exported from code.google.com/p/clicl
Other
0 stars 0 forks source link

Weblog: Error Servlet Proposal #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A possible error handling flow:

Regular flow:
servletA ----(guardX)---->servletB

if the guardX fails, we could deviate the flow like that:

servletA---->(guadX:fail)--->error-handler(next_page = 
servletB)------>[servletA with some error message || some other servlet - e.g. 
login servlet]------->servletB(by getting next_page)

guardX : 
    if check1 fails
        invoke error-handling-servlet (to page)

error-handling-servlet(to_page)
    set-cookie(next-page = to_page)
    invoke some other servlet
        or
    just go back to servletA with some msg

Original issue reported on code.google.com by roxydan...@gmail.com on 28 Sep 2012 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by roxydan...@gmail.com on 28 Sep 2012 at 10:35