Carlos Juan

Greenhorn
+ Follow
since Jul 17, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Carlos Juan

Hi,

I have an application that shows the data based on the search criteria, shows 10 records a time. I have a table with 1000+ records. When I run the following select it returns me the 1st 10



Now if I run the following it does not return me any data



Any help is appreciated. Thanks
18 years ago
Thanks, It's working just did some testing and so far all ok, It works in IE but some how FireFox it does not work. I don't know if it's because of the following or am I missing something else:


Here is the javascript change I made.



Is there anything else I have to do to make it work in FireFox/Netscape. Any help is appreciated.

Thanks
Hi,

I have a form and onsubmit calling a javascript function to make sure some value does exists in database. If the value exists I
am submitting a form but if the value does not exists I don't want to submit a form rather show user a message. I am trying to use
AJAX, it does go to the databse and checks for the required value but whatever the value is it still keeps submiting the form. Can someone please
help me what am I doing wrong here. Here is my code:

In my JSP I have the following piece:


Here is javascript:


In onResponse function above no matter if it returns true or false the FORM keeps on submitting. Any help is appreciated.
Thanks
I figured out the root cause it's not the hibernate. I am using JAXB and any time I get a value starting with leading zero's i.e. 00785 as I have defined nonNegativeInteger in my xsd. As can't change the xsd so probably will explicitly check if the returned value is of some specific length if not then append the leading zero's, or if someone have a better solution will be more then happy to look at. Thanks
I am using Oracle as backend database. Here is a issue I am facing and need some help.


I have a database table with datatype VARCHAR2(25)

In my hbm.xml I have the following:


Now if I have a value 00875. When a data is saved leading zero's are some how trimmed off and only 875 is saved in the table.
How can I make to insert 00875 without trimming off any leading or trailing zero's. Any help is appreciated.

Thanks