Re: S2 and Sitemesh basic configuration

2010-12-03 Thread Greg Lindholm
Thanks Maurizio. To wrap this up; here are the changes I needed to make to web.xml to use Sitemesh with Struts 2.2.1: struts2-prepare org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter sitemesh com.opensymphony.sitemesh.webapp.SiteMeshFilter

Re: S2 and Sitemesh basic configuration

2010-12-03 Thread Maurizio Cucchiara
You must include struts-sitemesh-plugin only if you need to use (Freemarker, Velocity)DecoratorServlet, otherwise you can use only sitemesh filter. 2010/12/3 Greg Lindholm : > Thanks Brain. > > Can anyone else give me a definitive answer about the struts2-sitemesh-plugin? > Is it actually needed i

Re: Struts 1 and AJAX

2010-12-03 Thread Dave Newton
Have you actually checked the object you're getting back to see (a) what it is, and (b) how to access and/or manipulate it? These are all JavaScript questions, not Struts, at least as far as I can tell. Dave On Fri, Dec 3, 2010 at 12:05 PM, Anjib Mulepati wrote: > I make following change to tes

Re: Struts 1 and AJAX

2010-12-03 Thread Anjib Mulepati
I make following change to test but still same problem function fnClickAddEmail() { var email = $("input#email").val(); $.post( "validateEmail.do", {sendValue: email}, function(returnValue){ if(returnValue == "-1"){ //Changed here displa

RE: Struts 1 and AJAX

2010-12-03 Thread Biesbrock, Kevin
> From: Anjib Mulepati [mailto:anji...@hotmail.com] > It still add blank row in table when invalid. The 'returnValue' variable is actually a jQuery object. I think you might have to do like returnValue.data or something to get the actual response text out of it. Beez --

Re: Struts 1 and AJAX

2010-12-03 Thread Anjib Mulepati
It still add blank row in table when invalid. Anjib On 12/3/2010 11:36 AM, Biesbrock, Kevin wrote: Gosh, you're so close. If you change this method: function fnClickAddEmail() { var email = $("input#email").val(); $.post( "validateEmail.do", {sendValue: email},

Re: S2 and Sitemesh basic configuration

2010-12-03 Thread Greg Lindholm
Thanks Brain. Can anyone else give me a definitive answer about the struts2-sitemesh-plugin? Is it actually needed if you are using JSP decorators? I've done a few little tests and it doesn't appear to be needed. I've including struts tags in the decorator JSP file and I can access my action pro

RE: Struts 1 and AJAX

2010-12-03 Thread Biesbrock, Kevin
Gosh, you're so close. If you change this method: function fnClickAddEmail() { var email = $("input#email").val(); $.post( "validateEmail.do", {sendValue: email}, function(returnValue){ //Does this function called even my email is invalid? Am I getting email

Re: Spring 3 Upgrade

2010-12-03 Thread Emi Lu
I am using spring3.0 5, jdk1.6, tomcat6, mybatis3. It seems fine for now. Lu Ying I had no trouble with it. On Thu, Dec 2, 2010 at 5:08 PM, Zoran Avtarovskiwrote: I just wanted to check if there were any issues with upgrading spring to version 3 with struts 2.2.1? I notice the complete dow

Re: Struts2 + Dojo 1.5

2010-12-03 Thread Dave Newton
I haven't really found that to be the case with JavaScript/Ajax frameworks: they're back-end neutral, by design. In any case, as I and a few others have said, just start using it: if you end up having a Struts-specific question feel free to ask. Otherwise I can't think of anything off the top of m

Re: Struts2 + Dojo 1.5

2010-12-03 Thread developer researcher
Hello, I understand that my last question is more appropiate for dojo mailing list (in fact, I will do it) but the idea of this mail es know, in base on experience of other developers, tips or considerations to take into account when working with the 2 frameworks (similar to the first po

Re: Spring 3 Upgrade

2010-12-03 Thread phillips1021
See this article: http://www.brucephillips.name/blog/index.cfm/2010/10/3/Struts-2-Spring-Plugin--Excluding-Its-Transitive-Dependencies-To-Use-A-Newer-Version-Of-Spring We are using the technique described above in several production web applications without issue. Bruce Sparecreative wrote: >

Issues regarding sx:auto completer

2010-12-03 Thread Rajesh R
Hi All, Actually I have a requirement, which fetch the drop down values from JS and show it in jsp. I have to use ajax auto completer to achieve this. Here the issue is, i can able to enter any value in the auto completer box and pass that value to database. My question - how can

Re: execute javascript after action's html renders

2010-12-03 Thread Colin Freas
Thanks for the replies, Martin and Li. So, I've tried both of these things (before resorting to the mailing list, actually), but as I pointed out in my note, the inline tag never seems to get executed, despite my setting of the *executeScripts* attribute in the containing action's tag.