Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet not pass the value

 
fabio alonso
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
fabio alonso
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

how can this be done? you have any examples?

Thank you for your cooperation
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4435
256
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic