Hi guys,
Currently i have a java program that does the importing of excel to the
database.
Users are using ant scripts to run the tool.
Users would have to specified something like
<dbField colname="student_id" value="@excelCol1@"/> <!-- update from
excel column -->
<dbField colname="update_by" value="ADMIN"/> <!-- update from string
"ADMIN" -->
Is there any APIs i can use to differentiate between something i
specified using @@ and a normal string?
Bart Cremers - 02 May 2006 10:07 GMT
if (string.startsWith("@") && string.endsWith("@"))
or
if (string.matches("^@.+@$"))
if you want it fancier.
Bart