A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Appfuse, Struts2, Displaytag, Drill down issue

View: New views
7 Messages — Rating Filter:   Alert me  

Appfuse, Struts2, Displaytag, Drill down issue

by wskent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The default Struts 2 interceptors execute the defined action twice per web page submit. This makes it difficult to determine the drill down level of a web page since using a counter is incremented twice each time the submit button is clicked. To be more specific on the problem. I have a web page that I would like to reuse for 6 different levels of product summary pages. I need to know which drill down level I am at to drill down to the next level (or back up a level). Any suggestions on how best to do this? I am not happy with my current solution to this problem.

Re: Appfuse, Struts2, Displaytag, Drill down issue

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Tue, Oct 7, 2008 at 9:01 AM, wskent <kentemiller@...> wrote:

The default Struts 2 interceptors execute the defined action twice per web
page submit.

Does this happen in AppFuse by default or is this something specific to your application? Does it happen if JavaScript is turned off? I believe another user experienced a similar issue in the past - you might try searching the archives at http://appfuse.markmail.org.

Matt
 
This makes it difficult to determine the drill down level of a
web page since using a counter is incremented twice each time the submit
button is clicked. To be more specific on the problem. I have a web page
that I would like to reuse for 6 different levels of product summary pages.
I need to know which drill down level I am at to drill down to the next
level (or back up a level). Any suggestions on how best to do this? I am not
happy with my current solution to this problem.
--
View this message in context: http://www.nabble.com/Appfuse%2C-Struts2%2C-Displaytag%2C-Drill-down-issue-tp19860157s2369p19860157.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: Appfuse, Struts2, Displaytag, Drill down issue

by wskent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I looked in the archives and made the changes suggested in those entries. Still have the same behavior where the action is executed twice. I have also deployed the Struts2InAction.war into my JBoss 4.2 container and voila, it has the same behavior. Any ideas on what is causing this problem? Is this a Struts 2 and JBoss 4.2 compatibility issue?

Re: Appfuse, Struts2, Displaytag, Drill down issue

by wskent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Firefox is causing Struts 2.9.11 actions to be executed twice in JBoss 4.2. This behavior is not happening in IE 7.0.5730.11. What is the best way to report this issue to Firefox?

Re: Appfuse, Struts2, Displaytag, Drill down issue

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems more like a Struts issue than a Firefox issue. Have you verified it happens when JS is disabled? If so, I'd suggest contacting the Struts user mailing list.

Matt

On Wed, Oct 15, 2008 at 9:32 AM, wskent <kentemiller@...> wrote:

Firefox is causing Struts 2.9.11 actions to be executed twice in JBoss 4.2.
This behavior is not happening in IE 7.0.5730.11. What is the best way to
report this issue to Firefox?
--
View this message in context: http://www.nabble.com/Appfuse%2C-Struts2%2C-Displaytag%2C-Drill-down-issue-tp19860157s2369p19996036.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: Appfuse, Struts2, Displaytag, Drill down issue

by wskent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is happening with JavaScript turned off or on. It is also happening in Tomcat 6. This behavior is not happening in IE 7 on either Tomcat 6 or JBoss 4.2 .

Re: Appfuse, Struts2, Displaytag, Drill down issue

by wskent :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Finally figured this one out! I am using the YSlow plugin to Firefox and it is causing a second HTTP GET to the action as part of its information gathering on the site. Disabling YSlow took care of the problem. Another Firefox plugin called "Live HTTP headers" helped me find this one. For others with a similiar problem, I would recommend that you look at what plugins you have, and what they are doing.
LightInTheBox - Buy quality products at wholesale price!