Hi, I am not exactly sure of such return type, but what you can try with is-
Create a html output of the result and save it on server disk. Use this saved html file to embed in email, most email now support html/ rich text emails. This i think may serve your purpose. As we used to mail pdf files as a result of action. You have a good point struts team must consider this as enhancement in future version, in case not supported directly now. On Thu, Jul 8, 2010 at 6:36 PM, <ch...@chrismiles.org> wrote: > Yeah that is right. > > I want to maintain the MVC pattern, but using it for sending HTML emails > to clients rather than browser requests. It has to be the HTML within the > email itself rather than embedding an iframe to the website or a link to a > page. > > Chris > > > Hi, > > > > What you want is the content of the mail to have result of the called > > action > > right? > > > > i.e if my actions return list which is iterated on jsp and displayed on > > jsp. > > > > So instead of showing it on browser u want to show it in the content of > > mail??? > > > > On Thu, Jul 8, 2010 at 2:10 PM, <ch...@chrismiles.org> wrote: > > > >> Hi. > >> > >> Thanks for the response but that is not what I mean. I want to email the > >> contents of a view - a JSP which has been rendered after an action - but > >> to the contents of an email rather than the contents of a browser > >> request. > >> > >> Chris > >> > >> > If you just want to send mail after some action is executed then > >> > > >> > I think you can do it by using > >> > > >> > action-redirect > >> > > >> > You can redirect the action to send email action. > >> > > >> > Regards, > >> > > >> > Amol Ghotankar > >> > > >> > On Thu, Jul 8, 2010 at 1:08 AM, Chris Miles <ch...@chrismiles.org> > >> wrote: > >> > > >> >> Is it posible for me to render a view after an action and be able to > >> >> access > >> >> the HTML for sending in an email rather than rendering to a browser? > >> >> > >> >> thanks > >> >> > >> >> Chris > >> > > >> > > >> > > >> > > >> > -- > >> > > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > > > > > > -- > > > > > > With Best Regards, > > > > Amol Ghotankar > > Technical Director > > Cursive Technologies Pvt. Ltd. > > 104, A1 Wing, W Sector, > > Masulkar Colony, Ajmera, > > Pimpri, Pune-18 INDIA > > O: +91 2020 270 570 > > M: +91 9960 980 419 > > www.cursivetech.com > > > > > > CURSIVE TECHNOLOGIES EMAIL NOTICE > > The information contained in this email and any attachments is > > confidential > > and may be subject to copyright or other intellectual property > protection. > > If you are not the intended recipient, you are not authorized to use or > > disclose this information, and we request that you notify us by reply > mail > > or telephone and delete the original message from your mail system. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >