please post all jsp pages, all freemarker template code ,all java code and 
configuration
files of applicationContext.xml, decorators.xml, dwr.xml, sitemesh.xml
tiles.xml,validation.xml, web.xml, struts-actionchaining.xml,struts-ajax.xml
, struts-chat.xml, struts-conversion.xml, struts-filedownload.xml, 
struts-fileupload.xml
, struts-freemarker.xml, struts-hangman.xml, struts-integration.xml
, struts-interactive.xml, struts-jsf.xml, struts-model-driven.xml, 
struts-person.xml
,struts-tags-non-ui.xml, struts-tags-ui.xml, struts-tags.xml, struts-tiles.xml
,struts-token.xml,struts-validation.xml, struts-wait.xml
, struts-xslt.xml,struts.xml, as well as all properties files of 
globalMessages.properties,globalMessages_de.properties,globalMessages_fr.properties
,log4j.properties,*Action.properties,*-conversion.properties

so we may better help you determine your problem

(please feel free to re-post if i missed any items)
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung 

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






> From: kishanchellapaand...@spanservices.com
> To: user@struts.apache.org
> Date: Thu, 25 Jun 2009 19:09:07 +0530
> Subject: Struts2 - freemarker error
> 
> Hi,
> 
> I'm using struts 2.1.6, xwork-2.1.2, freemarker 2.3.13, ognl 2.6.11 and jboss 
> 5.0.1.
> 
> I'm having one ftl, where I'm doing the following
> 
> <#list "${additionalMethods}"?split(",") as additional>
> <#assign tmpInner>${additional?trim?substring(0, 
> additional?trim?index_of(":"))}</#assign>
> </#list>
> 
> But this gives me the following error:
> 
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of 
> range: -1
>       at java.lang.String.substring(String.java:1938)
>       at 
> freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:213)
> 
> I checked the length of the string which is 28 and the index_of ":" is 7.
> 
> Also I tried, ${additional?trim?substring(0, 1)} - this also gives the above 
> error. 
> 
> I don't know what the problem here is.
> 
> Please advice.
> 
> Thank you.
> Regards,
> Kishan.G
>  
> Team Leader.
> www.spansystems.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Reply via email to