Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi I see a kind of strange behaviour with the Struts html tags. When on a form I have a html:text field which displays a number, say 1.2 it displays as "1.2", but according to the locale I am using it should display as "1,2". On the same form I have a JSTL tag fmt:number, and it displays it as it

SV: Server side validation

2004-05-19 Thread hermod . opstvedt
Hi Check your Tiles controller definition in the struts-config.xml file. Make sure that the forward parameter is not set to "forward" Hermod -Opprinnelig melding- Fra: Samuel Rochas [mailto:[EMAIL PROTECTED] Sendt: 15. mai 2004 00:41 Til: Struts Users Mailing List Emne: Re: Server side v

SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi I'll give it a try. I just thought that there might be someway of setting the formatting of html:text globally. Hermod -Opprinnelig melding- Fra: Mark Lowe [mailto:[EMAIL PROTECTED] Sendt: 19. mai 2004 13:39 Til: Struts Users Mailing List Emne: Re: Problem with number formatting Yo

SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi In the javascript validation routine there is a parameter : bCancel <<<-Set this to false if you do not want client side validation as in : Hermod -Opprinnelig melding- Fra: Gunnar Schmitz [mailto:[EMAIL PROTECTED] Sendt: 19. mai 2004 14:20 Til: [EMAIL PROTECTED] Emne: Va

SV: Problem with number formatting

2004-05-19 Thread hermod . opstvedt
Hi This won't work - If a user enters say "1,2" in the html:text field on the form, then what happens is that once you call BeanUtils.copyProperties - in the process converting it from String to Double - the converted value becomes 0d. If the user enters "1.2" the conversion is Ok. So - Why is th

SV: SV: Validation only on SUBMIT but not on BACK

2004-05-19 Thread hermod . opstvedt
Hi 1. implement the validation method on your ActionForm 2. Check if a particular button was pressed (give your button a name via the "property" property). Use request.getParameter("the name of the button"). 3. If they do not match, call super.validate() Hermod -Opprinnelig melding-

SV: checkbox on indexed form field

2004-05-27 Thread hermod . opstvedt
Hi You need to implement the reset() method on your ActionForm and in that setting any boolean variables to null. When you submit from a form, any unchecked checkboxes are not sent - only checked ones. Therefor the reset to set them to false initially, and if someon checks them they will be set to

SV: How to implements Role Based Access Control in Struts ?

2004-06-25 Thread hermod . opstvedt
Hi There is database support in SecurityFilter Hermod -Opprinnelig melding- Fra: Lesaint Sébastien [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 11:05 Til: Struts Users Mailing List Emne: RE: How to implements Role Based Access Control in Struts ? Hi, I was just looking into Pow2ACL,

SV: How can i put a dynamic value to an ?

2004-06-25 Thread hermod . opstvedt
Hi use html-el and then : -Opprinnelig melding- Fra: John Antonakos [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 12:17 Til: [EMAIL PROTECTED] Emne: How can i put a dynamic value to an ? I want to do something like the following: "/> is this possible ? The above statement produces a

SV: How can i put a dynamic value to an ?

2004-06-25 Thread hermod . opstvedt
Hi import the struts-el tag library and the tld for it - Then you can ust jstl syntax. Right now you are using the standard struts tag library Hermod -Opprinnelig melding- Fra: John Antonakos [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 12:30 Til: Struts Users Mailing List Emne: Re: Ho

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt:

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi I had the same problem - I think it was a mix of old and new struts components. What I did was get the latest nightly build, and replace everything. After that it all went away. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 10

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi Did you regenerate the static javascript part ? - Use to get it in your page and then cut and paste it into a .js file Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 12:34 Til: Struts Users Mailing List Emne: RE: Javascript er

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi Seems it is not picking up your "formName" - Is there any misspelling ?. If you running IE (against advice from this list lately :)) you could download and use the script debugger. Or use Firefox with its script debugger plugin to debug his. Hermod -Opprinnelig melding- Fra: Kote, Nij

SV: Javascript error in struts validator.

2004-07-02 Thread hermod . opstvedt
Hi Might be - Did you also replace all the struts required lib files (look in the Maven project.xml file for versions). Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 13:27 Til: Struts Users Mailing List Emne: RE: Javascript error

SV: Tiles/Frames & Urls with Parameters

2004-07-05 Thread hermod . opstvedt
Hi Its the & sign in your URL - You have to escape it. This has to do with the XML digester and not with Struts it self Hermod -Opprinnelig melding- Fra: Pat Quinn [mailto:[EMAIL PROTECTED] Sendt: 5. juli 2004 17:46 Til: [EMAIL PROTECTED] Emne: Tiles/Frames & Urls with Parameters Hi Gu

SV: Tiles set up

2004-08-23 Thread hermod . opstvedt
Hi This error comes from index.jsp -> org.apache.jsp.index_jsp._jspService(index_jsp.java:69) -Opprinnelig melding- Fra: andy wix [mailto:[EMAIL PROTECTED] Sendt: 23. august 2004 14:33 Til: [EMAIL PROTECTED] Emne: Tiles set up Hi, I am (still!) trying to set up Tiles in my Stru

HTML:TEXT tag and Internationalization

2004-08-24 Thread hermod . opstvedt
Hi Is there any reasonable argument as to why the html:text tag uses default (value.toString()) formating, while the bean:write uses a formatter that is I18N aware. This is really anoying for locales that normally use comma as a decimal seperator. If you output the value with bean:write it will lo

SV: Complicated select - option structure?

2004-08-24 Thread hermod . opstvedt
Hi Your best bet for this is to add a new method to you bean, which returns the first and last name concatenated into a single String value. Hermod -Opprinnelig melding- Fra: Janne Mattila [mailto:[EMAIL PROTECTED] Sendt: 24. august 2004 13:56 Til: [EMAIL PROTECTED] Emne: Complicated sel

SV: HTML:TEXT tag and Internationalization

2004-08-24 Thread hermod . opstvedt
Hi Yeah, but why invent something new every time when the framework can do it for you ? -Opprinnelig melding- Fra: Jim Barrows [mailto:[EMAIL PROTECTED] Sendt: 24. august 2004 18:47 Til: Struts Users Mailing List Emne: RE: HTML:TEXT tag and Internationalization > -Original Message

SV: strange behavior: bug or me?

2004-08-26 Thread hermod . opstvedt
Hi Have you tried to convert this into JSTL and use c:if ? -Opprinnelig melding- Fra: Michael McGrady [mailto:[EMAIL PROTECTED] Sendt: 26. august 2004 09:32 Til: Struts Users Mailing List Emne: strange behavior: bug or me? Has anyone been getting inconsistent results with ? I am tryi

SV: Adding Tags Dynamically

2004-09-08 Thread hermod . opstvedt
Simple answer : no - Struts tags are converted to HTML tags during rendering -Opprinnelig melding- Fra: Hadeel Rashad [mailto:[EMAIL PROTECTED] Sendt: 9. september 2004 01:10 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: Adding Tags Dynamically Can I add struts tags dynamic

SV: [OT] Display Tag Library problems with Weblogic 6.1

2004-10-05 Thread hermod . opstvedt
Hei When you get a class version error, it often means that you are running under a version og Java that is lower than the one used to compile the class. Hermod -Opprinnelig melding- Fra: Joe Germuska [mailto:[EMAIL PROTECTED] Sendt: 6. oktober 2004 06:04 Til: Struts Users Mailing List E

SV: "refreshing" server side infromation

2004-10-06 Thread hermod . opstvedt
Hi Use HTML META-REFRESH tag to refresh the page (from client) at a fixed interval. Hermod -Opprinnelig melding- Fra: Tito Eritja [mailto:[EMAIL PROTECTED] Sendt: 6. oktober 2004 11:24 Til: struts Emne: "refreshing" server side infromation Actually this is not a struts question, but if

SV: Struts /silly question

2004-10-08 Thread hermod . opstvedt
Hi Call ActionForward af=yourActionClass.method(maaping,form,request,response); >From your class -Opprinnelig melding- Fra: Marco Mistroni [mailto:[EMAIL PROTECTED] Sendt: 8. oktober 2004 13:33 Til: 'Struts Users Mailing List' Emne: Struts /silly question Hello all, I am sure

SV: Localization

2004-10-08 Thread hermod . opstvedt
Hi Welcome to the ugly world of Struts, Commons and Internationalization. I also had this problem, but solved it by rewriting some of the Struts tags, registering my own version of DoubleConverter with BeanUtils, and a couple og other places that I have forgotten. Nevertheless it works. I had a ma

SV: Validator doesn't pick up any errors?

2004-03-28 Thread hermod . opstvedt
Hi Looks like you should be using ValidatorForm - Not ValidatorActionForm With ValidatorForm you name your formdefinitions in validation.xml the same as the formnames in struts-config.xml With ValidatorActionForm you name your formdefinitions validation.xml the same as the action you are calling

SV: Session Time Out

2004-03-31 Thread hermod . opstvedt
Hi Use a servletfilter to trap when a new session is created, and do what ever you want to there. Hermod -Opprinnelig melding- Fra: Adam Hardy [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2004 09:56 Til: Struts Users Mailing List Emne: Re: Session Time Out Hi Kumar, struts will create th

SV: Problem with html:multibox not clearing

2004-03-31 Thread hermod . opstvedt
Hi Have a reset() (Inherited from ActionForm) method in you form bean. In it you set all Boolean/boolean variables to false/null. That way, because a nonselected value is never submitted, when you get tne value from the form bean, it is false/null Hermod -Opprinnelig melding- Fra: Jim K

SV: Struts boooks: remommendations?

2004-03-31 Thread hermod . opstvedt
Hi Try Professional Jakarta Struts from Wrox - It is way better than Struts in Action. Hermod -Opprinnelig melding- Fra: Laurie Harper [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2004 08:10 Til: [EMAIL PROTECTED] Emne: Struts boooks: remommendations? I'm looking for a good book on Struts

SV: Session Time Out

2004-03-31 Thread hermod . opstvedt
Hi If it expires, the filter will be called again. The sessioncontext listener gets notified when the session is created, and when it is destroyed. Hermod -Opprinnelig melding- Fra: MOHAN RADHAKRISHNAN [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2004 10:27 Til: 'Struts Users Mailing List'

SV: HashMap and tiles

2004-03-31 Thread hermod . opstvedt
Hi You have a form on it that maps to an action, but you have not defined a form for that action Hermod -Opprinnelig melding- Fra: Mario St-Gelais [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2004 17:07 Til: [EMAIL PROTECTED] Emne: HashMap and tiles I am using Tomcat 5.0.19 and Struts 1.1

SV: validation with struts 1.2

2004-04-05 Thread hermod . opstvedt
Hi And what excactly is the problem ? Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 08:42 Til: Struts-User (E-Mail) Emne: validation with struts 1.2 Hi, i have downloaded struts 1.2. It contains a new commons-validation.jar. This suppo

SV: validation with struts 1.2

2004-04-05 Thread hermod . opstvedt
Hi So now we know of two problems with it :) 1. Bundles don't work 2. It prefixes the methods with the formname, but the validation routines don't not know this. Hemrod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 08:50 Til: 'Struts Users Mailing

SV: validation with struts 1.2

2004-04-06 Thread hermod . opstvedt
Hi Not as far as I know Hermod -Opprinnelig melding- Fra: Otto, Frank [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 09:24 Til: 'Struts Users Mailing List' Emne: AW: validation with struts 1.2 And is there any solution? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:

SV: validation with struts 1.2

2004-04-06 Thread hermod . opstvedt
Hi Which is exactly what I am doing - Looking into it and fixing it when/if I find the problem Hermod -Opprinnelig melding- Fra: Jesse Alexander (KXT) [mailto:[EMAIL PROTECTED] Sendt: 6. april 2004 11:20 Til: 'Struts Users Mailing List' Emne: RE: validation with struts 1.2 Isn't Struts

SV: SV: validation with struts 1.2

2004-04-06 Thread hermod . opstvedt
Hi The problem is as follows : In your .jsp you add : and then you declare your form : When this gets generated it has somthing like this :