This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 3816

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: 3011
    
  34

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?


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet not pass the value
 
Similar Threads
How do I setRollBackOnly on a sessionBean using CMT and JTA
record this parameter value in mysql (database)
Please HELP! [EJB 3] - Could not find datasource in Eclipse/JBoss - SQLServer
Stuck on manyToMany association
from-view-id with params