clairekennedy@hotmail.com schrieb:
> However I have an include file which displays a
> menu this should also swap languages when the pages swaps. By checking
> the request parameter and loading the appropriate include file. This
> doesn't appear to work when I click on the URL as it doesn't change.
There are several ways to include a file. One includes the file at
compile time, one includes it at runtime, using a RequestDispatcher. The
way you are checking the request parameter might be incompatible with
the wrapped Request object that is passed through by RequestDispatcher.
If you use the include directive, you should be safe. It looks like this
(JSP 1.0):
<%@ include file="example" %>
You can find the corresponding JSP 2.0 syntax here:
http://java.sun.com/products/jsp/syntax/2.0/card20.pdf
Timo