posted 19 years ago
hi all,
i have this action which get called which i click a link and it works perfectly fine
<action path="/myTest"
name="myTestForm"
type="com.struts.action.user.myTestAction"
validate="false">
<forward name="success"
path="/jsp/test/first_test.jsp"
redirect="false"/>
</action>
now if i addd the lines to the same action i get NULL FOR THE FORM(ie myTestForm)
<action path="/myTest"
name="myTestForm"
type="com.struts.action.user.myTestAction
className="com.navtech.pet.struts.action.user.CustomActionMapping"
validate="false">
<set-property property="option1" value="width=400,height=250,screenX=50,screenY=50"/>
<set-property property="option2" value="fullscreen=true,center=yes,toolbar=no,menubar=no"/>
<set-property property="option3" value="scrollbars=no,resizable=no,dependent"/>
<forward name="success"
path="/jsp/test/first_test.jsp"
redirect="false"/>
</action>
in my action class i have this line
System.out.println("is FORM NULL = "+(form==null));
and it returns true in the second action, however when i delete all teh set properties and classname it works fine it returns false for that.
Has anyone come accross this problem?
am i doing anything wrong? pls tell me.
thanks
aziz dhanani