struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith <>
Subject Confirm Style (was: Request: Property vs Attribute)
Date Fri, 15 Feb 2002 11:45:21 GMT
maybe heading off topic - forgive me - but I want struts systems to be well

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" />

or better still use the new Messages tag.

--- Andreas Mack <> 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
> "/" 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 <>
> mediales. GmbH
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message