Hello all,

I have an application that contain support for multiple languages, we opt 
for the multiple language/multiple jsp option, where each language of the 
system will contain its own set of jsp.

We now have a problem that during validation, when there is an error, we 
would like the page forwarded back to the original jsp (of the originating 
language). But right now the mapping only allow us to define one input form, 
so upon looking at the source file, I think we can redefine 
processValidate() of ActionServlet a bit, instead of getting the input form 
from the mapping, we can get it from a parameter:

// Has an input form been specified for this mapping?
String uri = (request.getParameter(Constants.INPUT_FORM));
if (uri == null || uri.equals(""))
{ uri = mapping.getInput(); }
....

The idea is like this, is our approach correct? (pls don't say we shouldn't 
have a duplicate set of jsp) Or there is some better way to achieve that?

Thanks a lot.

Fred Lo
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to