<html:select> and ???en_US.null??

A

Arun Nair

I have a jsp page which needs a drop down select box. I am using
struts, so for the drop down I have
<html:select property="category" size="1">
<html:eek:ption value="Government"/>
<html:eek:ption value="Public Sector"/>
<html:eek:ption value="Private Sector"/>
</html:select>

in a jsp page. But when the page is executed in place of the above
values
I get ???en_US.null?? for all the 3 values in the browser.

Can you tell me how to fix this?

thanks,

Arun
 
T

Tim Slattery

I have a jsp page which needs a drop down select box. I am using
struts, so for the drop down I have
<html:select property="category" size="1">
<html:eek:ption value="Government"/>
<html:eek:ption value="Public Sector"/>
<html:eek:ption value="Private Sector"/>
</html:select>

in a jsp page. But when the page is executed in place of the above
values
I get ???en_US.null?? for all the 3 values in the browser.

Can you tell me how to fix this?

The "value" attribute tells the browser what string to send to the
server when the option is chosen. But you're not telling the browser
what to show the user. I think you want to say something like this:

<html:select property="category" size="1">
<html:eek:ption
value="Government">Government</html:eek:ption>
<html:eek:ption value="Public Sector">Public
Sector</html:eek:ption>
<html:eek:ption value="Private Sector">Private
Sector</html:eek:ption>
</html:select>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top