Re: [OT]Moving from Struts2 to grails, your thoughts
+ " does not appear to be a valid directory"); > } > > sInstallPath = installDirFile.getCanonicalPath().replace( > File.separatorChar, '/'); > System.out.println("sInstallPath = "+sInstallPath); > // } > // else > // { > // System.out.println( > // "Cannot determine installation directory; apparently not > running from a jar"); > // } > // } > // else > // { > // override = override.replace('\\', '/'); > // System.out.println("override = "+override); > // int pos = override.lastIndexOf('/'); > // System.out.println("pos = "+pos); > // if (pos < 0) { > // sInstallPath = ""; > // sDevJarName = override; > // System.out.println("sDevJarName = "+sDevJarName); > // } > // else > // { > // sInstallPath = override.substring(0, pos); > // System.out.println("sInstallPath = "+sInstallPath); > // sDevJarName = override.substring(pos + 1); > // System.out.println("sDevJarName = "+sDevJarName); > // } > // } > } > catch (IOException e) > { > System.out.println("Installation problem detected, please reinstall > GWT"+ e.getMessage()); > } > } > > to get back to Scott and Pawles topic..what does everybody think of a grails > plugin? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Fri, 12 Jun 2009 05:10:09 -0500 >> Subject: Re: [OT]Moving from Struts2 to grails, your thoughts >> From: stanl...@gmail.com >> To: user@struts.apache.org >> >> Was this a question about moving from Struts 2 to Grails or how to get the >> output stream? >> >> 2009/6/12 Paweł Wielgus >> >> > Hi all, >> > i'm active in rails and struts1 and struts2, >> > languages are java and ruby and javascript. >> > >> > As for rails i use jruby instead ruby. >> > >> > What framework will my next app be implemented in? - struts2 >> > Why? - freedom of choice, and tons of bullet proof libraries >> > How my apps look like? mostly far from edit/save/list >> > >> > Best greetings, >> > Paweł Wielgus. >> > >> > >> > 2009/6/12 Dave Newton : >> > > Musachy Barroso wrote: >> > >> >> > >> Components are for tags >> > > >> > > Maybe where *you're* from. Over here we use random classes for *all* our >> > > functionality! >> > > >> > > Dave >> > > >> > > - >> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > > For additional commands, e-mail: user-h...@struts.apache.org >> > > >> > > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > > > _ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 -- "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
Re: [OT]Moving from Struts2 to grails, your thoughts
override = override.replace('\\', '/'); > // System.out.println("override = "+override); > // int pos = override.lastIndexOf('/'); > // System.out.println("pos = "+pos); > // if (pos < 0) { > // sInstallPath = ""; > // sDevJarName = override; > // System.out.println("sDevJarName = "+sDevJarName); > // } > // else > // { > // sInstallPath = override.substring(0, pos); > // System.out.println("sInstallPath = "+sInstallPath); > // sDevJarName = override.substring(pos + 1); > // System.out.println("sDevJarName = "+sDevJarName); > // } > // } > } > catch (IOException e) > { > System.out.println("Installation problem detected, please reinstall > GWT"+ e.getMessage()); > } > } > > to get back to Scott and Pawles topic..what does everybody think of a grails > plugin? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Fri, 12 Jun 2009 05:10:09 -0500 >> Subject: Re: [OT]Moving from Struts2 to grails, your thoughts >> From: stanl...@gmail.com >> To: user@struts.apache.org >> >> Was this a question about moving from Struts 2 to Grails or how to get the >> output stream? >> >> 2009/6/12 Paweł Wielgus >> >> > Hi all, >> > i'm active in rails and struts1 and struts2, >> > languages are java and ruby and javascript. >> > >> > As for rails i use jruby instead ruby. >> > >> > What framework will my next app be implemented in? - struts2 >> > Why? - freedom of choice, and tons of bullet proof libraries >> > How my apps look like? mostly far from edit/save/list >> > >> > Best greetings, >> > Paweł Wielgus. >> > >> > >> > 2009/6/12 Dave Newton : >> > > Musachy Barroso wrote: >> > >> >> > >> Components are for tags >> > > >> > > Maybe where *you're* from. Over here we use random classes for *all* our >> > > functionality! >> > > >> > > Dave >> > > >> > > - >> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > > For additional commands, e-mail: user-h...@struts.apache.org >> > > >> > > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > > > _ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
stallPath); > // sDevJarName = override.substring(pos + 1); > // System.out.println("sDevJarName = "+sDevJarName); > //} > // } >} >catch (IOException e) >{ > System.out.println("Installation problem detected, please reinstall > GWT"+ e.getMessage()); >} > } > > to get back to Scott and Pawles topic..what does everybody think of a > grails plugin? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > Date: Fri, 12 Jun 2009 05:10:09 -0500 > > Subject: Re: [OT]Moving from Struts2 to grails, your thoughts > > From: stanl...@gmail.com > > To: user@struts.apache.org > > > > Was this a question about moving from Struts 2 to Grails or how to get > the > > output stream? > > > > 2009/6/12 Paweł Wielgus > > > > > Hi all, > > > i'm active in rails and struts1 and struts2, > > > languages are java and ruby and javascript. > > > > > > As for rails i use jruby instead ruby. > > > > > > What framework will my next app be implemented in? - struts2 > > > Why? - freedom of choice, and tons of bullet proof libraries > > > How my apps look like? mostly far from edit/save/list > > > > > > Best greetings, > > > Paweł Wielgus. > > > > > > > > > 2009/6/12 Dave Newton : > > > > Musachy Barroso wrote: > > > >> > > > >> Components are for tags > > > > > > > > Maybe where *you're* from. Over here we use random classes for *all* > our > > > > functionality! > > > > > > > > Dave > > > > > > > > - > > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > _ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
Re: [OT]Moving from Struts2 to grails, your thoughts
uot;+sInstallPath); > // sDevJarName = override.substring(pos + 1); > // System.out.println("sDevJarName = "+sDevJarName); > // } > // } > } > catch (IOException e) > { > System.out.println("Installation problem detected, please reinstall > GWT"+ e.getMessage()); > } > } > > to get back to Scott and Pawles topic..what does everybody think of a grails > plugin? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Fri, 12 Jun 2009 05:10:09 -0500 >> Subject: Re: [OT]Moving from Struts2 to grails, your thoughts >> From: stanl...@gmail.com >> To: user@struts.apache.org >> >> Was this a question about moving from Struts 2 to Grails or how to get the >> output stream? >> >> 2009/6/12 Paweł Wielgus >> >> > Hi all, >> > i'm active in rails and struts1 and struts2, >> > languages are java and ruby and javascript. >> > >> > As for rails i use jruby instead ruby. >> > >> > What framework will my next app be implemented in? - struts2 >> > Why? - freedom of choice, and tons of bullet proof libraries >> > How my apps look like? mostly far from edit/save/list >> > >> > Best greetings, >> > Paweł Wielgus. >> > >> > >> > 2009/6/12 Dave Newton : >> > > Musachy Barroso wrote: >> > >> >> > >> Components are for tags >> > > >> > > Maybe where *you're* from. Over here we use random classes for *all* our >> > > functionality! >> > > >> > > Dave >> > > >> > > - >> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > > For additional commands, e-mail: user-h...@struts.apache.org >> > > >> > > >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > > > _ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: [OT]Moving from Struts2 to grails, your thoughts
cht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 12 Jun 2009 05:10:09 -0500 > Subject: Re: [OT]Moving from Struts2 to grails, your thoughts > From: stanl...@gmail.com > To: user@struts.apache.org > > Was this a question about moving from Struts 2 to Grails or how to get the > output stream? > > 2009/6/12 Paweł Wielgus > > > Hi all, > > i'm active in rails and struts1 and struts2, > > languages are java and ruby and javascript. > > > > As for rails i use jruby instead ruby. > > > > What framework will my next app be implemented in? - struts2 > > Why? - freedom of choice, and tons of bullet proof libraries > > How my apps look like? mostly far from edit/save/list > > > > Best greetings, > > Paweł Wielgus. > > > > > > 2009/6/12 Dave Newton : > > > Musachy Barroso wrote: > > >> > > >> Components are for tags > > > > > > Maybe where *you're* from. Over here we use random classes for *all* our > > > functionality! > > > > > > Dave > > > > > > - > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > _ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
Re: [OT]Moving from Struts2 to grails, your thoughts
I'm sorry, i've cited wrong e-mail, what i wanted to cite is: >What other Frameworks have you learned before/after Struts2? > >Apart from Java, What other languages have you been involved in? Best greetings, Paweł Wielgus. 2009/6/12 : > Was this a question about moving from Struts 2 to Grails or how to get the > output stream? > > 2009/6/12 Paweł Wielgus > >> Hi all, >> i'm active in rails and struts1 and struts2, >> languages are java and ruby and javascript. >> >> As for rails i use jruby instead ruby. >> >> What framework will my next app be implemented in? - struts2 >> Why? - freedom of choice, and tons of bullet proof libraries >> How my apps look like? mostly far from edit/save/list >> >> Best greetings, >> Paweł Wielgus. >> >> >> 2009/6/12 Dave Newton : >> > Musachy Barroso wrote: >> >> >> >> Components are for tags >> > >> > Maybe where *you're* from. Over here we use random classes for *all* our >> > functionality! >> > >> > Dave >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> > For additional commands, e-mail: user-h...@struts.apache.org >> > >> > >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
Was this a question about moving from Struts 2 to Grails or how to get the output stream? 2009/6/12 Paweł Wielgus > Hi all, > i'm active in rails and struts1 and struts2, > languages are java and ruby and javascript. > > As for rails i use jruby instead ruby. > > What framework will my next app be implemented in? - struts2 > Why? - freedom of choice, and tons of bullet proof libraries > How my apps look like? mostly far from edit/save/list > > Best greetings, > Paweł Wielgus. > > > 2009/6/12 Dave Newton : > > Musachy Barroso wrote: > >> > >> Components are for tags > > > > Maybe where *you're* from. Over here we use random classes for *all* our > > functionality! > > > > Dave > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: [OT]Moving from Struts2 to grails, your thoughts
Hi all, i'm active in rails and struts1 and struts2, languages are java and ruby and javascript. As for rails i use jruby instead ruby. What framework will my next app be implemented in? - struts2 Why? - freedom of choice, and tons of bullet proof libraries How my apps look like? mostly far from edit/save/list Best greetings, Paweł Wielgus. 2009/6/12 Dave Newton : > Musachy Barroso wrote: >> >> Components are for tags > > Maybe where *you're* from. Over here we use random classes for *all* our > functionality! > > Dave > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
Musachy Barroso wrote: Components are for tags Maybe where *you're* from. Over here we use random classes for *all* our functionality! Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
Components are for tags On Thu, Jun 11, 2009 at 9:32 AM, Martin Gainty wrote: > > one of your UI beans can extend org.apache.struts2.components.Component e.g. > > public class MyBean extend org.apache.struts2.components.Component { > javax.servlet.ServletOutputStream stream; > javax.servlet.http.HttpServletResponse res; > > then > @Override > protected String determineActionURL(String action, String namespace, > String method, > HttpServletRequest req, > HttpServletResponse res, Map parameters, String scheme, > boolean includeContext, boolean > encodeResult, boolean forceAddSchemeHostAndPort, > boolean escapeAmp) { > this.res = res; > try > { > stream=res.getOutputStream(); > } > catch(java.lang.Exception excp) > { > log.debug("OutputStream is null"+excp.getMessage()); > } > String finalAction = findString(action); > String finalMethod = method != null ? findString(method) : method; > String finalNamespace = determineNamespace(namespace, getStack(), req); > ActionMapping mapping = new ActionMapping(finalAction, finalNamespace, > finalMethod, parameters); > String uri = actionMapper.getUriFromActionMapping(mapping); > return UrlHelper.buildUrl(uri, req, res, parameters, scheme, > includeContext, encodeResult, forceAddSchemeHostAndPort, escapeAmp); > } > ... > } > > http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletResponse.html#getOutputStream() > > y/n? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Thu, 11 Jun 2009 11:59:30 -0400 >> Subject: Re: [OT]Moving from Struts2 to grails, your thoughts >> From: w...@wantii.com >> To: user@struts.apache.org >> >> On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharma wrote: >> > This might be too simple ...but how will i get the outputstream? >> > lets say I have something like this >> > >> > if (addNewQuestion () == 1) >> > { >> > String numQsAdded = "> > id='message1'>"+getQuestion().substring(1, >> > getQuestion().length())+""; >> > //I want to put numQsAdded into a outputstream >> > return NONE; >> > } >> > >> > >> > my action is implementing ServletRequestAware so I have access to >> > the HttpServletRequest request >> > >> >> >> The OutputStream usually comes from the response (since you are >> responding). I think you might be able to pull the ServletResponse out >> of the ActionContext if you don't want to implement the interfaces. >> >> -Wes >> >> >> >> -- >> Wes Wannemacher >> Author - Struts 2 In Practice >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more >> http://www.manning.com/wannemacher >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > _ > Windows Live™ SkyDrive™: Get 25 GB of free online storage. > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009 -- "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
RE: [OT]Moving from Struts2 to grails, your thoughts
one of your UI beans can extend org.apache.struts2.components.Component e.g. public class MyBean extend org.apache.struts2.components.Component { javax.servlet.ServletOutputStream stream; javax.servlet.http.HttpServletResponse res; then @Override protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp) { this.res = res; try { stream=res.getOutputStream(); } catch(java.lang.Exception excp) { log.debug("OutputStream is null"+excp.getMessage()); } String finalAction = findString(action); String finalMethod = method != null ? findString(method) : method; String finalNamespace = determineNamespace(namespace, getStack(), req); ActionMapping mapping = new ActionMapping(finalAction, finalNamespace, finalMethod, parameters); String uri = actionMapper.getUriFromActionMapping(mapping); return UrlHelper.buildUrl(uri, req, res, parameters, scheme, includeContext, encodeResult, forceAddSchemeHostAndPort, escapeAmp); } ... } http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletResponse.html#getOutputStream() y/n? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 11 Jun 2009 11:59:30 -0400 > Subject: Re: [OT]Moving from Struts2 to grails, your thoughts > From: w...@wantii.com > To: user@struts.apache.org > > On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharma wrote: > > This might be too simple ...but how will i get the outputstream? > > lets say I have something like this > > > > if (addNewQuestion () == 1) > > { > >String numQsAdded = " > id='message1'>"+getQuestion().substring(1, getQuestion().length())+""; > >//I want to put numQsAdded into a outputstream > >return NONE; > > } > > > > > > my action is implementing ServletRequestAware so I have access to > > the HttpServletRequest request > > > > > The OutputStream usually comes from the response (since you are > responding). I think you might be able to pull the ServletResponse out > of the ActionContext if you don't want to implement the interfaces. > > -Wes > > > > -- > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _ Windows Live™ SkyDrive™: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
Re: [OT]Moving from Struts2 to grails, your thoughts
I just implemented servletResponseAware as well. Thanks! On Thu, Jun 11, 2009 at 11:59 AM, Wes Wannemacher wrote: > On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharma > wrote: > > This might be too simple ...but how will i get the outputstream? > > lets say I have something like this > > > > if (addNewQuestion () == 1) > > { > >String numQsAdded = " > id='message1'>"+getQuestion().substring(1, > getQuestion().length())+""; > >//I want to put numQsAdded into a outputstream > >return NONE; > > } > > > > > > my action is implementing ServletRequestAware so I have access to > > the HttpServletRequest request > > > > > The OutputStream usually comes from the response (since you are > responding). I think you might be able to pull the ServletResponse out > of the ActionContext if you don't want to implement the interfaces. > > -Wes > > > > -- > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > http://www.manning.com/wannemacher > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: [OT]Moving from Struts2 to grails, your thoughts
On Thu, Jun 11, 2009 at 11:53 AM, Bhaarat Sharma wrote: > This might be too simple ...but how will i get the outputstream? > lets say I have something like this > > if (addNewQuestion () == 1) > { > String numQsAdded = " id='message1'>"+getQuestion().substring(1, getQuestion().length())+""; > //I want to put numQsAdded into a outputstream > return NONE; > } > > > my action is implementing ServletRequestAware so I have access to > the HttpServletRequest request > The OutputStream usually comes from the response (since you are responding). I think you might be able to pull the ServletResponse out of the ActionContext if you don't want to implement the interfaces. -Wes -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
This might be too simple ...but how will i get the outputstream? lets say I have something like this if (addNewQuestion () == 1) { String numQsAdded = ""+getQuestion().substring(1, getQuestion().length())+""; //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 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 > 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 > value="something"/> in it ... > > > > I will give grails a fair try. > > > > On Thu, Jun 11, 2009 at 12:10 AM, David C. Hicks > 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 > >
Re: [OT]Moving from Struts2 to grails, your thoughts
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 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 value="something"/> in it ... > > I will give grails a fair try. > > On Thu, Jun 11, 2009 at 12:10 AM, David C. Hicks 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
Re: [OT]Moving from Struts2 to grails, your thoughts
Bhaarat Sharma wrote: 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 in it ... So write a new result type--depending on your needs you're looking at a dozen or two lines of Java. After a half-dozen S2 apps, I haven't had the need to do that, and they've all been Ajax apps--but we might be writing different types of applications. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT]Moving from Struts2 to grails, your thoughts
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 in it ... I will give grails a fair try. On Thu, Jun 11, 2009 at 12:10 AM, David C. Hicks 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 > >
Re: [OT]Moving from Struts2 to grails, your thoughts
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
Re: [OT]Moving from Struts2 to grails, your thoughts
I came to Struts2 from Rails. Rails (ruby especially) is really nice. It is very interesting to compare w/Java and Struts2 / Hibernate / Maven / Spring / Junit. There also tons of great books out there on ruby and or rails ' -Steven 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
RE: [OT]Moving from Struts2 to grails, your thoughts
Two words - Stripes framework. > Date: Wed, 10 Jun 2009 22:06:11 -0400 > Subject: [OT]Moving from Struts2 to grails, your thoughts > From: bhaara...@gmail.com > To: user@struts.apache.org > > 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 :) _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
Re: [OT]Moving from Struts2 to grails, your thoughts
Bhaarat Sharma wrote: 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. Don't think that Grails is simply an RoR clone--they're similar in name, different in philosophy. What other Frameworks have you learned before/after Struts2? Too many to list. Apart from Java, What other languages have you been involved in? Too many to list, but I'm a Lisp and Smalltalk oldbie, and both have influenced my approach to programming. Lately I'm primarily Java, Ruby, and Smalltalk, but Clojure will probably bring be back into the Lisp fold. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[OT]Moving from Struts2 to grails, your thoughts
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 :)