Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page executing twice

 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I have developed an application in Struts in which jsp, java beans, servlets and mysql are the components I used. The problem is every time I execute a page the page gets executed twice. For example, If I am clicking on a link on the Index page to execute the related page(Login.jsp), it get executed twice...which has created a lots of trouble for me, especially the Session section. I got to know about this by printing a single line (System.out.println("Login.jsp")), but this line prints out twice in the console, and the same thing happened with every page including the index page.

Is there anything to do with the web.xml or struts-config.xml?
Wheres the problem, can any one solve out this?

Please help me.
Thanks
 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are the Ranchers?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you seriously expect answers on a volunteer site within an hour? PatienceIsAVirtue
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts has a mechanism for preventing double submissions.
It uses tokens.

I'm going to move this question to our Struts forum where you stand a better chance of getting an answer.
 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anyone reply please?
 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

Please close this topic
 
Zoram Paul
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Very Very Very)PatienceIsAVirtue
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic