RE: Validate method not working in Action after using Interceptor

2011-06-07 Thread Pankaj Shrivastava
Did you mean to have only one interceptor in your stack? You stack has only one interceptor and none which invokes the validate() method. Perhaps you can try having your stack like this: OR better soln is You can copy over the default stack and

Re: Validate method not working in Action after using Interceptor

2011-06-07 Thread Chris Pratt
In your interceptor, you're replacing the logic from the DefaultWorkflowInterceptor with your own. What you really want to do is perform your work, then allow it to do it's job. So, instead of return invocation.invoke();, try return super.intercept(invocation); and see if that does more what you

Validate method not working in Action after using Interceptor

2011-06-07 Thread Nikul Suthar
Hi There, I'm pretty new to using Struts 2 for developing a web application. So I would be very thankful if someone can clear out this roadblock for me. I'm trying to write some custom validation code in method *public void validate()* in the Action class. I also created an interceptor extending

Re: XWork

2011-06-07 Thread Maurizio Cucchiara
Hi Frans, try to change the doctype definition with: http://struts.apache.org/dtds/xwork-validator-config-1.0.dtd";> On 8 June 2011 00:13, Frans Thamura wrote: > this is the screen capture > > http://twitpic.com/58eyvp > > > On Wed, Jun 8, 2011 at 5:09 AM, Frans Thamura wrote: > >> we have also

Re: XWork

2011-06-07 Thread Frans Thamura
this is the screen capture http://twitpic.com/58eyvp On Wed, Jun 8, 2011 at 5:09 AM, Frans Thamura wrote: > we have also the 2.2 in sf.net > > but the problem in old version of struts > > > http://cimande.svn.sourceforge.net/viewvc/cimande/trunk/WebContent/WEB-INF/lib/ > > > -- > Frans Thamura

Re: XWork

2011-06-07 Thread Frans Thamura
i believe struts 2.0.x not the 2.2.x F On Wed, Jun 8, 2011 at 5:03 AM, Jason Pyeron wrote: > > -Original Message- > > From: Frans Thamura [mailto:fr...@meruvian.org] > > Sent: Tuesday, June 07, 2011 17:51 > > To: Struts Users Mailing List > > Subject: Re: XWork > > > > our old struts2 u

Re: XWork

2011-06-07 Thread Frans Thamura
we have also the 2.2 in sf.net but the problem in old version of struts http://cimande.svn.sourceforge.net/viewvc/cimande/trunk/WebContent/WEB-INF/lib/ -- Frans Thamura Chief of Advisory Meruvian. Integrated Hypermedia Java Solution Provider. Mobile: +628557888699 Blog: http://blogs.mervpolis.

RE: XWork

2011-06-07 Thread Jason Pyeron
> -Original Message- > From: Frans Thamura [mailto:fr...@meruvian.org] > Sent: Tuesday, June 07, 2011 17:51 > To: Struts Users Mailing List > Subject: Re: XWork > > our old struts2 using the non maven version. we use ant.. > > and we got problem with DTD of XWork Roger that. But please

Re: XWork

2011-06-07 Thread Frans Thamura
our old struts2 using the non maven version. we use ant.. and we got problem with DTD of XWork and our newest project using maven, the problem gone. but we still need workaround for this xwork. F On Wed, Jun 8, 2011 at 4:48 AM, Jason Pyeron wrote: > > -Original Message- > > From: Fra

RE: XWork

2011-06-07 Thread Jason Pyeron
> -Original Message- > From: Frans Thamura > Sent: Tuesday, June 07, 2011 16:43 > To: Struts Users Mailing List > Subject: XWork > > hi all > > we know that opensymphony has final day > > any idea for xwork implementation for old struts2 version I am not sure I understand your question

XWork

2011-06-07 Thread Frans Thamura
hi all we know that opensymphony has final day any idea for xwork implementation for old struts2 version F

Re: Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
On a follow-up of the previous post, the error is the same in Tomcat. It happens whenever this line is added to applicationContext.xml: Even if no xoxoGG env property is defined, if I add a default-value="YYY" to the above property Struts will say (for every action): There is no Action mapped for

Adding a JNDI lookup yields unexpected Struts errors

2011-06-07 Thread Miguel
Dear all, I am having a strange problem and was hoping anyone knows why this is happening. My web app was working correctly and running in development in jetty running with maven. I'm using Spring's to inject dependencies. The problem arises when I add a JNDI entry. To do so I: 1) change my con

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
2011/6/7 Stephen Ince : > Thanx a lot Lukask! That was quick. Please test it if you can, thanks in advance! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Thanx a lot Lukask! That was quick. Steve - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 7:40 AM Subject: Re: ognl and getText for s:textfield/placeholder Ok, solved, please wait a bit, SNAPSHOT version should be available soo

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
Ok, solved, please wait a bit, SNAPSHOT version should be available soon ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/6/7 Stephen Ince : > > Lukasz, >  I reported the issue. Thx again for you time. > > Steve > ht

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Lukasz, I reported the issue. Thx again for you time. Steve https://issues.apache.org/jira/browse/WW-3644 - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 7:07 AM Subject: Re: ognl and getText for s:textfield/placeholder htt

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
https://issues.apache.org/jira/browse/WW 2011/6/7 Stephen Ince : > Sure. Can you point to the where I should report the issue? > placeHolder will be an issue for HTML5 and anyone wanting to use resource > keys. > > Steve > - Original Message - From: "Lukasz Lenart" > > To: "Struts Users M

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Sure. Can you point to the where I should report the issue? placeHolder will be an issue for HTML5 and anyone wanting to use resource keys. Steve - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 6:57 AM Subject: Re: ognl and get

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
It isn't supported, but it can be, I think. Could you register an issue ? It's not only related to Dojo tags (as TextField doesn't have Dojo version). The change should be simple: AbstractUITag, line 294 public void setDynamicAttribute(String uri, String localName, Object value) throws JspEx

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Lukasz, Thx for your response. A resource key. I tried that. It seems that strut2 will only ognl evaluate certains fields and "placeholder" is not one of the fields. Is there a flag that I can tell struts2 to evaluate placeholder field. The following did work: value='%{getText("placeHolder.U

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
2011/6/7 Stephen Ince : > placeholder="%{getText('placeHolder.Username')}" id="j_username" > name="j_username" cssStyle="width:180px" /> What is placeHolder, a bean or a resource key ? If bean: "%{getText(placeHolder.Username)}" If key: '%{getText("placeHolder.Username")}' Regards -- Łukasz

ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
I am trying to use ognl/getText to assign a placeholder attribute for a s:textfield. I can not seem to get it to work. I am using struts 2.2.3. e.g. My hunch is that the placeholder field is not being evaluated . I am using dojo with struts2 and would like to add placeholder attributes where n