Johnson nickel wrote:
public String execute() throws Exception{
System.out.println("Inside Index action");
request.getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY,
new java.util.Locale("fr","FR"));
System.out.println(request.getSession());
return SUCCESS;
}
(Yet another reason tabs are evil.)
The I18N interceptor does this work for you, AFAIK.
In struts.xml file,
<action name="lang" class="useradmin.IndexAction">
<result>/index.jsp</result>
</action>
Here, i don't want to return the jsp file.
What do you want to return?
You can use dynamic results to modify the content of the result
configuration. If you have an action property you can include it in the
result:
<result>/index_${foo}.jsp</result>
(At least I assume that would work.)
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org