Re: How to use pattern matching wild-card in action names?

2008-10-10 Thread Binil Thomas
Thanks Lukasz, using: .. worked! Lukasz Lenart wrote: > > Hi, > > If Struts2 couldn't find action in given namespace ("/") it will try > to find it in default namespace ("/" is not default namespace), remove > namespace declaration and try once again. > > > Regards > -- > Lukasz > htt

Re: How to use pattern matching wild-card in action names?

2008-10-09 Thread Binil Thomas
To answer my own question - wildcards do not seem to work if the namespace is "/". I tried adding a namespace and it works. Can someone explain why this is so? {1} /index.jsp Thanks, Binil Binil Thomas wrote: &

How to use pattern matching wild-card in action names?

2008-10-09 Thread Binil Thomas
Hi all, I am trying to make my URLs more readable, and was hoping that I could use pattern-matching wildcards in action declarations. I have not been able to get it working so far. In my struts.xml, I have: index.jsp Now, /widgets get routed

How to force a URL not to go to the DefaultServlet

2008-09-29 Thread Binil Thomas
Hi all, I am using Struts 2.1.2 with the REST plugin. I am trying to stream a byte array stored in DB as the response to a particular request. I have mapped /* to the S2 FilterDispatcher. I have a class extending ActionSupport called ImageController, and its package is configured as an actionPac

Re: Using a servlet instead of FilterDispatcher

2007-10-19 Thread Binil Thomas
it's not included inside Struts2 anymore. > > On 10/19/07, Binil Thomas <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I am trying to package a S2 application as an OSGi system using Eclipse >> Equinox. For reasons I am not yet sure of, I have not be

Using a servlet instead of FilterDispatcher

2007-10-18 Thread Binil Thomas
Hi, I am trying to package a S2 application as an OSGi system using Eclipse Equinox. For reasons I am not yet sure of, I have not been able to get any servlet filters working in that environment. Is it possible to initialize S2 without using the FilterDispatcher? Is there a servlet equivalent of

Re: [S2] Validating two dates

2007-03-17 Thread Binil Thomas
://struts.apache.org/2.0.6/docs/fieldexpression-validator.html - not sure why I missed it! Thanks, Binil Binil Thomas wrote: > > Hi all, > I searched the archives on this, but could not find an answer - hence I am > posting it here. > > I have two date fields on my form. I want to

[S2] Validating two dates

2007-03-14 Thread Binil Thomas
Hi all, I searched the archives on this, but could not find an answer - hence I am posting it here. I have two date fields on my form. I want to validate that the first is always on or before the second. I want the error message to show next to the second date field. In my Action-alias-validati

Re: [S2] Getting the AJAX Form Validations to work

2007-03-12 Thread Binil Thomas
DEBUG: DEPRECATED: dojo.graphics.color.Color is now dojo.gfx.color.Color. 0.5 Thanks, Binil Binil Thomas wrote: > > Hi Musachy, > > Thanks for replying! > > On FB I see HTTP 404s on: > 1) http://localhost:8080/validations/stuts/dojo/src/widget/html/Tooltip.js > 2)

Re: [S2] Getting the AJAX Form Validations to work

2007-03-12 Thread Binil Thomas
Hi Musachy, Thanks for replying! On FB I see HTTP 404s on: 1) http://localhost:8080/validations/stuts/dojo/src/widget/html/Tooltip.js 2) http://localhost:8080/validations/stuts/dojo/src/widget/html.js 3) http://localhost:8080/validations/stuts/dojo/src/widget.js 4) http://localhost:8080/validati

Getting the AJAX Form Validations to work

2007-03-12 Thread Binil Thomas
Hi all, I am trying out the Ajax Form validations in S2. I see the validations example working perfectly fine in Showcase demo, but I can't get it to work on my machine. Here is what I did: 1) Created a maven project using the provided archetype. 2) Edited the struts.xml file to add my action: