mEuroSpecified,
mCurrencyConversion,
mCurrencyConversionSpecified,
mGroupingsize,
mGroupingsizeSpecified);
TagConverter converter = null;
Properties converterArgs = null;
if (converterInfo != null) {
converter = converterInfo.getConverter ();
converterArgs = converterInfo.getConverterArgs ();
if (mMindateSpecified && mMindate != null) {
converterArgs.setProperty("mindate",mMindate);
}
if (mMaxdateSpecified && mMaxdate != null){
converterArgs.setProperty("maxdate",mMaxdate);
}
}
// Get the value as a String
String valueString = "";
if (mBeanvalueSpecified) {
if (mParamvalueSpecified || mValueSpecified) {
throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
}
// Resolve the bean name against the imports
mBeanvalue = ImportedBeans.resolveName (mBeanvalue, mPageContext);
valueString =
DropletDescriptor.getPropertyStringValue
(request,
response,
mBeanvalue,
true,
null,
null);
}
else if (mParamvalueSpecified) {
if (mBeanvalueSpecified || mValueSpecified) {
throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
}
Object paramvalue = request.getObjectParameter(mParamvalue);
if (null == paramvalue){
valueString = "";
}else{
if(null != converter){
valueString = converter.convertObjectToString(request,
paramvalue,
converterArgs);
}else{
valueString = paramvalue.toString();
}
}
}
else if (mValueSpecified) {
if (mBeanvalueSpecified || mParamvalueSpecified) {
throw new JspException (Constants.OPTION_TAG_BAD_VALUEATTRIBUTES);
}
if (null != converter &&
null != mValue &&
((String)mValue).trim().length() > 0){
Object obj = converter.convertStringToObject(request,
(String)mValue,
converterArgs);
valueString = converter.convertObjectToString(request,
obj,
converterArgs);
}else{
valueString = (mValue == null) ? "" : mValue.toString ();
}