Azeem Rathore

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

Recent posts by Azeem Rathore

This is how i am handling 5 text field search

first it checks if all the textbox contain values then just get the values and make sql

2: Rule of thumb is atleast one textfield value should be given if there is empty textfield leave those textfields and those who contain values pick up those values and make sql statement

After this programming my next task is to do full internal site search , i have checked Lucene and download it documentation from apache lucene website i will consider it this

Thanks alot for the help .
ok thanks i am some how able to manage this as it is only one table now

i have one other functionality to perform which is whole software internal search if a user just enter any text in text box . and it search it from whole application?
hello my first language is German so bear with my English
I am new to java language , and working on Human resource Management system , current i cant make logic of search programming , actually i want to search the employees by their personal info
so i have 5 text box
Employee Name:
Employee mobile no:
Employee Father Name:
Employee Social Security Number
Employee Address:

these are the text boxes now i want to search from employee table. All information of employees are in one table which is called Tbl_Employees.
now i am confused how to do it ? Requirement is Any field can be empty it is not necessary all 5 boxes should contain values
so kindly tell me how to handle this if a user only give social security number and rest all fields are empty then what to do ? if user fill two or more textbox then what should i do ?
any tutorial/article related to this will be helpful please
Ulf Dittmer Thanks for the reply
but i also have heard if i start work in framework it will also cover servlets and jsp isnt it true?
10 years ago
Hi my first Language is German so bear my English
I am 4th Semester student i worked in Java desktop application i made Human resource Management System but it was Desktop Application now i want to make it as web based application . I study in difference forums about java frameworks hibernate struts spring etc i have GOOD understanding of HTML and basic understanding of CSS and javascript now i am confuse which i should learn first i consider myself as beginner in web application
now please guide me which framework is easily start from scratch? i hope i make you understand what i want basically i want something easier to learn in initial level to have solid grip on how to make web applications then i will move to advanced level
so please tell me how to start ?
10 years ago
Hi Ranganathan
thanks for the help i have changed all the variables from int to Integer now when i press add record button it giives me error message ORA-01722: invalid number
i have search internet about this issue they say this errors occurs when we convert strings into Integer so i assume i have same old issue i am passing null to integer this is why error occurs i am assuming this may be i am wrong
please help and thanks again

10 years ago
i am just beginner may be i am handling this thing wrong so guide me please
10 years ago
Actually i have columns in database table which can be empty if insert data and types are varchar and integers
I have made employee class and defines few integer variables an make setters getters
Reason i am using integer.parseint is
When i take values from textfield and send to integer setter it gives error like required int found string
So i use im using integer.parseInt function
Example is

So what i want is when adding new record if i left any field empty and press add new record button it should set values to null or empty and add record
this is whati am doing to handle this

Hope i make you understand
Please help
10 years ago
hi I AM NEW to programming
i have form which contains 103 textfields and it is filled from database values
now i want to insert the new record when user press new button all field become empty
when i enter data in the textfields and press save button it gives me this exception

Aug 01, 2013 11:42:14 PM hr.forms.df jButton7ActionPerformed
SEVERE: null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(
at java.lang.Integer.parseInt(
at hr.forms.df.NewEmployees(
at hr.forms.df.jButton7ActionPerformed(
at hr.forms.df.access$600(
at hr.forms.df$7.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$200(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

the text field could be pempty i have made check if textfield.gettext is empty the set null and insert null
please tell me how to cope with this and tell me what is actual issue how to solve it

10 years ago
Hi my first language is German so bear with my English
i am new to programming and i have form which display Employee tables values in the text field from database. it has a colum date of birth of type Date.
When load program form display all values successfully in the textfield now i have made function update using update query . all other values updated successfully but date objects arent updated when i try to update date objects from the text field and hit save button it give" exception java sql Exception non numeric value appeared where numeric expected" message i do not know how to handle it
i get the date value from textfield from employee form and set this value to employees class

here is the code from employee form

then i have made the update_employee function code is this

how to update date of birth? kindly help please
Thanks alot ramesh , it is working as i want thanks alot
10 years ago
Hi ramesh thanks for the reply but i do not know how to Override windowClosing(...) method in Department form can you please tell me this? i have done everything except lnserting parent.setVisible(true);
can you tell me where i do this ? and how to do this?
10 years ago
Yes , menu screen is jframe and in the jframe i am using menu bar when i run the program And click on departments from menu new department form open
One approach is add exit button in all forms so when click on exit i show menu screen but this is not my teacher want he said on exit department form menu screen appear
Netbeans. Generated code which is uneditAble and i know from properties panel i can change on exit property but
It it for departments form how to display menu screen? When exit the department form?
10 years ago
hi i am new to programming and learning java and my first language is not English to hope you can understand my problem
i am working on human resource Management system
i have 6 forms which contain different information from database now i am making menu screen i have added menu bar and in the menu bar items are Departments, hr Units , Employees and so on
now i want is when user select departments it hide the menu screen and display display form i am able to do this successfully now i want to go back to previous menu screen when user close the department window
i am using netbeans so it is not allowing me to change the INITCOmponents function used in the forms constructor to change it
so please help me how to do this .
10 years ago
Thanks alot brother it is solved now you saved meeeeeeeeeeeee
many many thanks
10 years ago