Re: [S2] Struts with Web Services

2008-04-04 Thread Dustin S.
We've had great success with CAS. Its pretty trivial to 'cas-ify' a web application and as wes mentioned it is very nice for a single sign on solution. They also have a very active mailing list. On Fri, Apr 4, 2008 at 3:59 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > Production integration ex

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Dustin S.
The Maven dependency plugin may be useful to you as well. http://maven.apache.org/plugins/maven-dependency-plugin/index.html , specifically the dependency:tree goal. On Fri, Apr 4, 2008 at 3:27 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Jonny Cavell wrote: > > > I use Maven, and if you look a

Re: [S2] Struts with Web Services

2008-04-04 Thread Wes Wannemacher
Production integration experience? No... I evaluated it and did a quick proof-of-concept on a project once. We ended up sticking with the in-house option, which wasn't bad, but it was an apache mod, so we periodically looked for alternatives because we were always tied to mod_jk or mod_proxy becau

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Laurie Harper
Jonny Cavell wrote: I use Maven, and if you look at struts 2.0.11.1's dependencies (http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core/2.0.11.1) you'll see that it's Freemarker version 2.3.8 it depends on. I can't 2.0.11.1 != 2.1.1 :-) override this in Maven, even if I attem

Re: any struts 2 unit testers out there?

2008-04-04 Thread Laurie Harper
As Ian says, the mock objects supplied by XWork may make this all a lot easier, but in any case all this is predicated on the fact that you're using ActionSupport's implementation of TextProvider which doesn't make provision for mocking at test time. I think it would make a great deal of sense

Re: issue

2008-04-04 Thread Laurie Harper
Niral Trivedi wrote: Hi Dave, Thanks for the reply. I've actually tried with #keepRemoveRadio as well but got same result. In fact, I got it working by putting "john" or "doe" as below for property: That makes sense, since value="john" will try to evaluate 'john' as an expression (i.e. wil

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread Laurie Harper
David Durham, Jr. wrote: On Fri, Apr 4, 2008 at 1:39 PM, akash agrawal <[EMAIL PROTECTED]> wrote: It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put i

Re: Struts 2 exception problem

2008-04-04 Thread Jim Krygowski
Hi Oguzhan- We've run into the *exact* same problem. Our interceptor is returning "error" but that return value is not respected when the result is rendered. It makes me wonder what the value of returning the invocation result is in the first place... Just stepping through the code and bro

Re: [OT] What do you code today?

2008-04-04 Thread Frank W. Zammetti
Ted Husted wrote: I'm trying to put together a list of the typical types of applications that enterprise developer write in real life. My current main project, which has been my main project for about two years now, is an application that seeks to unite all the back-office applications in o

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:39 PM, akash agrawal <[EMAIL PROTECTED]> wrote: > It is a Boolean property but I still think it should work no matter whether > it is boolean or Boolean. APIs I am using are not mine so I can't change the > bean, but there are workaround I can put in although they aren't

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
David, It is a Boolean property but I still think it should work no matter whether it is boolean or Boolean. APIs I am using are not mine so I can't change the bean, but there are workaround I can put in although they aren't pretty. I was hoping something can be done on the framework (Struts2)

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 1:17 PM, akash agrawal <[EMAIL PROTECTED]> wrote: > myBean is not null, There are other field which are not boolean and I do get > them fine. Is it boolean, or Boolean? I've seen situations where I was hoping isX would return a reference to a Boolean (when reference with J

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
myBean is not null, There are other field which are not boolean and I do get them fine. Thx --- On Fri, 4/4/08, Musachy Barroso <[EMAIL PROTECTED]> wrote: > From: Musachy Barroso <[EMAIL PROTECTED]> > Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz() > To: "Struts Us

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread Musachy Barroso
Are you sure that "myBean" is not null? musachy On Fri, Apr 4, 2008 at 2:05 PM, akash agrawal <[EMAIL PROTECTED]> wrote: > Here is my JSP snippet. isXyz() does not work for me. What am I doing > incorrectly? > > > > required="true" tooltip="xyzTooltip"/> > > Thx. > > > --- On Fri, 4/4/08,

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Here is my JSP snippet. isXyz() does not work for me. What am I doing incorrectly? Thx. --- On Fri, 4/4/08, Musachy Barroso <[EMAIL PROTECTED]> wrote: > From: Musachy Barroso <[EMAIL PROTECTED]> > Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz() > To: "Struts U

Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread Musachy Barroso
Struts 2(OGNL technically speaking) will call getX() or isX() if one of them exist, when "y.x" is evaluated. musachy On Fri, Apr 4, 2008 at 1:37 PM, akash agrawal <[EMAIL PROTECTED]> wrote: > Hi, > > Struts 2 tags have value attribute where name of property is used to read > the value from the

Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Hi, Struts 2 tags have value attribute where name of property is used to read the value from the bean. If the property is lets say xyz, tag looks for getXyz(). Is this possible to customize that so that instead of getXyz(), it looks for isXyz()? My boolean property has accessors which starts wi

