You've got two choices that I see:
1 - Route requests into the controller 2 - Write a filter
You say this is your welcome page. Is this your index? Generally, my index files contain nothing but a redirect to a global forward named "index" that sends the user to an action named /index. That gives you the opportunity to do some processing if you so desire. I typically do this even if I don't want to do extra processing.
Filters are wonderful things. You can observe the request and response in the doFilter method. This can be an ideal spot to do the things you're talking about. I use this personally to acquire details about a user and create a bean I place in session scope that tells me some things about the user.
HTH,
Eddie
----- Original Message ----- From: "Flemming G. Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 4:40 PM
Subject: Setup Action without a form
Hi List,
My project has a frontpage/welcome page. This page contains no forms.
I need some kind of a set up action to fire, when a user accesses this frontpage in order to
initialize a session specific bean. This bean is coded to act as a singleton within a session.
How do I make a "set-up action", which fires before the frontpage is loaded. The project uses
tiles, so I assume that Javascript and some "onload"-function is not appropiate.
Regards
Flemming G. Jensen
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0448-1, 11/26/2004 Tested on: 11/28/2004 4:50:51 PM avast! - copyright (c) 2000-2004 ALWIL Software. http://www.avast.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]