Uploaded image for project: 'XWork'
  1. XWork
  2. XW-605

parameters in Result declaration are not passed thru properly..

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.0.5
    • 2.1.2
    • None
    • None
    • wintel

      xwork 2.0.4

      struts 2.0.11

      tc 5.5.17

      JVM 1.4

    Description

      when the following String[] params is populated and then referenced the shorter populated string param causes NPE

      > > > When I try to configure un ServletActionRedirectResult i obtain

      > > >

      > > > Caused by:

      > > >

      > > > java.lang.NullPointerException

      > > > at

      > >

      >

      > org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping

      > (DefaultActionMapper.java:466)

      /**

      • not working annotation

      *

      *

      @Result(name="success",value="findAllTables",params={"namespace","/tables","eid","${eid}","etid","${etid}"},type=

      ServletActionRedirectResult.class) // this not work

      *

      @Result(name="success",value="findAllTables",params={"namespace","/tables","eid","${eid}","etid777","${etid}"},type=

      ServletActionRedirectResult.class) // this works (i can't understand why)

      **/

      public class CreateTableAction extends BaseAction {

      private Long eid;

      private Long etid;

      @Override

      public String execute() throws Exception

      { Model.createTable(eid,etid); return SUCCESS; }

      public Long getEid()

      { return eid; }

      public void setEid(Long eid)

      { this.eid = eid; }

      public Long getEtid()

      { return etid; }

      public void setEtid(Long etid)

      { this.etid = etid; }

      }

      Perhaps a configuration item I'm missing here ???

      Otherwise please fix..

      Thanks/

      Martin--

      Attachments

        Activity

          People

            rainerh Rainer Hermanns
            mgainty Martin Gainty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: