Bookmark Topic Watch Topic
  • New Topic

prepared statement

 
rakhi sinha
Ranch Hand
Posts: 147
  • 0
  • 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......


 
E Armitage
Rancher
Posts: 989
9
  • 0
  • 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
  • 0
  • 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,........
 
Swastik Dey
Rancher
Posts: 1601
5
Android Java Java ME
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
try this

 
rakhi sinha
Ranch Hand
Posts: 147
  • 0
  • 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
 
Wendy Gibbons
Bartender
Posts: 1107
Eclipse IDE Oracle VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
As you have started another thread presuming this one also solved
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic