Struts Section Index | Page 9
I usually need 'wrap="virtual"' as an attribute for my textareas. It isn't part of the HTML spec, but it's supported in both Netscape and IE, and it's pretty useful.
The Struts Action works through introspection. It doesn't know (or care) whether the value in a form was rendered by a Struts custom tag or not. This means if you use a standard textarea tag in yo...more
Struts uses JavaBeans Introspector to discover properties of beans. Introspector is pretty picky in the way it decides whether something is a property or not. Specifically, it requires that ...more
I have a simple question about localisation: If there is multiple users using the same localisation parameters : do they share a common ResourceBundle instance or do they have their own one. It seems to me that each user has his own ResourceBundle instance but does that affect the performance of the application.
The application's message resource bundles are shared across all of the users of a particular Struts-based web application. The only thing that is unique to a particular user is the java.util.Loca...more
How can I set the locale for each individual user session before the first page displays? I've tried putting the session.setAtttribute(Action.Locale_key,<locale>) but it always displays in the default locale of the machine? Changing the machine locale causes the correct properties file to be used so I know that is not the problem.
In the Struts example app, this is done by including the following tag on the index.jsp page (actually, on every page): <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <html:h...more
At first, it was to make it easier to develop the tags as the rest of the framework was developed. Placing the tags in another repository would mean that we would have to be more careful about cha...more
The Struts form tags are very much HTML oriented, because they only know how to generate HTML-style forms. One of the major focuses of 1.1 will be better integration with XML in many directions, i...more
See: < http://email@example.com/msg03206.html > < http://firstname.lastname@example.org/msg00495.html > < http://jakarta...more
Struts is distributed by the Apache Software Foundation. These are the same people who distribute the Apache Web server. Like all ASF projects, Struts is managed as a "meritocracy", wher...more
Yes. The only requirements you must meet are those listed in the Apache Software Foundation license, which is included at the top of each source file and in the file LICENSE in the top-level direc...more
There is nothing about Struts that would care about precompiled versus not precompiled JSP pages, but the details of how you set them up depends on the servlet container you are using. With Tomca...more
You can use either container-based security or form-based security to authenticate users. With container-based security, the Web browser will track the logins for you, and "replay" the c...more
When you are compiling an application that uses the Struts classes, you must have the "struts.jar" on the classpath your compiler sees -- it does not have to be on your CLASSPATH enviro...more
To develop applications with Struts, you can usually just add the Struts JAR file to your Java development environment. You can then start using the Struts classes as part of your ow...more
The best place to download Struts is at jakarta.apache.org/struts. The nightly builds are very stable, and recommended as the best place to start today.more
The Struts package comes complete with a users guide to introduce people to the framework and its underlying technologies. Various components also have their own in-depth developers guide, to cov...more