Re: Struts 2 exception problem

2008-04-04 Thread jimski
Hi Oguzhan- We've run into the *exact* same problem. Our interceptor is returning "error" but that return value is not respected when the result is rendered. It makes me wonder what the value of returning the invocation result is in the first place... Just stepping through the code and browsi

Re: [OT] What do you code today?

2008-04-04 Thread Chris Pratt
I'm still working on externally facing applications. The company has a few different types of user that it supports (Members who receive services, Providers who provide the services, Brokers who sell the service, and Clients that pay for their members to receive services). Each of these audiences

Re: [OT] What do you code today?

2008-04-04 Thread David Durham, Jr.
On Fri, Apr 4, 2008 at 6:14 AM, Ted Husted <[EMAIL PROTECTED]> wrote: > So, if anyone else is up for sharing, I'd be interested in hearing > what sort of things other people are doing these days. (If your not > comfortable posting the list, feel free to mail me direct.) I'm working with python

Re: Connecting s:autocompleter and s:div

2008-04-04 Thread Musachy Barroso
Could you post a minimal example of your jsp? musachy On Fri, Apr 4, 2008 at 11:06 AM, manishbel <[EMAIL PROTECTED]> wrote: > > Thanks for the response Musachy, > > The problem still persists. i went ahead and tried to follow one of the > examples on struts showcase " A div > that will listen

Re: Connecting s:autocompleter and s:div

2008-04-04 Thread manishbel
Thanks for the response Musachy, The problem still persists. i went ahead and tried to follow one of the examples on struts showcase " A div that will listen to events to refresh and start/stop autoupdate". the result was the same. I also tried by copying the whole example into my application

Re: rrrrr...why my field returns null????

2008-04-04 Thread xianwinwin
I checked it on both IE7 and FireFox - no error on the js and the value is NULL any idea?!?! Laurie Harper wrote: > > If it works without theme set to ajax, it's probably a client-side > issue. What browser are you using? Are there any Javascript errors > reported? > > L. > > xianwinwin w

Re: [OT] What do you code today?

2008-04-04 Thread Martin Gainty
Could you suggest a pattern which would most closely match the requirements for the typical workflow application? When I think of workflow I think of a uber-dispatcher who assigns work based on a)capabilities of the resource b)availability of the resource c)priority of product/service Any thoughts

Re: any struts 2 unit testers out there?

