O'Reilly logo

Learning Jakarta Struts 1.2: a concise and practical tutorial by Stephan Wiesner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.8 Different Struts Functions

At this point, it would be good to introduce a few of the functions that are used frequently—such as file uploading—but have not been used in the shop.

13.8.1 Switching Languages

Determining the language preference of the browser provides an elegant option to greet customers in their native language. But this is not desirable in every case, and a multilingual site should offer the possibility of switching languages manually.

This section looks at a useful procedure for solving such a problem.

Exercise 2

How would go about implementing this functionality? Take a little time and try it at your own pace.

Struts comes with quite a few WAR files. One of them, struts-validator.war, contains a small web application, explaining ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required