This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 627
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: 627
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 ]
 
Consider Paul's rocket mass heater.
 
subject: year getting null?