Beruflich Dokumente
Kultur Dokumente
What is Struts?
Struts is a web page development framework and an open source software that helps
developers build web applications quickly and easily. Struts combines Java Servlets, Java
Server Pages, custom tags, and message resources into a unified framework. It is a
cooperative, synergistic platform, suitable for development teams, independent developers,
and everyone between.
What helpers in the form of JSP pages are provided in Struts framework?
--struts-html.tld
--struts-bean.tld
--struts-logic.tld
Is Struts efficient?
The Struts is not only thread-safe but thread-dependent(instantiates each Action once and
allows other requests to be threaded through the original object.
ActionForm beans minimize subclass code and shorten subclass hierarchies
The Struts tag libraries provide general-purpose functionality
The Struts components are reusable by the application
The Struts localization strategies reduce the need for redundant JSPs
The Struts is designed with an open architecture--subclass available
The Struts is lightweight (5 core packages, 5 tag libraries)
The Struts is open source and well documented (code to be examined easily)
The Struts is model neutral
How you will enable front-end validation based on the xml in validation.xml?
The < html:javascript > tag to allow front-end validation based on the xml in
validation.xml. For example the code: < html:javascript formName=logonForm
dynamicJavascript=true staticJavascript=true / > generates the client side java script for
the form logonForm as defined in the validation.xml file. The < html:javascript > when
added in the jsp file generates the client site validation script.
What is ActionServlet?
The class org.apache.struts.action.ActionServlet is the called the ActionServlet. In the the
Jakarta Struts Framework this class plays the role of controller. All the requests to the
server goes through the controller. Controller is responsible for handling all the requests.
How you will make available any Message Resources Definitions file to the Struts
Framework Environment?
Message Resources Definitions file are simple .properties files and these files contains the
messages that can be used in the struts project. Message Resources Definitions files can
be added to the struts-config.xml file through < message-resources / > tag. Example: <
message-resources parameter= MessageResources / >
What is ActionForm?
An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm.
ActionForm maintains the session state for web application and the ActionForm object is
automatically populated on the server side with data entered from a form on the client
side.
If the framework doesn't do what I want, can I request that a feature be added?
First, it's important to remember that Struts is an all-volunteer project. We don't charge
anyone anything to use Struts. Committers and other developers work on Struts because
they need to use it with their own applications. If others can use it too, that's "icing on the
cake". If you submit a patch for a feature that a Committer finds useful, then that
Committer may choose to volunteer his or her time to apply the patch. If you just submit
an idea without a patch, it is much less likely to be added (since first someone else has to
volunteer their time to write the patch).
We are grateful for any patches, and we welcome new ideas, but the best way to see that
something gets added to the framework is to do as much of the work as you can, rather
than rely on the "kindness of strangers". Worst case, you can apply the patch to your copy
of Struts and still use the feature in your own application. (Which is what open source is
~really~ all about.)
What's the difference between Struts and Turbine? What's the difference between
Struts and Espresso?
If you are starting from scratch, packages like Turbine and Espresso can be very helpful
since they try to provide all of the basic services that your team is likely to need. Such
services include things like data persistence and logging.
If you are not starting from scratch, and need to hook up your web application to an
existing infrastructure, then "plain vanilla" Struts can be a better choice. The core Struts
framework does not presuppose that you are using a given set of data persistence,
presentation, or logging tools. Anything goes =:0)
Compared to other offerings, Struts endeavors to be a minimalist framework. We try
leverage existing technologies whenever we can and provide only the missing pieces you
need to combine disparate technologies into a coherent application. This is great when you
want to select your own tools to use with Struts. But, if you prefer a more integrated
infrastructure, then packages like Turbine or Espresso (which uses Struts) are perfectly
good ways to go.
See also
* < http://www.mail-archive.com/struts-user@jakarta.apache.org/msg03206.html >
* < http://www.mail-archive.com/general@jakarta.apache.org/msg00495.html >
* < http://jakarta.apache.org/velocity/ymtd/ymtd.html >
Why doesn't the focus feature on the <html:form> tag work in every
circumstance?
Unfortunately, there is some disagreement between the various browsers, and different versions of the
same browser, as to how the focus can be set. The <html:form> tag provides a quick and easy JavaScript
that will set the focus on a form for most versions of most browsers. If this feature doesn't work for you,
then you should set the focus using your own JavaScript. The focus feature is a convenient "value-add" --
not a core requirement of the tag. If you do come up with a JavaScript that provides the final solution to
this project, please post your patch to this Bugzilla ticket