Bookmark Topic Watch Topic
  • New Topic

prepared statement  RSS feed

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Report post to moderator
i am using following code .....values are coming from first servlet......if command is not working all prepared statement are running......


 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Report post to moderator

rakhi sinha wrote:i am using following code .....values are coming from first servlet......if command is not working all prepared statement are running......


What is the problem again?
If your code doesn't enter any of the if blocs then print out the values of all those parameters to confirm that they are (not) null.
 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Report post to moderator

E Armitage wrote:

rakhi sinha wrote:i am using following code .....values are coming from first servlet......if command is not working all prepared statement are running......


What is the problem again?
If your code doesn't enter any of the if blocs then print out the values of all those parameters to confirm that they are (not) null.



my problem is that i want to execute pst2 and pst3 only when values of m2 and m3 are not null but it is executing always,........
 
Rancher
Posts: 1821
15
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Report post to moderator
try this

 
rakhi sinha
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Report post to moderator

Swastik Dey wrote:try this



thanks fro your suggestion but it is giving same output .. it is not working
 
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
As you have started another thread presuming this one also solved
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!