Author: mareshkau
Date: 2008-06-09 14:12:44 -0400 (Mon, 09 Jun 2008)
New Revision: 8648
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2297
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2008-06-09
16:56:16 UTC (rev 8647)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2008-06-09
18:12:44 UTC (rev 8648)
@@ -57,8 +57,15 @@
try {
tagValue = URLDecoder.decode(tagValue, "UTF-8"); //$NON-NLS-1$
} catch (UnsupportedEncodingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+
+ VpePlugin.getPluginLog().logError(e);
+ } catch (IllegalArgumentException ex) {
+ //if user enter invalid URL, for example " % sss",
+ //illegal argument exception will be throwed,
+ //brouser will not processed this url, so we just slow this exeption
+ //You can check it's by inserting next code
+ //<h:graphicImage value=" %=
request.getContextPath()%/images/logos/banner.png"/>
+ tagValue="";
}
IPath tagPath = new Path(tagValue);