Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is the Struts object-orientated appropriate for small, heavily-loaded servers?

0
Posted

Is the Struts object-orientated appropriate for small, heavily-loaded servers?

0

Location: http://www.jguru.com/faq/view.jsp?EID=471949 Created: Aug 8, 2001 Author: Ted Husted (http://www.jguru.com/guru/viewbio.jsp?EID=462042) Compared to embedding the application logic in your servlet, Struts doesn’t cost very much in terms of object creation. Struts only creates an instance of an Action class once, and then reuses it continually. You will also find that, with more recent JVMs, object creation overhead has been dramatically reduced — it may not longer be the dominant factor in performance. ActionForm beans in Struts can be stored in the user’s session (this was the original design), but also as request attributes. This is particularly useful when the entire form is displayed on one page, and the page contains every property as either a hidden field or a visible field. In such cases, there is no need to keep the form bean instance around in between requests. At the end of the day, though, you have to have an incredibly small server for the performance issues like

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.