You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keith <ke...@yahoo.com> on 2002/02/15 12:45:21 UTC

Confirm Style (was: Request: Property vs Attribute)

maybe heading off topic - forgive me - but I want struts systems to be well
designed!

The web is so darn slow - for repetitive use system confirmation/dialogs are a
real pain. I'm not a designer but I feel it's best to take the user to a useful
page & put your message at the top of it.
eg. in Action after the update
request.removeAttribute("userMessage"); // make sure only 1 message
request.addAttribute("userMessage", "well done - we have saved your details");

then at top of jsp's.
<logic:present name="userMessage" scope="request">
	<bean:write name="userMessage" scope="request" />
</logic:present>

or better still use the new Messages tag.
Keith.

--- Andreas Mack <va...@mediales.net> wrote:
> On Fri, 2002-02-15 at 02:19, Ted Husted wrote:
> 
> I have a question along these lines:
> Quite often I have thing like an acknowledge page, very much
> like an Ok Dialog: "The password has been changed successfully.
> <html:submit>OK</html:submit>". I'm toying with the idea of generalize
> this by having an "OKAction" and an okdialog.jsp where I parametrize
> or attributize the message and the forward (yes, this is bad, routing
> outside of struts-config.xml). 
> 
> It works, but only sub-optimal, because to return to a specific page
> "/userdetail.do" requires the uid field. Somehow this should be within
> the generic okdialog.jsp. I'd like to have a collection of parameters
> set which are dynamically added to the okdialog.jsp in hidden fields,
> but hidden::name/property seems to be "static". Any hints here ? Am I
> down a wrong road ? How do others do these quite generic dialogs ?
> 
> Thanks!
> 
> -- 
> Andreas Mack <va...@mediales.de>
> mediales. GmbH http://www.mediales.de
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Confirm Style (was: Request: Property vs Attribute)

Posted by Andreas Mack <va...@mediales.net>.
On Fri, 2002-02-15 at 12:45, Keith wrote:
> maybe heading off topic - forgive me - but I want struts systems to be well
> designed!
> 
> The web is so darn slow - for repetitive use system confirmation/dialogs are a
> real pain. I'm not a designer but I feel it's best to take the user to a useful
> page & put your message at the top of it.
[...]
> or better still use the new Messages tag.

Thanks to you and Ted for the fast responses and the good suggestions. I
agree with you on the dialogs for plain acknowledgement, but quite
often you need yes/no oder dothis/dothat things, where there is need for
generic stuff IMHO. People are also used to things like "Are you sure to
delete your data" stuff.

-- 
Andreas Mack <va...@mediales.de>
mediales. GmbH http://www.mediales.de



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>