SOAP on REST

2010-10-19 Thread Frans Thamura
hi all we have REST plugins, is it possible to implement SOAP on REST, so the output is not XML or JSON, but a SOAP i just getting confuse about SOAP over HTTP. F

Re: Using FreeMarker (or Velocity) to template emails sent by a struts2 app?

2010-10-19 Thread Maurizio Cucchiara
I use to do through spring framework (http://static.springsource.org/spring/docs/2.5.x/reference/mail.html#mail-templates) 2010/10/18 Eric Nielsen ericdniel...@gmail.com: Is there a good/standard way to use FreeMarker (or Velocity) to template emails sent by a Struts2 application? I hacked up

Re: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-19 Thread Alex Rodriguez Lopez
I'm using a combination of empty extension and exclusions for static content which works well now. Got pretty confused too at beginnning when I changed to an empty extension though: http://struts.apache.org/2.2.1/docs/static-content.html in web.xml: filter filter-namestruts2/filter-name

Re: SOAP on REST

2010-10-19 Thread Jordi Fernandez
I don't understand your question clearly. Can you provide more detail on the expected behaviour/outcome? On 19/10/2010 8:57, Frans Thamura wrote: hi all we have REST plugins, is it possible to implement SOAP on REST, so the output is not XML or JSON, but a SOAP i just getting confuse about

RE: Overriding Templates

2010-10-19 Thread adam pinder
The theme is set to simple as was for struts 2.0.11 My struts.xml is very plain and i don't see it would help with this particular issue. My jsp contains the following div style=text-align: center; margin-bottom: 10px; padding-top: 5px s:actionmessage theme=simple/ s:actionerror

Re: Struts2 threading in a Java EE application server environment

2010-10-19 Thread Phil Adams
Hi Lukasz, Thanks for the information... I read about ExecuteAndWaitInterceptor but it seems as though that must create a new thread as well, since it also uses the BackgroundProcess class to execute the action, right? In this particular situation, I need to find a way for the action's execute()

Re: Struts2 threading in a Java EE application server environment

2010-10-19 Thread Lukasz Lenart
2010/10/19 Phil Adams padam...@gmail.com: Hi Lukasz, Thanks for the information... I read about ExecuteAndWaitInterceptor but it seems as though that must create a new thread as well, since it also uses the BackgroundProcess class to execute the action, right? In this particular situation, I

Re: SOAP on REST

2010-10-19 Thread Dave Newton
On Tue, Oct 19, 2010 at 2:57 AM, Frans Thamura wrote: we have REST plugins, is it possible to implement SOAP on REST, so the output is not XML or JSON, but a SOAP SOAP is XML--I'm not really sure what you're asking either, I guess. http://en.wikipedia.org/wiki/SOAP#Transport_methods Dave

Re: SOAP on REST

2010-10-19 Thread Maurizio Cucchiara
Do you mean something like expose a kind of soap webservice through rest plugin? 2010/10/19 Dave Newton davelnew...@gmail.com: On Tue, Oct 19, 2010 at 2:57 AM, Frans Thamura wrote: we have REST plugins, is it possible to implement SOAP on REST, so the output is not XML or JSON, but a SOAP

Re: SOAP on REST

2010-10-19 Thread Frans Thamura
maurizio right, i just thinking of it, but after see more deep, the soap envelope is to heavy weight but if we use XML and JSON, still dunno how to validate it F On Tue, Oct 19, 2010 at 9:57 PM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: Do you mean something like expose a kind

Re: SOAP on REST

2010-10-19 Thread Maurizio Cucchiara
What kind of validation you're talking about? xml validation, input validation? It should be better if you provide some further details about your scenario. 2010/10/19 Frans Thamura fr...@meruvian.org: maurizio right, i just thinking of it, but after see more deep, the soap envelope is to

Re: SOAP on REST

2010-10-19 Thread Frans Thamura
yah.. to make sure that the data produced is valid F On Tue, Oct 19, 2010 at 10:09 PM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: What kind of validation you're talking about? xml validation, input validation? It should be better if you provide some further details about your

Re: Struts2 threading in a Java EE application server environment

2010-10-19 Thread Wes Wannemacher
On Tue, Oct 19, 2010 at 8:07 AM, Phil Adams padam...@gmail.com wrote: Hi Lukasz, Thanks for the information... I read about ExecuteAndWaitInterceptor but it seems as though that must create a new thread as well, since it also uses the BackgroundProcess class to execute the action, right? In

Re: Overriding Templates

2010-10-19 Thread Li Ying
With a lot of debugging, I think i have found what's wrong. If you use the default setting, In method [createTemplateLoader] of class [org.apache.struts2.views.freemarker.FreemarkerManager], Struts will create 3 TemplateLoader which is: 1,ClassTemplateLoader, which will load Template from class

Re: Struts2 threading in a Java EE application server environment

2010-10-19 Thread Phil Adams
Hi Wes, Thanks for that information. It helped to confirm the way I was thinking about the problem.It turns out that the customer has tried out a scenario in which they omit the execAndWait interceptor, and it appears to be working fine now with no new thread being created, so the crisis has

Re: SOAP on REST

2010-10-19 Thread Maurizio Cucchiara
Why cannot you relay on dtd/schema validation? 2010/10/19 Frans Thamura fr...@meruvian.org: yah.. to make sure that the data produced is valid F On Tue, Oct 19, 2010 at 10:09 PM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: What kind of validation you're talking about? xml

Re: SOAP on REST

2010-10-19 Thread Frans Thamura
still seeking information and how to for this F On Wed, Oct 20, 2010 at 12:16 AM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: Why cannot you relay on dtd/schema validation? 2010/10/19 Frans Thamura fr...@meruvian.org: yah.. to make sure that the data produced is valid

Re: SOAP on REST

2010-10-19 Thread Dave Newton
How to validate XML with a schema?! JSON validation is a different issue; the only real project I know of at this point is JSON Schema, but have never used it. Seems like it'd be pretty easy to marshal up the JSON object and run it through an existing object-based validation process, though.

Re: SOAP on REST

2010-10-19 Thread Frans Thamura
we use json here, and still dunno how to know that json that procude by struts2 is 100% ok F On Wed, Oct 20, 2010 at 12:27 AM, Dave Newton davelnew...@gmail.com wrote: How to validate XML with a schema?! JSON validation is a different issue; the only real project I know of at this point is

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread cellterry
Yes, it works! Johannes Geppert wrote: Hi Terry, I think this is this is possible, but only with some handmake javascript. take a look at the custom formatters, I think this is the right way. http://code.google.com/p/struts2-jquery/wiki/FormatGrid Johannes cellterry wrote:

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread Johannes Geppert
great! can you contribute the sources? if possible i add this to the wiki. Johannes cellterry wrote: Yes, it works! Johannes Geppert wrote: Hi Terry, I think this is this is possible, but only with some handmake javascript. take a look at the custom formatters, I think this

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread Jason Ferguson
Here is a javascript formatter I used when I tried this. I found the solution hideously ugly and ended up going to a straight jQuery solution. function makeButton(clickAction, text) { return button onClick=' + clickAction + ' + text + /button; } Jason On Tue, Oct

Re: Overriding Templates

2010-10-19 Thread Maurizio Cucchiara
@Adam and they were placed into WebContent\template\simple folder you should start to investigate about your path correctness IMHO . Struts usually finds freemarker template inside your classpath. In order to enable struts to find your custom template file, you should ensure that template files

Re: Can't deploy on server

2010-10-19 Thread Maurizio Cucchiara
Is your production environment based on OC4J? It's look like there is something wrong in your classpath. It's just a guess, but I'd look at JXTransformerHandler class (starting from here the http://www.findjar.com/class/oracle/xml/jaxp/JXTransformerHandler.html) -- Maurizio Cucchiara

Re: Can't deploy on server

2010-10-19 Thread Li Ying
It looks like: 1, Oracle's XML parser is chosen to parse your xml configuration file. 2, And it failed. (Don't know why and don't interest to know) You can try to delete Oracle's XML parser and use another one. See this page: https://issues.apache.org/activemq/browse/SM-169 for more information.

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread cellterry
Here is my code: function formatLink(cellvalue, options, rowObject) { return input type='button' value='test' onClick='javascript:test(\+options.rowId+\)'/; } Terry. Johannes Geppert wrote: great! can you contribute the sources? if

Re: Master-details JSP with Validation xml

2010-10-19 Thread Li Ying
Hi Dave: Thank you very much for your suggestion. I'd like to discuss a little more about this issue. Hope it don't bother you. Let's think about a situation which i think it is very common in web app. 1, We need a page to insert/modify our data. 2, We need to display the input page, and

Re: Master-details JSP with Validation xml

2010-10-19 Thread Dave Newton
Trying to wedge all functionality into a single action will eventually lead to problems, and/or hacks. And interceptor stacks are *designed* to be customized: that's their point. That's where application-wide behavior is supposed to live... Not that a custom prepare interceptor is difficult, as

Re: Overriding Templates

2010-10-19 Thread Li Ying
Hi Maurizio: In this document: http://struts.apache.org/2.2.1/docs/template-loading.html It says the template should be searched in (in this order): 1, web app folder 2, class path But i have read the Struts2.2.1 source code, it creates TemplateLoader in a different order, as i described in my