wood burning stoves 2.0
The moose likes Servlets and the fly likes Servlet not pass the value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet not pass the value" Watch "Servlet not pass the value" New topic
Author

Servlet not pass the value

fabio alonso
Ranch Hand

Joined: May 15, 2010
Posts: 48
Hello,

I am with the following excerpt from my code, which is a problem. He should "create" this servlet and pass the value to my class, however, so the class returns null error

It seems that he is not creating the record. the code is this:



Class accusing this error ..



It turns out that the servlet is not creating the method. Anyone know what can be?

thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3867

It turns out that the servlet is not creating the method

I'm not sure what you meant by this. Is it that you don't get the parameter value "naturezaId"?
...He should "create" this servlet and pass the value to my class...

It's actually when you send the request (GET in this case) to this servlet method "doGet" will be invoked and whatever inside that is executed...


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
fabio alonso
Ranch Hand

Joined: May 15, 2010
Posts: 48
Hi,

how can this be done? you have any examples?

Thank you for your cooperation
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3325
    
  57

fabio alonso wrote:Class accusing this error ..

Can you please TellTheDetails of the error you were referring to?
Was that perhaps criaRegistro(Registro) method generating some compile time errors or runtime exception?


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
Consider Paul's rocket mass heater.
 
subject: Servlet not pass the value