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: and once it renders it displays: action="/modules/mymodule/fcon/MyAction.do" onsubmit="return validateFilterForm(event, this);"> What I'd like is to ha

Re: [S2] 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, wrote: > Hi, > > I got problem to using ENUM type in , here is my code: > >name="user.sex" > list="get

Re: if tag with #parameters

2009-12-22 Thread xerax nono
I think that the correct test is: yes 2009/12/22 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"%> > "http://www.w3.org/TR/html4/strict.dtd";> > > > yes > > > no > > > But, whatever I do,

[S2] can't use ENUM type

2009-12-22 Thread mailtolouis2020-struts
Hi, I got problem to using ENUM type in , here is my code: but if I change to use String (e.g: list="getComboBox('SEX')"), and do the conversion in the action then it working fine. Is it a bug? Regards LV

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 (

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 : > Hi, > > I would prefer not to use getter/setter. > What I really want to know is,

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 #parameters.messageKey is of type String[], which make sense now On Tue, Dec 22, 2009 at 9:46 PM, Saeed Iqbal wrote: > If it is a request parameter, then mak

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 wrote: > Hi all, > > I'm testing for the existence of a requ

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"%> http://www.w3.org/TR/html4/strict.dtd";> yes no But, whatever I do, result is always "no" Tested with these cases: test.jsp test.jsp?messageKey= test.jsp?messa

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.. Anyw

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 d

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, http:

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 : >

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 am