StrutsSpringTestCase - not releasing connections until all tests complete

2009-12-22 Thread carl ballantyne
Hi all, I am having a problem with my JUnit tests. They are not closing the hibernate session until ALL of the tests have finished. Needless to say now that I have quite a few tests some are failing because they cannot connect to the database. The app is a Struts 2, Spring 2.5.6 app. I

Re: Strusts Error - no Action mapped for action name HelloWorld

2009-12-22 Thread Paweł Wielgus
Hi Dham, use config browser plugin to verify your configuration: http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Also try to first run blank or demo app from struts_apps.zip and then modify it to suit your needs. Best greetings, Paweł Wielgus. 2009/12/22 dhammikas

Re: Strusts Error - no Action mapped for action name HelloWorld

2009-12-22 Thread dhammikas
Dear Paweł, Thanks a lot for the kind reply, i got in with the browser plugin feature and it shows nothing with the Actions in default namespace , so i guess there should be some basic mismatch in my app though it seems ok and nice.. btw i found a better post about browser plugin here,

Re: Strusts Error - no Action mapped for action name HelloWorld

2009-12-22 Thread dhammikas
Please return later to see if your message was accepted by the mailing list. If there is a problem, Nabble will alert you by email and provide additional instructions. Dear Paweł, Thanks a lot for the kind reply, i got in with the browser plugin feature and it shows nothing with the Actions in

Re: Strusts Error - no Action mapped for action name HelloWorld

2009-12-22 Thread dhammikas
Hello All, I was able to bring the strusts's blank demo up and running :) , but my previous app is also holding the same piece of architecture, i went thourhg and checked twice, the structure/features and syntax are totally identical and am not able to find out where the actual fault is..

if tag with #parameters

2009-12-22 Thread foo bar
Hi all, I'm testing for the existence of a request parameter in a jsp page in Struts 2 %@ taglib prefix=s uri=/struts-tags% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; s:property value=#parameters.messageKey/br/ s:if test=%{#parameters.messageKey ==

Re: if tag with #parameters

2009-12-22 Thread Saeed Iqbal
If it is a request parameter, then make a setter for it to get set and getter to retrieve it and use % instead of # If you want to have the parameter in the page context use the s:set with id On Tue, Dec 22, 2009 at 3:36 PM, foo bar linut...@gmail.com wrote: Hi all, I'm testing for the

Re: if tag with #parameters

2009-12-22 Thread foo bar
Hi, I would prefer not to use getter/setter. What I really want to know is, why is this not working as expected ? Anyway, I solved it s:if test=#parameters.messageKey[0] == 'yes' #parameters.messageKey is of type String[], which make sense now On Tue, Dec 22, 2009 at 9:46 PM, Saeed Iqbal

Re: if tag with #parameters

2009-12-22 Thread Gabriel Belingueres
Yes, parameters are String arrays. As a side note, see the following post because sometimes OGNL evaluates things differently: http://www.mail-archive.com/user@struts.apache.org/msg80015.html 2009/12/22 foo bar linut...@gmail.com: Hi, I would prefer not to use getter/setter. What I really

best practices in struts 2.1 - Tiles and Convention - clean URLs with minimum number of actions

2009-12-22 Thread Charles Parker
I'm using struts 2.1.8.1 here and have a question about best practices in the following situation: I have a form page, 'register'. It takes several fields, username, password, etc. I want the initial form page to be rendered via GET: http://my.server.net/register This shows the blank form

[S2] s:select can't use ENUM type

2009-12-22 Thread mailtolouis2020-struts
Hi, I got problem to using ENUM type in s:select, here is my code: s:select label=Sex name=user.sex list=getComboBox(ComboBoxType.SEX) listKey=key listValue=value value=user.sex/ but if I change to use String (e.g: list=getComboBox('SEX')), and do the

Re: if tag with #parameters

2009-12-22 Thread xerax nono
I think that the correct test is: s:property value=#messageKey/br/ s:if test=%{#messageKey == 'yes'} yes 2009/12/22 foo bar linut...@gmail.com Hi all, I'm testing for the existence of a request parameter in a jsp page in Struts 2 %@ taglib prefix=s uri=/struts-tags% !DOCTYPE HTML PUBLIC

Re: [S2] s:select can't use ENUM type

2009-12-22 Thread Steven Yang
what does getComboBox accepting? an Enum value or Enum array? if an Enum value then you have to do @{include full package path}comboboxt...@sex On Wed, Dec 23, 2009 at 12:15 AM, mailtolouis2020-str...@yahoo.com wrote: Hi, I got problem to using ENUM type in s:select, here is my code:

how do I use absolute url actions in html:form tag with struts 1.3.8

2009-12-22 Thread Jason Novotny
Hi, I'm a Struts newbie and am tasked with trying to change relative URLs on our site to be absolute. I have a form that looks like: html:form action=/fcon/MyAction and once it renders it displays: form id=myForm method=GET action=/modules/mymodule/fcon/MyAction.do onsubmit=return