Re: Struts2 actions' extension

2008-02-19 Thread Filipe David Manana
And, set it in the struts.properties file as the ActionMapper: struts.mapper.class=org.apache.struts2.dispatcher.mapper.LsfwebMapper On Feb 19, 2008 10:09 AM, Filipe David Manana <[EMAIL PROTECTED]> wrote: > I managed to find a solution to be able to use extensionless actions. > J

Re: Struts2 actions' extension

2008-02-19 Thread Filipe David Manana
t()) ) > return null; > } > > return super.dropExtension(name); >} > } > > Don't forget to place this class in a directory named org/apache/struts2/dispatcher/mapper/ within your source directory, src/main/java/ (if using maven). On Sat, Jan

Struts2 field validation and conversion

2008-02-19 Thread Filipe David Manana
happens. With the shortCircuit, however the user always gets the 2 errors messages, as expected. So my question, is the RequiredFieldValidator is applied after conversion? If conversion fails, the RequiredFieldValidator catches a blank value for the field? cheers -- Filipe David Manana, [E

Re: Struts2 action returning dynamically created Results

2008-02-12 Thread Filipe David Manana
t was not working before, but now I changed the order of interceptors in my interceptor stack and is working :) If anyone interested in more details, let me know. Thanks anyway. On Feb 12, 2008 2:04 PM, Filipe David Manana <[EMAIL PROTECTED]> wrote: > Yes I need. Because in the S2 configura

Re: Struts2 action returning dynamically created Results

2008-02-12 Thread Filipe David Manana
[EMAIL PROTECTED]> wrote: > Are you sure you need to do it like this? You can use OGNL expressions in > your S2 configuration file to do things like set a URL to redirect to etc. > > Dave > > > --- Filipe David Manana <[EMAIL PROTECTED]> wrote: > > > Hi, >

Struts2 action returning dynamically created Results

2008-02-12 Thread Filipe David Manana
ache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) Am I missing something? cheers -- Filipe David Manana, [EMAIL

Re: Struts 2.0.11 + DWR 2.0 + ajax validation

2008-02-05 Thread Filipe David Manana
nd dwr.xml. > > wou would require dwrxxx.jar for this in web-inf/lib and struts theme="ajax" > in the jsps. > > A detailed explanation is given @: > http://java-x.blogspot.com/2007/03/reverse-ajax-with-direct-web-remoting.html > even i learnt it from there. > &

Struts 2.0.11 + DWR 2.0 + ajax validation

2008-02-05 Thread Filipe David Manana
Hi, Has anyone been able to put dwr 2.0 working with struts 2.0.11 ajax validation? -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them. - To unsubscribe, e-mail: [EMAIL

Re: Struts2 tags loops

2008-02-01 Thread Filipe David Manana
t that I'm aware of; easier to use IMO. > > Dave > > -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts2 tags loops

2008-01-31 Thread Filipe David Manana
Hi, Is there any way to iterate over an integer range with the tag? I have an integer property (pageCount) in my action and I want to print all the integer values between 1 and this property in my JSP. cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those

Struts 2.0.11 Validation and Conversion

2008-01-28 Thread Filipe David Manana
nixGroupId' on 'class actions.lsf.accounts.AccountAction: Error setting expression 'account.unixGroupId' with value'[Ljava.lang.String;@52f9b2' Any ideia why this is not working? By the way, I also tried not using custom conversions / validations, that is, using the

Struts2 Annotations Validation of an Object's property

2008-01-24 Thread Filipe David Manana
accomplish the same thing? For simple properties I just do something like this before the setter method: @RequiredStringValidator(message = "Please enter your name", trim = true) cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not

Re: Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
ewton <[EMAIL PROTECTED]> wrote: > --- Filipe David Manana <[EMAIL PROTECTED]> wrote: > > Basically I am creating a page that contains a select box. > > When the user changes the selected item, it is redirected to an URL. > > The value of each item in the select box cor

Re: Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
ECTED]> wrote: > --- Filipe David Manana <[EMAIL PROTECTED]> wrote: > > is there anyway to get, from within an Action's code, a string with > > the full URL for that action (including query string with current > > value of the parameters) ? > > I a

Struts2 getting action's full URL

2008-01-23 Thread Filipe David Manana
hanks -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Struts2]blank extension

