About the first type, there is an example of tag in the struts example. It's
named:

<CheckLogonTag />

and I think it's useful.


-----Mensaje original-----
De: Mark Kaye [mailto:[EMAIL PROTECTED]]
Enviado el: viernes, 30 de agosto de 2002 13:36
Para: Struts Users Mailing List
Asunto: RE: [Core] Setup globals per new session

OK, I've decided to create an IndexAction and bind it to /index, then
add <welcome-file>index.do</welcome-file> to my web.xml.  This appears
to work and will allow me to set up all the session state I need
dependant upon the hostname.  I now have to figure out a clean mechanism
to ensure that the client redirects to the index page if a session does
not already exist.  I am using Velocity/velstruts as my template engine
to make content maintenance easy until we go to completely db driven
content (whereupon I will still use Velocity but the content management
is then taken away from the filesystem and so becomes a completely
different problem).  I can see two options and was wondering if you guys
had a take on it:

1.  Test for a token in every page and redirect to /index if the token
is null.
2.  Make all my content calls a *.do so that I can precede them all with
an Action.

I don't particularly like 1. as it contravenes MVC.  I don't like 2
because it sounds like a lot of work :(.  Anyone got any other
suggestions?

Cheers,

M

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to