wood burning stoves 2.0*
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: 641
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: 641
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: year getting null?