aspose file tools*
The moose likes Struts and the fly likes Page executing twice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Page executing twice" Watch "Page executing twice" New topic
Author

Page executing twice

Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
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<br />"If it's true that we are here to help others,<br />then what exactly are the others here for?"
Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
Where are the Ranchers?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Do you seriously expect answers on a volunteer site within an hour? PatienceIsAVirtue


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
Hello,

Can anyone reply please?
Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
Thanks,

Please close this topic
Zoram Paul
Ranch Hand

Joined: Jul 10, 2007
Posts: 59
(Very Very Very)PatienceIsAVirtue
 
 
subject: Page executing twice