JSR commonly refers to Java Specification Requests, formal standards for the Java platform.
Questions tagged [jsr]
147 questions
0
votes
1 answer
Validating empty number field in Spring MVC
I'm having issues with JSR 303 validation when the user does not enter anything in a box. I want to validate that a field must be a number and > 0. Here is the code
@Min(value = 1)
private float price;
If a number is entered the validation works…

Smith
- 1,431
- 4
- 18
- 26
0
votes
2 answers
JSR-352 in Google Guice'd standalone batch
I'm trying to make a batch using javax.batch 1.0 with Java SE 7 and Guice.
Reading the JavaEE 7 documentation about JSR-352 they obviously set-up the code to be executed within Glassfish and I found no mention about how to run it outside.
Now my…

matticala
- 160
- 3
- 13
0
votes
1 answer
How to identify JSR version supported by a Portal?
Given a particular Portal and the portlet running in it, how to identify the JSR version that it supports?
More specifically, I want to know if Liferay CE 6.0 supports only JSR 168? And the support for JSF 286 was provided only after 6.1?
I have…

user2488578
- 896
- 4
- 21
- 40
0
votes
2 answers
Awkward naming convention of getter of Delegated boolean existential property
Please refer to Naming conventions for java methods that return boolean(No question mark)
to make a comparison about what I am NOT asking.
My question concerns properties derived from delegates embedded in a container object.
While the setters of…

Blessed Geek
- 21,058
- 23
- 106
- 176
0
votes
1 answer
log4j properties file is not picking up from war file
I have created a webapplication and deployed in jboss server.
I placed log4j.properties file in WEB-INF/classes folder. But instead of using my application specific log4j.properties, it is using default log4j.properties and printing the logs in…

user1732528
- 51
- 1
- 5
0
votes
1 answer
J2ME PIM get contacts number alone
Is there a way I can read a contacts number using the PIM API. I'm using the code below and it's just returning the name. I want the code to return the number only from a contact.
pim = PIM.getInstance();
ContactsList.setModel(new…

sammyukavi
- 1,501
- 2
- 23
- 51
0
votes
2 answers
Where can I find a JSR-275 replacement?
JSR-275 has been discontinued and will soon be removed from the javax namespace as far as I can tell from googling around. Supposedly there is a replacement at org.unitsofmeasurement but the API seems to be quite different from JSR-275. Supposedly…

Michael Dillon
- 31,973
- 6
- 70
- 106
0
votes
1 answer
Xquery using XQJ JSR 225
I have the following java code. I am using XQJ to write a test XQuery program using XQJ api. I have downloaded JSR-000225 XQuery API for Java 1.0 Final Release, and added xqjapi.jar to my classpath.
The java code is as simple as the following…

Lucy
- 471
- 4
- 12
- 28
-2
votes
2 answers
Validating size for BigDecimal for given length, not precision
I have a requirement to validate length for a BigDecimal object using JSR validators. It should contain at max of 10 characters.
Some valid examples:
123456789.0
12345.67890
12345.67
1.2345
Invalid examples:
123456789.0123
123.32131232
How can I…

Chandra Prakash
- 781
- 4
- 13
- 23
-2
votes
1 answer
@Notnull Spring Custom Annotation Validation with multiple field
How to write (type level annotation) custom annotation to allow a choice validation (exactly one of a number of properties has to be not null)?

vin vin
- 1
- 1
- 2
-3
votes
2 answers
Where can I find Jersey API jars?
I need to download the JSR 311 Java library (Jersey) jars. Java.net has the API for download but it is inexplicably down and can't seem to find it anywhere else. Can someone please help as I can not continue my current project without Jersey. Thank…

MaxK
- 437
- 5
- 8
- 20
-4
votes
1 answer
What does JSR mean
I am developing web application with Spring and Hibernate. While searching in Google about validation and some other spring stuff I came across these words. JSR 303, JSR 330, JSR 310 etc.
What is JSR actually?
And what the numbers indicates…

Vishal Zanzrukia
- 4,902
- 4
- 38
- 82