I extended ActionSupport
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str...@yahoo.com]
Verzonden: woensdag 19 augustus 2009 12:17
Aan: Struts Users Mailing List
Onderwerp: Re: validation
Hi,
In your action did you extends ActionSupport or impl
Yes, that was a copy-mistake of me.
In my app it is 'be.shop.service.ProductActions
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str...@yahoo.com]
Verzonden: dinsdag 18 augustus 2009 17:47
Aan: Struts Users Mailing List
Onderwerp: Re: validation
Thank you very much!
-Oorspronkelijk bericht-
Van: musom...@aol.com [mailto:musom...@aol.com]
Verzonden: dinsdag 18 augustus 2009 16:00
Aan: user@struts.apache.org
Onderwerp: Re: struts 2.1.5 type conversion error
That is because you are using Struts 2.1.5. There is a bug in the type
Dusty,
The error only shows if i enter '0' or a negative number in my
double-field..
Not with positive numbers.
Is this normal?
Regards,
Sandy
-Oorspronkelijk bericht-
Van: dusty [mailto:dustin_pea...@yahoo.com]
Verzonden: dinsdag 18 augustus 2009 6:37
Aan: user@struts.apache.org
Onde
Hi,
This is my projectstructure and the files you asked.
Hope you see something wrong..
Thx,
Sandy
Dir structure (as i see it in explorer):
Shop
-.settings
-src
-main
-java
-be
Chris,
Your version doesn't work for me neither..
Maybe you can tell me the paths of each file you putted at pastie?
Anyway, I can not pass a double value from my jsp file to my
actionclass. Then I get the error 'no such method found for
'setPrice(java.lang.String)''.
So I make a setter with a s
Martin,
I changed my param values to double formatted values.
But it doesn't help.
Thx anyway.
Sandy
-Oorspronkelijk bericht-
Van: Martin Gainty [mailto:mgai...@hotmail.com]
Verzonden: maandag 17 augustus 2009 16:26
Aan: Struts Users Mailing List
Onderwerp: RE: validation
check if yo
Thx for the effort chris!
Can you tell me what the outcome should be?
I expect 'Weight has to be numeric and can't be less than 0. ' right
next to the weight textfield?
Right now i just get internal server error, but i'm working on it..
-Oorspronkelijk bericht-
Van: musom...@aol.com [mail
Requiredstring doesn't work neither..
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str...@yahoo.com]
Verzonden: maandag 17 augustus 2009 14:16
Aan: Struts Users Mailing List
Onderwerp: Re: validation
how about change your field validator to requ
Pawe,
Yes addProduct is called in the ProductActions in be.shop.service
It is unclear to me what I should use for 'name' and for 'namespace' in the
package-tag.
It should be called right away, the validationintercepter should be progressed
first.;
Sandy
-Oorspronkelijk bericht-
Va
I have my package
-be.shop.service
Which contains ProductActions.java and
ProductActions-addProduct-validation.xml
In my struts.xml i have the package tag:
In my jsp page i have the form tag:
I assume that my packagedeclaration in struts.xml isn't right?
I'm not sure what the difference is
Yes, this is my package declaration in struts.xml:
I changed the namespace of my formtag (on the jsp page) into 'shop',
according to the package name.
But it doesn't help..
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str...@yahoo.com]
Verzon
Thx, I chenged my validator to:
0
3
Weight has to be numeric and can't be less than
0.
But the problem isn't solved..
Should I use some tags that show the output of my validation on my form?
The fact that my debugge
Chris,
I've changed my original setter to setStockAmountInt(int stockAmount), and kept
setStockAmount(String stockAmount) so it could be used by the default ognl
conversion.
Now I can work without errors, but it seems kind of strange to me that this is
the normal way of working, is it?
Regards
Thx for the reply,
I have no interceptors declared in my struts.xml, so I assume i use
defaultstack interceptor, or not?
Jes, the validation xml is in the same dir as my class.
Any other thoughts?
-Oorspronkelijk bericht-
Van: mailtolouis2020-str...@yahoo.com
[mailto:mailtolouis2020-str.
Hi,
I'm trying to add some validation to my fstruts 2 form but it won't
work.
If I enter for example value '6' in my weight textfield and press 'add',
the debugger comes in the method 'addProduct', finishes and returns to
products.jsp.
There is no message shown as defined in the validation xml.
D
Eduard,
I have in my class:
private int stockAmount;
public void setStockAmount(int stockAmount) {
this.stockAmount = stockAmount;
}
public int getStockAmount() {
return stockAmount;
}
public void setStockAmount(String stockAmount) {
Martin,
Then why are there validator xmls in which you can say what type your input
should be?
Shall I give all my int variables in my class a String-setter?
Thx for the answer,
Sandy
-Oorspronkelijk bericht-
Van: Martin Gainty [mailto:mgai...@hotmail.com]
Verzonden: donderdag 13 au
Lukasz,
The type of 'price' is a double..
Thx for answering.
Regards,
sandy
-Oorspronkelijk bericht-
Van: Lukasz Lenart [mailto:lukasz.len...@googlemail.com]
Verzonden: woensdag 22 juli 2009 9:50
Aan: Struts Users Mailing List
Onderwerp: Re: struts 2.1.5 type conversion error
2009/7/
Hi,
I have made a simple struts form
Name nl
price
And an action class with getters and setters for nameNl and price.
When I submit my form, with a price > 0, for example 3, everything goes
well.
When I enter 0 or a negative number, I get the following error:
java.lang.NoSuchMethodExceptio
Hi,
I have made a struts form:
Name nl
price:
and the mapped actionclassmethod addProduct with:
public String addProduct(){
Product p = new Product(productNameNl, productPrice);
ProductDA.getInstance().addProduct(p);
return SUCCESS;
}
public void setProductNameNl(String productNameNl) {
thi
Hi,
Can anyone tell me how I can make a checkboxlist on my jsp that knows
which checkbox should be checked and which not.
I have my list of objects with three strings.
string1: name (label for the checkbox)
string2: key (value that identifies which object is checked)
string3: true or false (that
Hi,
Does someone knows an advanced dateTimePicker?
For example:
- An attribute 'available dates' of type list, that enables the dates in
the list and disables others?
- Coupling a struts action to when you click on one or more dates on the
calendar.
- Not in a dropdown, but simply a calendar o
23 matches
Mail list logo