struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john lee <sh_thorn_b...@yahoo.com>
Subject sj:select default value not load
Date Fri, 02 Aug 2013 20:00:39 GMT
 
For struts2 sj:select tag from google
 
<s:url id="remoteurl" action="KeywordcategoryAction"/>
                                <sj:select
                                        href="%{remoteurl}"
                                        id="language"
                                        onChangeTopics="reloadsecondlist"
                                        name="language"
                                        list="languageObjList"
                                        listKey="myKey"
                                        listValue="myValue"
                                        emptyOption="true"
                                        headerKey="-1"
                                        headerValue="Select
Category"
                                        value="why"
                                />
 
for above jsp file, i can retrieve the data from KeywordcategoryAction for no problem
 
but, the default value(why) as defined from KeywordcategoryAction did not working at all
 
I try to change from value="why" to value="%{why}", but still not working,
 
the setting inside  KeywordcategoryAction is the following
   ...
    public String getWhy(String why) { return why; }
    public void setWhy(String why) { this.why=why; }
    why="Temperature";
    return success;
 
 
please advise, thanks in advance
 
john
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message