SOAP on REST

2010-10-18 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: After upgrading from Struts 2.0.x to 2.2.x, static content no longer served...

2010-10-18 Thread Lukasz Lenart
2010/10/18 Eric Nielsen : > Here are my filters from web.xml > >     >      struts-cleanup >       > org.apache.struts2.dispatcher.ActionContextCleanUp >     >     >      sitemesh >       > org.apache.struts2.sitemesh.FreemarkerPageFilter >     >         >          Spring OpenEntityManagerInViewFil

Re: Struts2 threading in a Java EE application server environment

2010-10-18 Thread Lukasz Lenart
It's a Struts2 specific interceptor to do background work, please read about ExecuteAndWaitInterceptor. Just that interceptor is using new Thread, normally Struts2 don't create additional threads. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javars

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

2010-10-18 Thread Eric Nielsen
Li Ying wrote: >Are your setting: > >? Yes, I was intentionally setting the extension to the empty string. This used to work under the SmartUrls plugin in 2.0.x days. I've dug though and found the comments in his source about how the author made that work. First switched to using "action" as the

Re: Struts2 threading in a Java EE application server environment

2010-10-18 Thread Phil Adams
Specifically, the thread context information placed on the original thread by the servlet container that provides the J2EE name associated with the webapp and component, etc. This information is (as far as I know) specific to the servlet container implementation and is not portable in any way, so

Re: Struts2 threading in a Java EE application server environment

2010-10-18 Thread Dave Newton
What information is missing? Dave On Mon, Oct 18, 2010 at 11:34 PM, Phil Adams wrote: > Hi, > I'm trying to help a customer that is using Struts2 within a Java > EE-compliant application server.  Unfortunately, I have no real > experience with Struts2 so I was hoping someone on this mailing list

Struts2 threading in a Java EE application server environment

2010-10-18 Thread Phil Adams
Hi, I'm trying to help a customer that is using Struts2 within a Java EE-compliant application server. Unfortunately, I have no real experience with Struts2 so I was hoping someone on this mailing list could offer some help. The main issue that I'm dealing with is this... An HTTP request is rec

Re: jqGrid with Struts and Spring

2010-10-18 Thread Dave Newton
Cool; glad you worked it out. Dave On Mon, Oct 18, 2010 at 10:10 PM, cellterry wrote: > > Yes, you are right. After removing it, the error is removed. > > Terry. > > > Dave Newton-6 wrote: >> >> If the Spring plugin is deployed the object factory should already be >> set to "spring" by the plugi

Re: Overriding Templates

2010-10-18 Thread Li Ying
Hi adam: what theme are you using? The default theme in Struts2.2.1 is [xhtml]. Maybe you need change the default theme or the theme of your tag to [simple]. Can you show us your setting file(struts.xml and so on) and your jsp code? 2010/10/19 adam pinder : > > > > I have just upgraded struts

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

2010-10-18 Thread Li Ying
By the way, if you DO want to set the extension of action to "", try: See if it works. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

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

2010-10-18 Thread Li Ying
Are your setting: ? Try delete it, use the default setting instead. I take a quick look of the struts source code. In [org.apache.struts2.dispatcher.mapper.DefaultActionMapper], it use the extension of request url to detect if this request should be mapped to an Action. If you set this consta

Re: jqGrid with Struts and Spring

2010-10-18 Thread cellterry
Yes, you are right. After removing it, the error is removed. Terry. Dave Newton-6 wrote: > > If the Spring plugin is deployed the object factory should already be > set to "spring" by the plugin, IIRC. > > I'm more concerned by the reference to the convention plugin: are you > intending to us

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

2010-10-18 Thread Eric Nielsen
Is there a good/standard way to use FreeMarker (or Velocity) to template emails sent by a Struts2 application? I hacked up something that works, but my solution doesn't know about struts2, so it can't use the taglibs to produce URL.  (Ie sending an email for a new account with an activation link).

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

2010-10-18 Thread Eric Nielsen
I recently upgraded from Struts 2.0.x + SmartURLs to Struts 2.2.1 + Convention plugin.  However after upgrading all my static content is no longer being served.  I read all the release notes along the way that I could find and nothing suggests that my old approach should have stopped working.  Can

Overriding Templates

2010-10-18 Thread adam pinder
I have just upgraded struts2 version from 2.0.11 to 2.2.1 and one issue seems to be that i have amended templates actionerror.ftl actionmessage.ftl and they were placed into WebContent\template\simple folder in the web app and with 2.0.11 they overrided the templates in the struts2 core j

