my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 614
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: 614
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 ]
 
wood burning stoves
 
subject: year getting null?
 
Similar Threads
database values to have different color in jsp program
data in table getting overridden?
tool tip problem?
database values to have different color in jsp program
data in table getting overridden?