2008-04-04 Thread Ian Roughley
Or look at the xwork / s2 test cases - there are some test classes in there that can help you. /Ian Karr, David wrote: And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? -Original Message- From: paulbrickell [mailto:[EMAIL P

RE: any struts 2 unit testers out there?

2008-04-04 Thread Karr, David
And did you investigate using either of the common Java frameworks for Mock objects, jMock and EasyMock? > -Original Message- > From: paulbrickell [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2008 3:04 AM > To: user@struts.apache.org > Subject: RE: any struts 2 unit testers out th

Re: Struts 2.1 TabbedPanel scenario

2008-04-04 Thread Shoaib Gauhar
It has definitely solved a big problem. Now, i can show the correct data of two tabs, submit them and have correct results. Actually, my case is very simple, as i told you that the two tabs will not be related, so, each tab will be submitted independently without needing each others data because t

Re: struts.xml

2008-04-04 Thread Adam Hardy
I completely jumped the gun. My test was flawed and on fixing it, I found that struts was reloading its config on my dispatcher.init() call, and then again just before the request but without my config and so ignoring the configured Dispatch that I set! I tried the other approach but I can't s

[OT] What do you code today?

2008-04-04 Thread Ted Husted
While outward facing web application get the most publicity, I know that most of us are heads-down on internally-facing applications designed for fellow employees to use over the corporate intranet. I'm trying to put together a list of the typical types of applications that enterprise developer w

Re: Tiles in 1.3.9

2008-04-04 Thread Antonio Petrelli
2008/4/4, Mihai Scripca <[EMAIL PROTECTED]>: > > dont you think it would be better practice naming tiles like this: > tile.def (*.def are like .jsp but virtual pages) > > and only class tiles should be named with dot first like this .class-name? Well, there is no guideline/best practice defined

Re: Tiles in 1.3.9

2008-04-04 Thread Mihai Scripca
dont you think it would be better practice naming tiles like this: tile.def (*.def are like .jsp but virtual pages) and only class tiles should be named with dot first like this .class-name? i point the issue by myself. the main issue is i have not given the in struts-config.xml. after i giv

Re: Tiles in 1.3.9

2008-04-04 Thread balaji.m.cs
i point the issue by myself. the main issue is i have not given the in struts-config.xml. after i give its working... thanks for giving me the best pratices on tiles... if u still find any issues in my code pls say so that i can have a correction Lukasz Lenart wrote: > > Hi, > >> >>

RE: any struts 2 unit testers out there?

2008-04-04 Thread paulbrickell
Actually thats an interesting post. To my mind it doesn't demonstrate a solution. It demonstrates the problem. Here is why I think this. Struts 2 is just frankly brilliant for people doing test first development. The classes you create really are POJOs. There are no dependencies on any framework

Re: form within form

2008-04-04 Thread Ehteshamul Haque
I dont think so. Can you please tell why we need that? you can use lookup dispatch action if you want to chose action depending upon criterion. Thank you. Ehteshamul Haque You rock. T

RE: any struts 2 unit testers out there?

2008-04-04 Thread paulbrickell
Actually thats an interesting post. To my mind it doesn't demonstrate a solution. It demonstrates the problem. Here is why I think this. Struts 2 is just frankly brilliant for people doing test first development. The classes you create really are POJOs. There are no dependencies on any framework

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-04 Thread Jonny Cavell
I use Maven, and if you look at struts 2.0.11.1's dependencies (http://www.mvnrepository.com/artifact/org.apache.struts/struts2-core/2.0.11.1) you'll see that it's Freemarker version 2.3.8 it depends on. I can't override this in Maven, even if I attempt to exclude it and force the latest version o

Re: Tiles in 1.3.9

2008-04-04 Thread Antonio Petrelli
2008/4/4, Lukasz Lenart <[EMAIL PROTECTED]>: > > Hi, > > > > > > > > forward=".tiles-defs"/> > > > > > > tiles-defs.xml > > Good catch Lukasz! Now I remember that: *Struts-Tiles does not support forward actions, only forwards inside normal actions* Antonio

Re: Tiles in 1.3.9

2008-04-04 Thread Lukasz Lenart
Hi, > > > > > tiles-defs.xml There is good practice to start Tiles definitions with dot -> .tiles-defs I don't see ant forwards in your struts-config.xml, could you past them here? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart