• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet not pass the value

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

how can this be done? you have any examples?

Thank you for your cooperation
 
Sheriff
Posts: 7150
1370
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic