Say, I have a Map<String,String> of the kind:

Map<String, String> pet = new HashMap<String, String>();
public Map<String, String> getPet() { return pet; }
public void setPet(Map<String,String> pet) { this.pet = pet; }

Typically, pet might contain something like:

pet.put("fr", "chat");
pet.put("en", "cat");

How do I refer to one of the map entries in a texfield?  What is the proper
OGNL expression?
The following doesn't seem to be understood by OGNL:

<s:form>
Enter the type of pet: <s:textfield name="pet['en']" />
</s:form>

Reply via email to