Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Jason Thurston
Musachi, I like that src link you included. I looked at it then found the Dispatcher.java class to look at the getInstance() method. It's getting a threadlocal of struts2 instance. So I realized sitemesh must be calling that header.jsp page before struts2 get's a chance to put it's instance in

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread stanlick
Musachy -- Not exactly sure what an "OP" is, but I am trying to save my brother from banging his head on the keyboard. I have found S2's Ajax support to be harder to actually write than the docs would otherwise suggest. Understand this comment does not apply generally to S2, but rather a slice

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I honestly think you are barking up the wrong tree > using S2 for Ajaxy UI. Just to provide a counter-example, I am using many of the S2 tags in multiple applications to provide a fair amount of Ajaxification very successfully. There are definitely many use-cases t

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Musachy Barroso
How exactly does your comment help the OP? musachy On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Musachy -- I have given up on the AJAX theme and moved exclusively to Prototype.jsfor asynch behaviors. There is no mystery prototype.js and it is very clear to code/read. I had been

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread stanlick
Musachy -- I have given up on the AJAX theme and moved exclusively to Prototype.js for asynch behaviors. There is no mystery prototype.js and it is very clear to code/read. I had been using XHR directly and thought S2's tags would make my life simpler. However, even coding with XmlHttpRequest

Re: NullPointerException when using in my header.jsp file

2007-03-19 Thread Musachy Barroso
Looking at that line here: http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_6/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java?annotate=509057 Container container = Dispatcher.getInstance().getContainer(); it seems like Dispatcher.getInstance() is returning

NullPointerException when using in my header.jsp file

2007-03-18 Thread Jason Thurston
This application uses sitemesh 2.2.1 spring 2.0.3 struts 2.0.6 struts 1.2.9 struts-menu 2.4.2.1 If I put " in my header.jsp file I get a Nullpointer exception. I found this link http://forum.springframework.org/showthread.php?t=33874 talking about the same error message which says the fix is in