I wrote a very basic JAVA tag. I've now stripped it down to the following:
import com.allaire.cfx.*;
import javax.swing.*;
public class GetFileName implements CustomTag
{
public void processRequest( Request request, Response response )
{
// String strName = request.getAttribute( "FULLNAME" ) ;
String strName = "Hello there";
response.write(strName);
}
}
When I call this tag with as follows:
<cfx_GetFileName FULLNAME="#trim(GetDocument.dm_doi)#">
and GetDocument.dm_doi = "/app07/ILNB_dochome_app07/docs0887/ILNB.1.5.bk.62199.13008789.3"
I get the following error:
String index out of range: -35
35 is the character position of the last /, and will change if I change the string. If I change all of the / to \, the tag works fine. Unfortunately, I'm working with a UNIX system and require the slashes to be /.
Help please? I posted this in ColdFusion. It was suggested I try posting it here.
Of course I'm working on a time-sensitive project (aren't we all?)
import com.allaire.cfx.*;
import javax.swing.*;
public class GetFileName implements CustomTag
{
public void processRequest( Request request, Response response )
{
// String strName = request.getAttribute( "FULLNAME" ) ;
String strName = "Hello there";
response.write(strName);
}
}
When I call this tag with as follows:
<cfx_GetFileName FULLNAME="#trim(GetDocument.dm_doi)#">
and GetDocument.dm_doi = "/app07/ILNB_dochome_app07/docs0887/ILNB.1.5.bk.62199.13008789.3"
I get the following error:
String index out of range: -35
35 is the character position of the last /, and will change if I change the string. If I change all of the / to \, the tag works fine. Unfortunately, I'm working with a UNIX system and require the slashes to be /.
Help please? I posted this in ColdFusion. It was suggested I try posting it here.
Of course I'm working on a time-sensitive project (aren't we all?)