struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Lin <>
Subject About StrutsTypeConverter
Date Sat, 02 Jul 2011 09:44:46 GMT

I have a questsion about StrutsTypeConverter.
It has 2 methods to be implemented:

public Object convertFromString(Map context, String[] values, Class toClass) and
public String convertToString(Map context, Object o) .

Why the second parameter in convertFromString String[] instead of String?
Does it mean struts will pass a array of String to converter when
there are multiple parameter with the same name in JSP?

But in that case, how do we convert the object back to String[] when
the JSP is being rendered?

Best Regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message