This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes When  submiting driop down value  its shwoing null. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "When  submiting driop down value  its shwoing null." Watch "When  submiting driop down value  its shwoing null." New topic
Author

When submiting driop down value its shwoing null.

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 302
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

Joined: Sep 07, 2008
Posts: 689


Hi,

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

and see using this.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 302
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When submiting driop down value its shwoing null.
 
It's not a secret anymore!