Can't figure it out how to

后端 未结 1 968
无人及你
无人及你 2020-12-06 15:05

Trying to get list of companies in select but it gives me an error.

type Exception report

message tag \'select\', field \'list\', name \'workO         


        
相关标签:
1条回答
  • 2020-12-06 15:56

    The JSP contains a select tag returned by the action. When you add an order it should have a list attribute bound to the bean property. It should be a top object in the value stack.

    In most cases initializing that property in the action class better to implement the preparable interface where you have to write prepare() method and initialize the list.

    The exception is thrown because the list attribute of the s:select tag couldn't be null. You should properly initialize the variable used for the tag before returning a result that has references to that variable.

    0 讨论(0)
提交回复
热议问题