aspose file tools*
The moose likes Struts and the fly likes struts 2 wizards help? any best practice? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 wizards help? any best practice?" Watch "struts 2 wizards help? any best practice?" New topic
Author

struts 2 wizards help? any best practice?

Renz Alexander
Greenhorn

Joined: Jun 11, 2010
Posts: 28
hi every one. so i've been using the scope plugin for struts 2 for sometime now and i'm worried that my application would permgen or hang on me when it's run for a long time. i've been thinking of using ajax and jquery to counter the permgen by having an ajax form control so that i would only need to send a post once for processing. but before i do that I want to ask if anyone know of any other practices for creating a wizard with struts 2 and what are their advantage and disadvantages(please include the ajax implementation)?
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

If you are getting OutOfMemoryErrors indicating PermGen space, that is related to the number of deployments one does, not server activity (see here).


[How To Ask Questions On JavaRanch]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

How big is your form that you'd be worried about memory usage?!?!
Renz Alexander
Greenhorn

Joined: Jun 11, 2010
Posts: 28
the reason is i'm using the scope plugin and might be using it in the wrong way since sometimes the application just hangs on me after a few post of data. that's why i'm asking for some best practice and thinking of using ajax to end part of my reliance with the scope plugin
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Running out of memory wouldn't cause the application to "hang", it would cause it to throw an out of memory exception.
Renz Alexander
Greenhorn

Joined: Jun 11, 2010
Posts: 28
oh ok, didn't know that though i do get permgens after a few redeploy and then some posts. i really don't know why it hanged on me though. but after a restart its works fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts 2 wizards help? any best practice?