Thanks Kris,
That worked beautifully, I've been pulling my hair over that one for 3 days
now
Thanks again
Joanne Corless
CSC Computer Sciences Limited
( Office +44 (0)1772 318025
( Mobile +44 (0)7767 656588
* email [EMAIL PROTECTED]
Based at: CSC, Alliance House, Library Road, Chorley,
]
cc:
13/10/03 17:12 Subject: Best Practice Question re:
html links
]
cc:
13/10/03 17:12 Subject: Best Practice
Question re: html links
Hi,
I am implementing a struts application with menu lists which need to be
dynamic based on a user role hierarchy, i.e not a simple user role = menu
list. Therefore I cannot set up menu lists in the tile definitions file as
they are
I hold the menu list in a database which I am accessing via an
I have a login page with a link with forgot password? for users to
retrieve the passwords to their email account in case they forgot it.
It's pretty trivial but still using struts what is the best practice?
Should the link inside the login page point to the ForgotPassword.jsp or
to a
According to MVC pattern ,alway link to action, not to JSP. This way you controler
always knows what the user is doing,
and you can add some logic if needed.
Using a request parameter to addapt action behaviour is a common Struts use (take a
look at DispatchAction).
Nico.
I have a login
is called that the action is going to do real action.
Erez
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 2:24 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question
According to MVC pattern ,alway link to action
best practice question
According to MVC pattern ,alway link to action, not to JSP. This way you
controler always knows what the user is doing,
and you can add some logic if needed.
Using a request parameter to addapt action behaviour is a common Struts
use (take a look at DispatchAction
: actions best practice question
According to MVC pattern ,alway link to action, not to JSP. This way
you
controler always knows what the user is doing,
and you can add some logic if needed.
Using a request parameter to addapt action behaviour is a common
Struts
use (take a look at DispatchAction
18, 2003 2:48 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question
I use to set a specialized action-mapping for such init request, that
is a simple forward (no Action class needed)
/newUser/init.do = forward to newUser.jsp
/newUser/register.do
Thanks again Nico.
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 3:06 PM
To: Struts Users Mailing List
Subject: Re: actions best practice question
I use a Forward action-mapping :
action path=/newUser/init
forward
Currently I used a ForgotPassword.do, and in the action I check if
there's an 'action' parameter with the value of 'send'. If the 'action'
parameter does not exist then I locally forward to the
ForgotPassword.jsp using struts-config.xml local forwards configuration.
If it does exist and equals to
If I were to have a STRUTS enabled application where I had user types of
restricted_users, full_access_users, and admins and for the most part the
content of the screens the different user types get to see are the same,
except for maybe Id like there to be a few extra bits of functionality on
the
PROTECTED]]
Sent: Tuesday, September 17, 2002 2:05 PM
To: [EMAIL PROTECTED]
Subject: [OT] Newbie Design best practice question
If I were to have a STRUTS enabled application where I had user types of
restricted_users, full_access_users, and admins and for the most part the
content of the screens
PROTECTED]
Subject: [OT] Newbie Design best practice question
Date: Tue, 17 Sep 2002 14:05:29 -0400
If I were to have a STRUTS enabled application where I had user types of
restricted_users, full_access_users, and admins and for the most part the
content of the screens the different user types get
on it so I cant say it all worked out for
us :)
-Original Message-
From: James.Piper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:05 PM
To: struts-user
Subject: [OT] Newbie Design best practice question
If I were to have a STRUTS enabled application where I had user types
with organization and separation (so
different teams could more easily focus on different roles).
chris
-Original Message-
From: Piper, James D CECOM SEC EPS
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: [OT] Newbie Design best practice
I have several iterators filled from db calls that will be used across the
app for select boxes,
lists of checkboxes, radio button etc.. In the context of Struts, would it
be best to load these items as application level items at startup and define
them in the struts-config.xml file with a
Subject: Re: best practice question
From: Vic C [EMAIL PROTECTED]
===
No need to optimize, just do it as a formbean with c:for each or logic:
iterate ...or html:options.
v.
Bill Blackmon wrote:
I have several iterators filled from db calls that will be used across the
app for select boxes
Assuming these are application-level, read-only values, I would think
you would want to load them at start and make them in application scope
- yes. By doing so, not only do you not have to hit the database again,
but you just reduced your over-all memory footprint too (since you don't
have
out
loud. I don't want the form bean to be attached to any action if possible.
I'm new to this so bear with me!
Thanks,
Bill
- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 10:40 AM
Subject: Re: best practice question
You don't want it in the session if it's very big! There's no reason to
load this data repeatedly (for each user!) if it is non-volatile! Load
it on startup as I mentioned in my other post and merely reference it.
If it is volatile you'll have to devise some strategy for updating it.
using Struts
1.1-b1 or a nightly build. It's an extremely simple interface, and a snap to
use.
--
Martin Cooper
-Original Message-
From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 8:09 AM
To: Struts Users Mailing List
Subject: Re: best practice question
10:40 AM
Subject: Re: best practice question
Subject: Re: best practice question
From: Vic C [EMAIL PROTECTED]
===
No need to optimize, just do it as a formbean with c:for
each or logic:
iterate ...or html:options.
v.
Bill Blackmon wrote:
I have several iterators
There's an option for using a Map if you need more than one parameter.
Struts Newsgroup (@Basebeans.com) wrote:
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hi Mark et al,
Thank you all for your help, I've gotten it to work, and I
work for me.
Keith Kamholz
Moog
East Aurora, NY
(716) 687-7282
[EMAIL PROTECTED]
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 4:40 PM
To: 'Struts Users Mailing List'
Subject: RE: Best Practice Question/Conceptual Problem
It gets it from
Subject: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hello,
I'm trying to write my first struts application, and I'm looking for
guidance on how to accomplish a certain task. I've read through the Struts
Userguide and I've been going through the struts
to
the user...
Does that help?
-Original Message-
From: struts [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 12:25 PM
To: struts-user
Subject: Best Practice Question/Conceptual Problem
Subject: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hello
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
It then stuffs the information into the session and forwards the request
to a JSP page
The JSP page pulls the data out, builds the page and sends it back to
the user...
Does that help?
Somewhat
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: Best Practice Question/Conceptual Problem
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
It then stuffs
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hi Keith,
But how does the logic:iterate tag know where to get the information from?
That's the part that is really baffling me. I don't understand how it's
getting the information, so I'm not sure
Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Best Practice Question/Conceptual Problem
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hi Keith,
But how does the logic:iterate tag
it exposes each entry in the collection.
The tag looks in the page context first, then request, session, and
application. (Unless you specify a scope.)
Struts Newsgroup (@Basebeans.com) wrote:
Subject: Re: Best Practice Question/Conceptual Problem
From: Kenny Smith [EMAIL PROTECTED]
===
Hi Keith
bean:write name=order property=pending /
/td/tr
/logic:iterate
/table
There are tons of examples in the archive.
Mark
-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 4:10 PM
Subject: Re: Best Practice Question/Conceptual Problem
From
-
From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 30. April 2002 19:51
To: Struts User List
Subject: Best Practice Question.
I have a bean that is created when my app starts and it contains some
database table conifguration info (I'll call it my config bean). Later
I have a bean that is created when my app starts and it contains some
database table conifguration info (I'll call it my config bean). Later on in
an Action class another bean, that I'll call my logic bean, needs to access
the values of the config bean. Would it be proper to use the Action class
This is rather vague. Why does your logicBean need your configBean?
Mark
-Original Message-
From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:51 PM
I have a bean that is created when my app starts and it contains some
database table
and Multimedia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:51 PM
To: Struts User List
Subject: Best Practice Question.
I have a bean that is created when my app starts and it contains some
database table conifguration info (I'll call it my config bean). Later on in
an Action class another
-0354
[EMAIL PROTECTED]
http://www.phase.ws
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 12:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Best Practice Question.
This is rather vague. Why does your logicBean need your configBean
[EMAIL PROTECTED]
To: Struts User List [EMAIL PROTECTED]
Subject: Best Practice Question.
Date: Tue, 30 Apr 2002 11:50:30 -0600
I have a bean that is created when my app starts and it contains some
database table conifguration info (I'll call it my config bean). Later
on
in
an Action class another
On Tue, 30 Apr 2002, Phase Web and Multimedia wrote:
Date: Tue, 30 Apr 2002 11:50:30 -0600
From: Phase Web and Multimedia [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts User List [EMAIL PROTECTED]
Subject: Best Practice Question.
I have a bean
- Original Message -
From: Phase Web and Multimedia [EMAIL PROTECTED]
To: Struts User List [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 12:50 PM
Subject: Best Practice Question.
I have a bean that is created when my app starts and it contains some
database table conifguration info (I'll call
42 matches
Mail list logo