• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When submiting driop down value its shwoing null.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

when i am selecting any of the value from drop down box its showing null .when i print these values in action class.
Please help me.

This is my jsp page code



myActionclass code

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

Just remove your %{} from list="%{experiences}" and use list="experiences"

and see using this.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

Now its works.But still i do not understand how its works.


<s:select name="upload.state" headerKey="" headerValue="- Select- "
id="stateId" list="states" listKey="stateId"
listValue="stateName" cssClass="formText" />


When i am trying to select state its also showing null values.

Please help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic