I think ActionContext.getParameters().set(name,value) doesn't work, but to your question I can answer that I'm using the displaytag (www.displaytag.org) that works like a charm without of course reading the data source form the WW stack. Displaytag uses the regular scopes, and either you write <ww:set ...value="results" scope="request"> in the jsp page or you add directly the result in the request attributes from an Action method. And my code is not ugly ;-) Richard.
-----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de Tim Dwelle Envoyé : jeudi 16 octobre 2003 15:56 À : [EMAIL PROTECTED] Objet : RE: [OS-webwork] Set attributes in an Action Ok, I usually let questions like this go... but this time, I'll bite. Why would you *want* to set a request attribute in an action? That's the kind of ugliness you need to do in Struts, not Webwork. :) But to your question, I believe ActionContext.getParameters().set (name,value) would work as well... without needlessly coupling your action to ServletActionContext. -Tim. Quoting Jason Carreira <[EMAIL PROTECTED]>: > ServletActionContext.getRequest().setAttribute(...) > > -----Original Message----- > From: Fred Lamuette [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2003 2:59 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Set attributes in an Action > > How to set elegantly a request attribute in an action > (request.setAttribute(name,value)) ? > Cheers. > Richard. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork