Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java bean each line twice being executed twice  RSS feed

 
gaurav
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,I havwe created a java bean to be used with 2 jsp's .my first jsp is a form where some of the fields are being prepolulated using some of method from this bean ,then this form gets submits and a new jsp is being called ,This jsp calles getter and setter method of this bean and main bussiness method of of bean.
now I am having a problem my all the setter method of bean and subsecutent main bussness methods half of the cade is being executed twice leading to twice data insertion and many more probles.
I have tried to debugg the programme by printing out at console .and I notice a very strange kind of behavier pattern.its not that all the lines get executed in block twice but each indivisual line is being executed twice itself .This happen for all setter method and half of the line of my main bussiness method where I am doing data insertion mainly.
I have checked my jsp's and I am not calling any method twice from there leading to twice execution of programme.
Please guide me what can be wrong.
I am not using sesion also any where.
 
greg philpott
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
show some code. [particularly how you are submitting]
people can only speculate -at best- as to what your problem might be from what you have said.
[ March 16, 2002: Message edited by: greg philpott ]
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"gaurav"
Your name doesn't follow the javaranch guidelines. Please take a moment and change your "Publicly Displayed Name" by editing your profile, to follow the guidelines available at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!