2008-01-13 Thread Filipe David Manana
oyoteAdapter.service(CoyoteAdapter.java > :263) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > Http11Protocol.java:584) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > java.lang.Thread.run(Thread.java:619) > > > -- > tamtam > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Re: Struts2 actions' extension

2008-01-12 Thread Filipe David Manana
handled with mod_jk > > On Jan 12, 2008 6:28 PM, Filipe David Manana <[EMAIL PROTECTED] > wrote: > > Hi, > > > > I have set the property struts.action.extension to the empty string. I > can > > now invoke my actions with the default ".action" suffix,

Struts2 actions' extension

2008-01-12 Thread Filipe David Manana
-- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Struts 2 and Container resources

2008-01-10 Thread Filipe David Manana
Hi, How can I access a Container's resource within the code of an action? cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Struts 2 and Dojo toolkit

2008-01-04 Thread Filipe David Manana
/cdbweb2/lsf/accounts/list.action";. So I have to use the dojo.require statement, I suppose. Struts 2 is already bundled with Dojo, all the dojo .js files are in the struts-core.jar archive. How should I proceed to use the dojo.requiremethod? cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Struts 2 - getting properties values inside Actions' code

2007-12-28 Thread Filipe David Manana
Hi, Does any of you knows a way to get the value for a property value (defined in struts.properties / struts.xml) from Java code (an action code for example) ? Lets say, I want to know the value of "struts.devMode" property. How can I get it in Java code? cheers -- Filipe David Mana

Struts 2 XML based validation not working

2007-12-21 Thread Filipe David Manana
ion.java `-- ListAction.java~ 8 directories, 14 files [EMAIL PROTECTED]:~/apache/struts/cdbweb2/src/main/java/actions$ When I test my webapp this validation is completely ignored. Why is that so? I am using Java 5, Struts 2.0.11 and jetty/tomcat. thank you -- Filipe David Manana, [EMAIL P

Struts2 redirect action result type and URI query string

2007-12-20 Thread Filipe David Manana
...). I have the name and namespace of my action. Can I somehow append the query string to the URI generated by the result element? My code is the following: ${actionName} ${actionNameSpace} true Thank you, -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are li

Re: action namespace

2007-12-20 Thread Filipe David Manana
It works! :) Thank you. On 12/20/07, Omkar patil <[EMAIL PROTECTED]> wrote: > > Filipe, > > Try this in the intercept method - ai.getProxy().getNamespace() > (where ai is the ActionInvocation instance being passed in into the > intercept method) > > - Omkar > &g

action namespace

2007-12-20 Thread Filipe David Manana
.info("CheckLoginInterceptor inv, actionName: " + ac.getName()); return ai.invoke(); } Now, how do I get the action's namespace, as defined in its package's namespace in struts.xml ? thanks -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Struts 2 and SSL

2007-12-19 Thread Filipe David Manana
(or to another action) to its https counterpart? 3) Is there any straight forward way for retrieving from the view the name and namespace of the action that it corresponds to? thank you -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Re: Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-18 Thread Filipe David Manana
t; --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.

Re: [struts] Struts 2 + Sitemesh decorator mapping

2007-12-15 Thread Filipe David Manana
I fixed the problem: the pattern /*/lsf/* worked :) Thank you for replying. On Dec 14, 2007 9:23 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Filipe David Manana wrote: > > Anyone using Struts 2 with multiple Sitemesh decorators? > > Yep. > > You mention using m

Struts 2 + Sitemesh decorator mapping

2007-12-14 Thread Filipe David Manana
rowse into http://localhost:8080/cdbweb2/lsf/users/list.action I tried also with the patterns /lsf* , /lsf/users/* , /lsf/users/list.jsp , etc and it doesn't work either. Only works with the /* pattern. Any suggestions? Thank you -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts a

Struts 2 + Spring 2 + JPA + Oracle + Connection Caching/Pooling

2007-12-11 Thread Filipe David Manana
done it before? -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those not trained to see them.