Re: RE: Character Encoding Error using new filters

2010-10-18 Thread Dave Newton
That defines the encoding of the web.xml file itself... On Oct 18, 2010 10:32 AM, "Martin Gainty" wrote: > > Hi Zoran > > can you confirm the encoding attribute at the top of your web.xml e.g. > > > in which case you *should* be able to map > U+00C6Æc3 86LATIN CAPITAL LETTER AE > http://www.utf8-

RE: Character Encoding Error using new filters

2010-10-18 Thread Martin Gainty
Hi Zoran can you confirm the encoding attribute at the top of your web.xml e.g. in which case you *should* be able to map U+00C6Æc3 86LATIN CAPITAL LETTER AE http://www.utf8-chartable.de/ please confirm Martin Gainty __ Verzicht und Vertraulichk

Re: result chain action parameters value

2010-10-18 Thread Ryan Beckes
Wataru, I'm not sure what you're looking for. It seems you are trying to match the first wildcard-matched value with the id and the actionName? I've never tried this, but perhaps you could split the two values like this? {1} Ryan 2010/10/17 > Dear struts Users. > > I've been using Wi

Re: field value causing NumberFormatException and breaking Action

2010-10-18 Thread Nabeel Saad
Yes Li Ying, I agree. I did follow your suggestion of looking at the stack trace and going through the debug of the application. I found that: ParametersInterceptor.setParametersp(Object, ValueStack, Map) Was called at some point. Running thru the code there, the parameters were already dupli

RE: display tag problem

2010-10-18 Thread Rudreshmr
can you please explain with action class Alexandru BARBAT wrote: > > Hi, > > I suppose you didn't write the call for displaytag correctly > > I give you an example (if you will still not find the problem plese send > an > excerpt from your displaytag code) > >class="dateTable" export=

Re: field value causing NumberFormatException and breaking Action

2010-10-18 Thread Li Ying
I think it is perhaps a JBoss error. Because the parameters in ServletRequest should be immutable, that means Struts (or other frameworks) has no chance to change the Request parameters. See: http://download.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html#getParameterMap%28%29 So the

Re: field value causing NumberFormatException and breaking Action

2010-10-18 Thread Li Ying
I think it is [Parameters Interceptor]: http://struts.apache.org/2.2.1/docs/parameters-interceptor.html You can set a break point in the [setXXX] method of your Action class, then you can find out who is invoking it from the [Call Stack]. > One other question, do you guys know where the "writing

Re: field value causing NumberFormatException and breaking Action

2010-10-18 Thread Kushan Jayathilake
Nabeel, You dont have to write parameters separately when submitting the form. say, you have a form called "test" * * inside that form you have various of struts html components, and your *struts.xml* file should be like this, * /pages/ext/summary.jsp * so when the form submitted your *per

Re: give suggestion data display base on the Locale

2010-10-18 Thread Zoran Avtarovski
I think you¹re missing the point. Instead of: Use Z. > please understand this: > > > > > > > > > listValue is a values of list. i am using iterator to traverse the list. now > on listValue, i want to put here internationalization concept.so that all > the list value can be display

Re: field value causing NumberFormatException and breaking Action

2010-10-18 Thread Nabeel Saad
Hello folks, Thanks for the replies Kushan and Li Ying. Reading through both of your emails: - Kushan, yes, my code for the class UserSearchAction has a field called: int searchType Along with a getter and setter for it like: public int getSearchType() public void setSearchType(int searchType

Re: give suggestion data display base on the Locale

2010-10-18 Thread singh123
please understand this: listValue is a values of list. i am using iterator to traverse the list. now on listValue, i want to put here internationalization concept.so that all the list value can be display based on Locale which store in a list. please suggest! Li Ying-2 wrote: > > You

Re: jqGrid with Struts and Spring

2010-10-18 Thread Dave Newton
If the Spring plugin is deployed the object factory should already be set to "spring" by the plugin, IIRC. I'm more concerned by the reference to the convention plugin: are you intending to use it? If not, it should not be deployed. If you are, and are *also* using XML config, you'll need to inclu

Re: jqGrid with Struts and Spring

2010-10-18 Thread Chris Pratt
The only things I can think of to check would be, do you have the struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you set the struts.objectFactory property to "spring"? (*Chris*) On Sun, Oct 17, 2010 at 7:34 PM, cellterry wrote: > > Hello all, > > I get a bug in fire