This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 300
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: 684


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: 300
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.