aspose file tools*
The moose likes JSP and the fly likes year getting null? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "year getting null?" Watch "year getting null?" New topic
Author

year getting null?

venkatesh padmanabhan
Greenhorn

Joined: Feb 17, 2006
Posts: 20
In this code, the year value is getting null.. why is it so? Am not able to insert the date, as the year value is getting null?
where should i change the year value, to get the user selected year??

[ March 31, 2006: Message edited by: Bear Bibeault ]
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
There is no submit button ,no onchange on select box,When is your form submitted and how do u get null value?

-Praful


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
Oh Okay got it now;
your code of inserting data should get executed only after page is submited put an if statement as follows


[ March 31, 2006: Message edited by: Praful Thakare ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: year getting null?
 
Similar Threads
data in table getting overridden?
database values to have different color in jsp program
database values to have different color in jsp program
tool tip problem?
data in table getting overridden?