Foren
Exception Handling in Velocity Template
Jitendra Rajput, geändert vor 11 Jahren.
Exception Handling in Velocity Template
Liferay Master Beiträge: 875 Beitrittsdatum: 07.01.11 Neueste Beiträge
I am using code inside my velocity template which can throw JS error if user dont have permission.
I want to perform exception handling with velocity code. Below is the example code.
Any pointer will be really helpful.
- Jitendra
I want to perform exception handling with velocity code. Below is the example code.
#if($legacy-QA-URL.getData() && $legacy-QA-URL.getData() != "" && !($legacy-QA-URL.getData().contains("#")))
<p><iframe src="$legacy-QA-URL.getData()&lruserid=$user_ScreenName" style="display: none"></iframe></p>
#else
#if($legacy-PROD-URL.getData() && $legacy-PROD-URL.getData() != "" && !($legacy-PROD-URL.getData().contains("#")))
<p><iframe src="$legacy-PROD-URL.getData()&lruserid=$user_ScreenName" style="display: none"></iframe></p>
#end
#end
Any pointer will be really helpful.
- Jitendra