High CPU usage

2011-03-08 Thread Abhi
Hi I have a production web application running in Tomcat. The web application uses struts 2 as MVC layer. We had an issue wherein one of the web servers spiked to 100% cpu usage. This issue lasted for over several hours. I took the thread dump and saw over several hundred threads in runnable

Re: High CPU usage

2011-03-08 Thread jogep
If you don't use the javatemplate plugin all Struts2 UI Tags are using freemarker templates internal. So maybe you can solve your problem with latest Struts2 Version. Johannes Abhi-2 wrote: Hi I have a production web application running in Tomcat. The web application uses struts 2 as

Struts 2.0.11.1 question

2011-03-08 Thread Harsh C
Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an AJAX-ified app using Dojo. Problem is, struts-json plugin is not blessed. Is there a way in which I can code an Action which

Re: Struts 2.0.11.1 question

2011-03-08 Thread Brian Thompson
You can definitely write an Action to return a JSON string -- just set the content-type of the response appropriately and instead of writing HTML to the response, write your JSON string. If you're comfortable with JSON and Javascript in general, it should be easy. -Brian On Tue, Mar 8, 2011 at

Re: Struts 2.0.11.1 question

2011-03-08 Thread Chris Pratt
The simplest way is just to use a JSP that generates the JSON you want, then set the contentType parameter of the result to application/json and you should be good to go. (*Chris*) On Tue, Mar 8, 2011 at 3:23 PM, Harsh C hchau...@gmail.com wrote: Hi, I don't know if this is the right list

Looking for a good multi-file upload solution

2011-03-08 Thread Jim deVos
Hello all, Our team is looking to support multiple concurrent uploads in struts2 (i.e. ajaxy, gmail-style file uploads, with progress bars, that begin immediately instead of when the user submits the form). We are wondering if there are any tips or best practices for implementing this feature.

RE: Looking for a good multi-file upload solution

2011-03-08 Thread Martin Gainty
Telios has a File-Upload with a decent-looking progress-bar http://www.telio.be/blog/2006/01/06/ajax-upload-progress-monitor-for-commons-fileupload-example/ Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Re: Struts 2.0.11.1 question

2011-03-08 Thread Maurizio Cucchiara
What do you mean by not blessed? Maurizio Cucchiara Il giorno 09/mar/2011 00.24, Harsh C hchau...@gmail.com ha scritto: Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an