• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Strange Struts

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You forgot to quote this:

type="com.struts.action.user.myTestAction <-- here
reply
    Bookmark Topic Watch Topic
  • New Topic