Yeah,
I 'd tried group all controllers into a folder. But when i created many
flows (in my mind), the controller "tree" became very "tall". It looks like
as following:
/Controller
|__________ /Login (Controller)
|__________/ Process1 (Controller)
|__________/ Process2 ....
........
|__________/ Process 50
It involves a lot of file I/O work during runtime. Would be any more
efficient way or is it possible to just put all controllers into one folder
"e.g. /Controller" and rename Login controller as LoginController. (I tried
to do that, it doesnt work, i guess maybe i didnt find a correct way to do
that)
BTW, thanks for your suggestion on the Login module, Exception cost is
expensive in Java, if the login page is redirected cuz of the exception
handling, I 'd rather just use redirect or forward.
Regards
Li
On 5/20/06, Thomas Cook <[EMAIL PROTECTED]> wrote:
Your observation that each folder typically has a controller is
correct. In page flow thinking, a "section" is a folder.
On 5/19/06, Li <[EMAIL PROTECTED]> wrote:
> Hi, thanks for replying,
>
> I added any a filter into web.xml:
> <filter-mapping>
> <filter-name>PageFlowForbiddenFilter</filter-name>
> <url-pattern>*.jsp</url-pattern>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>INCLUDE</dispatcher>
> </filter-mapping>
>
> It works fine.
>
> Is it a must that every single functional folder should have its own
> controller?
> such like: /login --> Controller for login process
> /profile --> Controller for profile
create->confirm->submit
> process ...
>
> Is it possible to just have one controller which controls all processes
> section by section?
>
> On 5/19/06, AndreasWuest <[EMAIL PROTECTED]> wrote:
> >
> > In order to achieve that, you have to put your jsp pages under the
> > WEB-INF directory. This works at
> > least for "normal" web application using struts. don't know if this
> > works with beehive as well, but i think so.
> >
> > regards,
> > Andreas
> >
> > > Hi all,
> > >
> > > Any idea on preventing direct access to page, say, only allow "
abc.do"
> > > but
> > > not "a/b/c/abc.jsp"?
> > >
> > > Regards
> > >
> >
> >
> >
>
>
> --
> =====================================
> The world will be ended if love is everywhere.
> ---- Shawzi
>
>
--
=====================================
The world will be ended if love is everywhere.
---- Shawzi