--- Shoaib Gauhar <[EMAIL PROTECTED]> wrote:
>
http://www.nabble.com/file/p12876594/Source%2BCode.zip
> Source+Code.zip 
> 
> I am attaching my struts.xml, TestAction.java and
> test.jsp, in which i have implemented 
> InputTransferSelect. It generates a java script
error
> when the page is rendered.

What JavaScript error? Why isn't there a getter for
the HashMap?

For those that don't want to download the zip file,
here are the relevant portions of the code:

JSP:
<s:form action="TestAction.action"> 
  <s:inputtransferselect name="map['ID']" 
                         label="ID" 
                         value="map['ID']" 
                         list="#{'1','2'}" 
                         theme="ajax" 
                         rightTitle="ID"/> 
</s:form>

Java:
public class TestAction extends ActionSupport {
    public HashMap map = new HashMap();
    public TestAction() {
        map.put("ID","1");
    }
    public String execute() {
        return SUCCESS;
    }
}

--- Shoaib Gauhar <[EMAIL PROTECTED]> wrote:

> 
>
http://www.nabble.com/file/p12876594/Source%2BCode.zip
> Source+Code.zip 
> 
> I am attaching my struts.xml, TestAction.java and
> test.jsp, in which i have
> implemented InputTransferSelect. It generates a java
> script error when the
> page is rendered. I am posting this mail for the
> second time because the
> first time i didnt get any reply (maybe because i
> didnt post any code of
> mine).
> 
> It would be highly appreciable if you could help me
> in this regard.
> 
> Shoaib Ahmad
> 
> (PS: I need to pass value through HashMap so please
> dont ask me to change
> it. Thanks)
> 
> -- 
> View this message in context:
>
http://www.nabble.com/InputTransferSelect-problem-in-Struts-2-tf4514585.html#a12876594
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to