You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by calintz <t4...@yahoo.com> on 2009/10/06 08:40:04 UTC

Struts2 and html select tag problem

Hi everyone, I'm having some problems on html select Tag. 

This is part of my jsp code 
  <form name="CUD" action="abc.do" method="post"> 
     <select style="visibility:visible" name="deleteList"  id="deleteList"
multiple="multiple"> 
        <option value="Testing">Testing</option> 
     </select> 
  </form> 

This is part of my action.java 
    HttpServletRequest request =
(HttpServletRequest)ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST); 
    String[] deleteList = request.getParameterValues("deleteList"); 

my deleteList is null, which means i'm not able to retrieve data from the
submitted CUD form. Any idea on this issue? 
-- 
View this message in context: http://www.nabble.com/Struts2-and-html-select-tag-problem-tp25763661p25763661.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts2 and html select tag problem

Posted by calintz <t4...@yahoo.com>.
Problem solved already...i need to set the option to be selected as below
<option value="Testing" SELECTED>Testing</option> 
Sorry for my stupid question>"<
-- 
View this message in context: http://www.nabble.com/Struts2-and-html-select-tag-problem-tp25763661p25764804.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org