Learning and Learning!-- Java all the way!
Vic Hood wrote:
I get the value of Code printed from the bean.getCode() statement as null. Any clue as to why this may be happening? am i missing something?
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
Vic Hood wrote:HI Mike ,
Just to quickly clarify your suggestion . You are saying that . I manually set the values obtained from ym servlet into the DAO like i do here
Also in addition I was against the idea of using instance variables for the fields altogether ,from my very limited knowledge of beans I was hoping that while doing something like this in my jsp
But are instance variables in the servlet needed to get these values? Shouldnt they be set to the bean directly?And there would be no need of any instance variables in that case?
It would be great if anyone could correct my code as Iv e been stuck here for days now .
Im sorry if my post is confusing . its just that im relatively very new to coding and trying to get a hang of how this would work
OCJP6, OCWCD5
Learning and Learning!-- Java all the way!
...when i try to insert a row , there are are two records added as in duplicate entries , any clue as to why this could be happening ?
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Learning and Learning!-- Java all the way!
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
...Could you please provide an example of redirecting to another servlet?
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Learning and Learning!-- Java all the way!
OCJP6, OCWCD5
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|