Re: Setup Action without a form

2004-11-28 Thread Dakota Jack
Not sure if by "frontpage" you mean your first page or welcome page as
some say?  Anytime you call an action, you can do whatever you want in
that action prior to completing the action by passing an
ActionForward.  If you need something prior to your action or to any
action, you can use PlugIn.

Jack




On Sun, 28 Nov 2004 23:40:23 +0100, Flemming G. Jensen
<[EMAIL PROTECTED]> wrote:
> 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]
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

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



Re: Setup Action without a form

2004-11-28 Thread klute
Why not use your extend and use your main Action (the
one you map to .do in web.xml) class for that? in
there you can retrieve user session and do anything
with it

hth,
james

 
--- "Flemming G. Jensen"
<[EMAIL PROTECTED]> wrote:

> 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]
> 
> 




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Re: Setup Action without a form

2004-11-28 Thread Eddie Bush
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]


Setup Action without a form

2004-11-28 Thread Flemming G. Jensen
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]