This might be too simple ...but how will i get the outputstream? lets say I have something like this
if (addNewQuestion () == 1) { String numQsAdded = "<div id='message1'>"+getQuestion().substring(1, getQuestion().length())+"</div>"; //I want to put numQsAdded into a outputstream return NONE; } my action is implementing ServletRequestAware so I have access to the HttpServletRequest request On Thu, Jun 11, 2009 at 1:43 AM, Musachy Barroso <musa...@gmail.com> wrote: > you can get a reference to the outputstream from the request and write > to it, and then return null, or Action.NONE from your method. > > musachy > > On Thu, Jun 11, 2009 at 12:25 AM, Bhaarat Sharma<bhaara...@gmail.com> > wrote: > > thanks for your been there done that insight. > > > > Struts 2 definitely is much more sane and enterprise level compared to > > grails. However, sometimes it is disappointing to know that in struts > > out-of-the-box we cant even return a result type of a simple string that > > does not go to a different page. Say, I just want to stream out a string > > and not go to a completly different page (this is helpfull for Ajax). So > I > > end up making a whole new .jsp page that just has <s:property > > value="something"/> in it ... > > > > I will give grails a fair try. > > > > On Thu, Jun 11, 2009 at 12:10 AM, David C. Hicks <dhi...@i-hicks.org> > wrote: > > > >> I think Grails is a nice tool, as long as what you want to do is within > the > >> confines of what it is designed to give you for free. After that, > you'll be > >> writing mounds of code. The project I'm working on now was originally > >> started on the Grails platform. It was maybe 5 to 6 months down the > road > >> when we finally could not push Grails any further without essentially > >> writing our own framework. So, we re-wrote the entire thing using > >> Struts/Hibernate/Spring. We are all *MUCH* happier, now. > >> > >> Other frameworks of a similar nature: Spring-MVC. Very well done. > >> Other languages? too many to go into > >> > >> If you just want to be able to quickly throw together a very basic > >> web-based application that does a very specific kind of data > >> entry/edit/view, then Grails/Rails are great tools. (I prefer Grails, > >> personally.) Anything more? Struts or Spring-MVC would be my choices. > >> > >> Dave > >> > >> > >> > >> Bhaarat Sharma wrote: > >> > >>> Guys, > >>> > >>> I've been doing struts2 for about 2 years, although I dont know > everything > >>> about it but I have been able to get the stuff done. Most of the stuff > I > >>> learned was from Struts2 in action book and this mailing list! > >>> > >>> Lately I've been intrigued by the XXX on Rails framework, be it Ruby or > >>> Groovy. So I am planning to sit down and teach myself Grails. > >>> > >>> I wanted some of your thoughts: > >>> > >>> What other Frameworks have you learned before/after Struts2? > >>> > >>> Apart from Java, What other languages have you been involved in? > >>> > >>> Hopefully, this isnt too Off topic :) > >>> > >>> > >>> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > > > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >