-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Lukas,
I'm sorry that my answer is coming quit late, but I came back from work
soon.
Here's my code :
_*struts.xml:*_
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
~ <!-- Some or all of these can be flipped to true for debugging -->
~ <constant name="struts.i18n.reload" value="false" />
~ <constant name="struts.devMode" value="true" />
~ <constant name="struts.configuration.xml.reload" value="false" />
~ <constant name="struts.custom.i18n.resources"
value="globalMessages, navigation.properties" />
~ <constant name="struts.serve.static" value="true" />
~ <constant name="struts.serve.static.browserCache" value="false" />
~ <!--
~ <package name="RentalObject" namespace="/" extends="struts-default">
~ <action name="RentalObject"
class="net.magiccode.houseman.action.RentalObject">
~ <result>/RentalObject/RentalObject_input.jsp</result>
~ </action>
~ </package>
~ -->
~ <package name="index" namespace="/" extends="tiles-default">
~ [...]
~ <action name="rentalobject_*"
class="net.magiccode.houseman.action.RentalObjectAction" method="{1}">
~ <interceptor-ref name="paramsPrepareParamsStack" />
~ <result name="deleted"
type="redirectAction">rentalobjectlist</result>
~ <result type="tiles">rentalObject_{1}</result>
~ </action>
~ <action name="switchLanguage"
class="net.magiccode.houseman.action.base.I18nBaseAction"
method="switchLanguage()">
~ <interceptor-ref name="paramsPrepareParamsStack" />
~ <result>{0}</result>
~ </action>
~ </package>
</struts>
RentalObject.java:
package net.magiccode.houseman.action;
import java.util.List;
import net.magiccode.houseman.action.base.I18nBaseAction;
import net.magiccode.houseman.model.RentalObject;
import net.magiccode.houseman.service.RentalObjectService;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
public class RentalObjectAction extends* I18nBaseAction* implements
ModelDriven<RentalObject>, Preparable{
~ /**
~ *
~ */
~ private static final long serialVersionUID = 3085254858869668201L;
~ private RentalObjectService service;
~ private List<RentalObject> rentalObjects;
~ private RentalObject rentalObject;
~ private Integer id;
~ [...]
_*I18nBaseAction.java (BaseAction inherits ActionSupport):*_
/**
~ *
~ */
public class I18nBaseAction extends BaseAction implements ActionConstants {
[...]
~ public String switchLanguage() throws Exception{
~
setContentLanguage(getLanguageFactory().getLanguage(getLanguage()));
~ return SUCCESS;
~ }
I sent you only the relevant parts of the code to keep this mail readable.
Hope you may find an answer to my problem....
Regards
~ Volker
Lukasz Lenart schrieb:
| Could you post some more details? Action code, config, the full stack
trace?
|
|
| Regards
- --
- -------------------------------
Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mülheim/Ruhr
Tel. : (+49) 208-7785675
Mobil: (+49) 176-21056587
Mail : [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFI0qumaEMQXBIqssERAljqAKChKy6mUzGgeSK9NW0RbGv556rZBwCfTbcf
y5SnZ4OGcVxmGKV2x5/xk2c=
=sRso
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]