Formatting in extended theme using Freemarker

2009-09-11 Thread ashwin ala
We currently display BigDecimal values in tags in our jsps. These values need to be formatted to display as currency values. Example: "123.35" should display as "123.35" I extended the simple theme to create a currency theme using only the text.ftl template file. I basically copied the text.ft

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Dave Newton wrote: > From: Dave Newton > Subject: Re: [S2.1.6] problem with value attribute for > To: "Struts Users Mailing List" > Date: Friday, September 11, 2009, 7:14 PM > Tommy Pham wrote: > > After going over the tags reference several times, I > can't seem to > > fi

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Musachy Barroso wrote: > From: Musachy Barroso > Subject: Re: [S2.1.6] problem with value attribute for > To: "Struts Users Mailing List" > Date: Friday, September 11, 2009, 6:34 PM > the url tag has an attribute to > include/exclude the context, if I > don't remember wron

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Dave Newton
Tommy Pham wrote: After going over the tags reference several times, I can't seem to figure out the simplest way to get all of the parameters in the URL as I'd like. If use the form's action attribute in conjunction with , I get an extra context path inserted. What do you recommend since the d

RE: [S2.1.6] problem with value attribute for

2009-09-11 Thread Martin Gainty
the attribute is called includeContext (if i am not incorrect) http://struts.apache.org/2.0.11.2/docs/url.html double-negatives anyone? Martin __ If you are not the intended recipient you are requested not to read the transmission > Date: Fri, 1

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Musachy Barroso
the url tag has an attribute to include/exclude the context, if I don't remember wrong. On Fri, Sep 11, 2009 at 4:30 PM, Tommy Pham wrote: > --- On Fri, 9/11/09, Tommy Pham wrote: > >> From: Tommy Pham >> Subject: Re: [S2.1.6] problem with value attribute for >> To: "Struts Users Mailing List"

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Tommy Pham wrote: > From: Tommy Pham > Subject: Re: [S2.1.6] problem with value attribute for > To: "Struts Users Mailing List" > Date: Friday, September 11, 2009, 5:55 PM > --- On Fri, 9/11/09, Musachy Barroso > > wrote: > > > From: Musachy Barroso > > Subject: Re: [S2

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Musachy Barroso wrote: > From: Musachy Barroso > Subject: Re: [S2.1.6] problem with value attribute for > To: "Struts Users Mailing List" > Date: Friday, September 11, 2009, 3:17 PM > I didn't even know that form had a > "value" attribute. You should not > use that. (this

Re: Jexl expressions

2009-09-11 Thread Dave Newton
Juan Pablo Pizarro wrote: Hello all, I'm trying to solve a complex script with jexl. The script has Map's, foreach and more. The objective is like a rule engine and then evaluate a expression. Can I use jexl to do that?, Somebody has a sample? Wrong mailing list, methinks. Dave -

Jexl expressions

2009-09-11 Thread Juan Pablo Pizarro
Hello all, I'm trying to solve a complex script with jexl. The script has Map's, foreach and more. The objective is like a rule engine and then evaluate a expression. Can I use jexl to do that?, Somebody has a sample? Thanks!! -- -- Visitá

Re: Struts jsp access java class

2009-09-11 Thread deepannair
Thanks Wes. it worked. Wes Wannemacher wrote: > > test="%...@fully.qualified.package.propertiesconfig@getCaptchaEnabled()}" /> > > -Wes > > On Fri, Sep 11, 2009 at 9:51 AM, deepannair wrote: >> >> I have a properties class which has soem properties being loaded from a >> remote system. In my

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Musachy Barroso
I didn't even know that form had a "value" attribute. You should not use that. (this might be due to our all-tags-inherit-from-UIBean prom) musachy On Fri, Sep 11, 2009 at 11:10 AM, Tommy Pham wrote: > Hi, > > I think I found another bug ... I want to include whatever parameters in URL > to a f

Re: Struts 2 dojo jsonrpc SMD problem

2009-09-11 Thread _dnyanesh
Specify the jason interceptor stack including default struts interceptor stack true and refer this in ur action def

[S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
Hi, I think I found another bug ... I want to include whatever parameters in URL to a form submit action. This is what I used. or shows the correct URL of: /recipes/Admin/Languages?sort=isoCode2. But when I use it in the : or The source code of the HTML shows: /recipes/Admin/Languages

Re: excpetion chaining to custom exception handler issue

2009-09-11 Thread Wes Wannemacher
Your exception mapping is likely throwing an exception then... think of it like this - 1 Action gets invoked 2 Oh-No! an exception -> go to the exception page 3 Exception page invoked 4 Oh-No! an exception -> go to #2 Xwork's chain result explicitly checks that an infinite chain sequence isn't

RE: excpetion chaining to custom exception handler issue

2009-09-11 Thread Denny Erinjery
Anybody have any ides about this?? I try to do an additional action class with redirectAction after the first chaining using a second action to avoid the 500 error but that didn't help me, debugging into the ActionChain interceptor from xworks shows that it went to an infinte error after checking

RE: adding parameters to a url - help please

2009-09-11 Thread C N Davies
I haven't used struts for several years but can't you bind you table/listbox to a bean property? Using RichFaces I can create a datatable, bind it to a bean property which is of type UIComponent, then when the user clicks on the component the OnClick action fires a bean action within which I can

RE: adding parameters to a url - help please

2009-09-11 Thread Farshad Rabbani
Thank you Wes. I thought I could have gotten around it without Javascript. The problem is, I have no idea how to get that started. Can anyone provide me with sample javascript that could potentially assist me in getting this done? I would like to have both the id and the value from the sele

Re: adding parameters to a url - help please

2009-09-11 Thread Wes Wannemacher
You'll have to use javascript, the tags' output is rendered server side, when the jsp page is rendered. -Wes On Fri, Sep 11, 2009 at 11:02 AM, Farshad Rabbani wrote: > > Hi, > > > >      I would like to be able to add whatever is the currently selected option > from my selection box as a parame

adding parameters to a url - help please

2009-09-11 Thread Farshad Rabbani
Hi, I would like to be able to add whatever is the currently selected option from my selection box as a parameter to the url shown below. I am able to attach the id as a parameter but I cannot figure out how to do the same for the selection box. I would greatly appreciate any

Re: realtive path and absolute path

2009-09-11 Thread Stephen Turner
On Fri, 11 Sep 2009 07:59:38 -0400, Martin Gainty wrote: (i dont know what a realtive path is) Martin Gainty I think he spelt it like that to confuse bots... Steve - To unsubscribe, e-mail: user-unsubscr...@struts.apach

Re: Struts jsp access java class

2009-09-11 Thread musomesa
Check out http://struts.apache.org/2.1.6/docs/bean.html Chris -Original Message- From: deepannair To: user@struts.apache.org Sent: Fri, Sep 11, 2009 9:51 am Subject: Struts jsp access java class I have a properties class which has soem properties being loaded f

Re: Struts jsp access java class

2009-09-11 Thread Wes Wannemacher
-Wes On Fri, Sep 11, 2009 at 9:51 AM, deepannair wrote: > > I have a properties class which has soem properties being loaded from a > remote system. In my jsp I need to access the java class. In traditional jsp > I have > [code] > <% > /* CAPTCHA */ > boolean captchaEnabledFlag=PropertiesConfig

Re: Struts jsp access java class

2009-09-11 Thread Paweł Wielgus
Hi, something like < s:if test="@com.something.propertiescon...@getcaptchaenabled()"/> it was on this list a while ago. Best greetings, Paweł Wielgus. 2009/9/11 deepannair : > > I have a properties class which has soem properties being loaded from a > remote system. In my jsp I need to access th

Re: Global Exceptions with Convention Plugin

2009-09-11 Thread Wes Wannemacher
The conventions plugin has a variable (constant) that you have to set so that your conventions actions extend a package other than conventions-default... It is toward the bottom of the page of the conventions plugin docs. -Wes On Fri, Sep 11, 2009 at 2:22 AM, RogerV wrote: > > Hi > > My project

Struts jsp access java class

2009-09-11 Thread deepannair
I have a properties class which has soem properties being loaded from a remote system. In my jsp I need to access the java class. In traditional jsp I have [code] <% /* CAPTCHA */ boolean captchaEnabledFlag=PropertiesConfig.getCaptchaEnabled(); %> <%if (captchaEnabledFlag) {%>

Re: Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Wes Wannemacher
Here is an example - @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations={"classpath*:applicationContext-test.xml"}) public class SomeActionTest { @Autowired @Qualifier("dao") private MyAction myAction; public void testOne() { ... The difference betw

Re: Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Wes Wannemacher
I'm pretty much with Nils here, except that I use later versions of JUnit that support the @RunWith annotation and there is a spring class that you can use so that you can specify an applicationContext.xml file. That way, I can create a spring config file with beans defined specifically for testing

Re: realtive path and absolute path

2009-09-11 Thread suhas kokal
hi,      The raltive path is jsp/abc.jsp  The absolute path is  http://localhost:8080/test/jsp/abc.jsp   Thanks Suhas Kokal --- On Fri, 11/9/09, srinu salnki wrote: From: srinu salnki Subject: Re: realtive path and absolute path To: "Struts Users Mailing List" Date: Friday, 11 September, 20

RE: relative path and absolute path

2009-09-11 Thread C N Davies
Relative path is a path relative to the current directory, for instance if you home directory was c:\temp and you wanted to use an absolute path to the "documents" subdirectory of c:\temp you would use c:\temp\documents, a relative path would be "documents" assuming your current working directory

RE: realtive path and absolute path

2009-09-11 Thread Martin Gainty
A full path or absolute path is a path that points to the same location on one file system regardless of the working directory or combined paths. It is usually written in reference to a root directory. A relative path is a path relative to the working directory of the user or application relat

Re: Problem with result returning from interceptor

2009-09-11 Thread jcllings
jcllings wrote: > > OK, I was able to get the config-browser to display the result. Is it OK > to use chain, as I have below? All I'm really trying to do is force the > user to a specific page but I have to call an action to populate tables > and list boxes and stuff on that page. > >

RE: Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Martin Gainty
send me your code and spring config I could setup a surefire harness for you if you already have a pom.xml send that also or I'll create a new pom.xml Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Na

Re: Problem with result returning from interceptor

2009-09-11 Thread jcllings
jcllings wrote: > > Hmmm on second thought, perhaps if it is a global-result, you should > be able to see it on all actions? Just a guess because I don't see that > in my case. > > Jim C. > OK, I was able to get the config-browser to display the result. Is it OK to use chain, as I have

Re: Problem with result returning from interceptor

2009-09-11 Thread jcllings
jcllings wrote: > > I don't think the config-browser can be used like this. I have to select > an > action in order to see the results returned and this isn't an action. It's > an interceptor. > > Jim C. > Hmmm on second thought, perhaps if it is a global-result, you should be able to

Re: Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Nils-Helge Garli Hegvik
If it's unit testing you want to do, can't you just test your actions without involving Spring or anything else? I usually just create a unit test where I instantiate my action, set the aproriate dependencies, and then just call the appropriate execute method. Nils-H 2009/9/11 Diego Manilla Suáre

Testing with Spring + Struts 2 + TestNG

2009-09-11 Thread Diego Manilla Suárez
Hi. I've been struggling to have tests for my Struts 2 actions working. I'm using Struts 2 actions created by Spring, by the means of the Struts 2 Spring plugin. Both Struts 2 and Spring provide their own base classes to create test units, and since Java doesn't allow multiple inheritance, I'

Re: Problem with result returning from interceptor

2009-09-11 Thread jcllings
Check it out with the config-browser -- you should see on the results tab if your login result is really there. Chris I don't think the config-browser can be used like this. I have to select an action in order to see the results returned and this isn't an action. It's an interceptor. Jim

Re: realtive path and absolute path

2009-09-11 Thread srinu salnki
Thanks suhas for more clarification : Say I had deplayed a application nammed test in jboss so there i have one link: http://localhost:8080/test/jsp/abc.jsp for this what is the relative path and the absolute path. regards Sunil On Fri, Sep 11, 2009 at 2:19 PM, suhas kokal wrote: > hi, >

Re: Problem testing my action when I’ve g ot a springbean inside the validators.xml

2009-09-11 Thread cmartin81
Anyone? -- View this message in context: http://www.nabble.com/Problem-testing-my-action-when-I%E2%80%99ve-got-a-springbean-inside-the-validators.xml-tp24862185p25397337.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: realtive path and absolute path

2009-09-11 Thread suhas kokal
hi,   Absolute path starts from /ContextName/... Relative path does not start from / but with the URL u declare in the configuration path   Thanks Suhas Kokal --- On Fri, 11/9/09, srinu salnki wrote: From: srinu salnki Subject: realtive path and absolute path To: user@struts.apache.org Date:

realtive path and absolute path

2009-09-11 Thread srinu salnki
Hi I am new to struts..pls.can u tell me this difference. what is the difference b/w relative path and absolute path. srinu