Fabiano Souza

Greenhorn
+ Follow
since Sep 26, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fabiano Souza

sorry by "nested" I mean.. imagine I have a class Document which has the validate annotation for its fields.. this class Document is an attribute of class User which also has its validate annotations.. now in the class that extends ActionSupport I have an User attribute.. so in the form I have the fiels for document and user and I want to invoke their class validation automatically... if this work will be a great code reuse..
11 years ago
I'm not familiar with ModelDriven but I will try... what I was wondering is.. what if I have a nested object with validations annotations inside another nested object.. will this work? if it works that will be a good code reuse for me..
11 years ago
what I am trying to do is to put all validation rules in the specific object field using annotations... I've heard I can do this using @VisitorFieldValidator but I`m not able to make it work.
11 years ago
Hello guys,

Need a help from you.. I'm having problem in validating input data in a Struts 2 application. I'm using a class with fields that match fields in form but I don't want this class to extends ActionSupport and I want this class to use struts annotations to validate fields.. this class will only be used to store and validate input fields.. My doubt is: is there a way to make this work in a alternative way than extends ActionSupport?

waiting for your comments..

Thanks in advance!

Fabiano
11 years ago
hello guys,

I'm having problems using JSTL dependencies of Maven in Tomcat.
For some reason Tomcat does not recognize JSTL of my application which was dowloaded as maven dependencies and I'm not able to use JSTL tags on my application.

I'm using Ubuntu 10.4 here is my maven instalation:
Apache Maven 3.0.4 (r1232337; 2012-01-17 06:44:56-0200)
Maven home: /usr/local/apache-maven/apache-maven-3.0.4
Java version: 1.7.0_05, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-41-generic", arch: "i386", family: "unix"

I'm running Tomcat inside Eclipse and a simple start of Tomcat with my app installed I got several erros like these in the console:

Jul 19, 2012 6:59:25 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar
SEVERE: Unable to process Jar entry [org/apache/taglibs/standard/lang/jstl/OrOperator.class] from Jar [jar:file:/home/fabiano/4Linux/497/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fourpizza/WEB-INF/lib/jstl-1.2.jar!/] for annotations
java.util.zip.ZipException: invalid LOC header (bad signature)

I'm wondering if someone can help to clear it out..

Thanks in advance!

Fabiano
11 years ago
just found what I needed

GREATEST..

SELECT GREATEST (xc.price, (SELECT c.price FROM CPrice c WHERE c.id=?)) FROM XCPrice xc WHERE xc.id=2262


Thanks again!!
15 years ago
well,, sorry for confusion..

I was wondering if I could do something like this:

SELECT MAX (SELECT xc.price, (SELECT c.price FROM CPrice c WHERE c.id=?) FROM XPrice xc WHERE xc.id=?)



and thanks for replying!
15 years ago
hello everyone..

does someone know a way to get the bigger value between 2 values in a select statement?

example:

SELECT MAX(X, Y) FROM ...
15 years ago
I heard that in version, Struts will behave like JSF. Is it true?


Fabiano Souza
SCJP [90%]
15 years ago
hello all.. I pretend to be certified on SCWCD 1.5 but I've got an old head first book 1.4.. I'd like to know what has changed from 1.4 to 1.5 and if is possible to study to 1.5 using old head first book 1.4?

Thanks..

Fabiano Souza
SCJP [90%]