If the 'Accept-Language' of the http request is 'en', write out this in JSP: <form name='myform action="http://127.0.0.1/myservlet/en/> else if the 'accept-language' is 'es', write out this instead: <form name='myform action="http://127.0.0.1/myservlet/es/>
else if no match <form name='myform action="http://127.0.0.1/myservlet/default/>
How can I do that in JSP? I think this is simple enough so that I don' t need to use any of the Java Web framework/Java Beans.
Thank you for any help. [ October 26, 2006: Message edited by: Bear Bibeault ]
Well, first of all we need to know what versions of JSP and JSTL you are using (as per forum instructions).
At this point you should be using a JSP 2.0 container unless you've got a a really good reason not to be.
Secondly, remember that to a JSP, HTML markup is not XML -- it's just template text. So you don't need to worry about it being incomplete or syntactically correct in the JSP. Only when the renderred HTML is sent to the browser does completeness matter.