You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by jackie <ja...@a2suite.com> on 2004/09/13 07:06:46 UTC

submitting request only one time.

Hello  Everybody!
  I`m developing a shopping site.  In the order page.  when the Order Submit 
button is submitted, it process the necessary actions, my problem is when 
the back browser click it goes to previous page, where the list of goods are 
in there the same as earlier, and when I click again the submit button, It 
orders or process the same goods that has been ordered.
    Is is possible to just submit only one time? using the submit button?  I 
am not sure how?
    Thanks!

Cheers!
jack 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Memory Leak in MappingDispatchAction?

Posted by Joe Germuska <Jo...@Germuska.com>.
Wanted to run this by some folks:

Our largest Struts application has become a total memory hog.  This 
has led our system administrator to take a crash source in the 
under-development JBoss profiler.  We're not expert in reading the 
output of that, but it seems to point back to a lot of memory being 
used by the HashMap of dispatch methods kept by 
MappingDispatchAction.  If I've got my we have over 200 action 
mappings in this app, and I suspect that every one of them uses 
MappingDispatchAction.

Assuming for now that we are actually reading the profiler correctly, 
is there any reason why that map shouldn't just be made a 
WeakHashMap?  When it comes down to reflection, I don't really have a 
good idea of when Method objects would be created or going out of 
scope, but considering how casual Struts is about using reflection in 
general, how bad could it be to have an extra reflection call for 
those times when a Method gets garbage collected out of the 
WeakHashMap?

If anyone out there has more experience using the JBoss profiler, you 
might be able to coach us to better analysis.

Thanks in advance,
	Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
    - Carlos Santana