Solved

Use of fn: in jsp

Posted on 2014-03-24
1
419 Views
Last Modified: 2014-04-02
Hi,
I have a file in my java spring based web project with following code :

<div id="oneway_temp" style="display: none">

		<section class="flight-options">
			<ul class="col-6">
				<li class="res-airline"><i class="spriteFltLogos x{ac}"></i> <small>{{fn:Rules.getAirlineName('{ac}')}}</small></li>
				<li class="flblock col-1-1" id="{blockId}_fo_o">
						{leg_0}</li>
				<li class="col-1-2 res-price-details">
		<span id="{blockId}_loaderPrice" class="loaderPrice">Getting Price...</span>
		<span class="hide" id="{blockId}_pricePanel">
		<span class=" res-price-info">
			<h3 data-togglxe="popover" id="showfare{blockId}" data-trigger="hover" data-contentdynamic="true" data-content="FareDetails.showFareSummary('{blockId}')" title="Fare Summary" data-bid="{blockId}" data-placement="bottomright" class="popmodal"
			data-contentcss="bookSummary_info res-modal res-fare res-summary" data-width="300">
			<span id="{blockId}_price"></span>
			</h3>
			<h4 id="{blockId}_pricert">
			<strike><span id="{blockId}_pricer"></span></strike>
			</h4>

		
	</span>
	<aside>
	<button type="button"  onclick="PriceUpdater.bookNow(this);"data-content="PriceUpdater.checkPrice('{blockId}')"  data-block="{blockId}" data-original-title="Please wait..." data-modalwindow="true"  data-contentdynamic="true" data-toggle="popover" data-placement="window" data-manual="true" data-width="265"  value="Select" class="ytBtn flR bookNow_js eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="Flight Option" data-trackvalue="Book Now" id="{blockId}_btnBook" title="Select">
	Select</button>
	</aside>
	</span>

	</li>
			</ul>
			
			<section id="{blockId}_mo_o" class="show">
				<ul class="col-6">
					<li class="col-1-1">{moreFltOptionsOn}</li>
				</ul>
			</section>
			<div class="res-toggle" id="{blockId}_tog" morebtn="0">
					<button class="showmorebtn" data-showhide="show" data-linkedelement="{blockId}" data-ontext="Show more flights" data-offtext="Hide more flights" data-onclass="ico-arr-down" data-offclass="ico-arr-up" data-spanclass="true" data-moreshown="false">
					<div class="showmoreflt" style="display:inline">Show more flights</div>
					<span class="ico-arr-down"></span>
					</button>
				</div>
		</section>
			<footer class="clearfix" id="footerDiv">
				<ul class="res-left">
					<li class="eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="Flight Option" data-trackvalue="View Baggage Rules">
						<a  href="javascript:void(0);"  data-url="/air-search/resources/html/international/overlay-flight-details-new.jsp" class="popmodal flightDetailLink" data-ajax="true"
						data-width="930"  data-tab=2 data-placement="window" data-bid={blockId} data-onsuccess="FlightDetails.showDetail('{blockId}')" title="Flight Details" data-contentcss="res-modal fixTop" data-onshow="FlightDetails.hideBodyScroll('{blockId}')" data-onhide="FlightDetails.showBodyScroll('{blockId}')">
						<i class="ico-baggage"></i>Baggage</a>
					</li>

					<li class="eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="Flight Option" data-trackvalue="View Fare Details"><a href="javascript:void(0);" data-url="/air-search/resources/html/international/overlay-flight-details-new.jsp" class="fareDetailLink popmodal" data-ajax="true"
						data-placement="window" data-tab=1  data-bid={blockId} data-onsuccess="FlightDetails.showDetail('{blockId}')" data-width="930"  data-contentcss="res-modal fixTop"
						title="Flight Details" data-onshow="FlightDetails.hideBodyScroll('{blockId}')" data-onhide="FlightDetails.showBodyScroll('{blockId}')">Fare Details</a></li>
				</ul>

				<ul class="res-right">
					<li class="eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="Flight Option" data-trackvalue="View Flight Details"><a href="javascript:void(0);" data-url="/air-search/resources/html/international/overlay-flight-details-new.jsp"  class="popmodal flightDetailLink" data-ajax="true" 
						data-width="930"  data-placement="window" data-tab=0 data-bid={blockId} data-onsuccess="FlightDetails.showDetail('{blockId}')" title="Flight Details" data-contentcss="res-modal fixTop" data-onshow="FlightDetails.hideBodyScroll('{blockId}')" data-onhide="FlightDetails.showBodyScroll('{blockId}')">View
							Flight Details</a></li>
				</ul>
			</footer>
			<div class="res-social">
			<a href="javascript:void(0);" data-url="/air-search/resources/html/international/overlay-email.jsp" class="popmodal socialShare eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="SocialShare Option" data-trackvalue="Email to Friend" data-contentcss="res-modal fixTop"
				title="Email this Itinerary" data-width="930" data-placement="window" data-ajax="true" data-onsuccess="ItinerarySharing.renderEmailTemplate('{blockId}')" data-onshow="FlightDetails.hideBodyScroll()" data-onhide="FlightDetails.showBodyScroll()"><strong>Email
					to Friend</strong> <span class="ico-email"></span></a> 
			<a href="javascript:void(0);" class="socialShare eventTrackable" data-trackcategory="INT Flight SRP Page" data-trackaction="SocialShare Option" data-trackvalue="Share on Facebook" onClick="javascript:return fb_share('{blockId}');"><strong>Share on Facebook</strong> <span class="ico-facebook"></span></a>
		</div>

</div>


<div id="oneway_temp_leg" style="display: none">
	<label id="{id}" show="0">
		<ul>
			<li class="res-depart">
			<span class="custom-Radiobox">
			<input type="radio"  data-checked="checked" name="{block}{leg}" value="{val}" id="{block}_{val}_rd"  data-leg="{leg}" class="{onoff}">			
			<span class="box {onoff}"><b class="tick"></b></span>
			</span>
				<aside>
					<span class="sch-depart">{dd}</span>
				</aside></li>
			<li class="res-arrive"><span class="sch-arrival">{ad}</span><small class="date-S">{adt}</small></li>
			<li class="res-duration">{du} <small><small> <span class="res-stops {{fn:Rules.getStopOver('{stops}')}}">{{fn:Rules.getStopOver('{stops}')}}
							</span>
							<i class="ico-info popmodal {tHaltClass} {{fn:Rules.getStopOver('{stops}')}}" data-toggle="popover" data-trigger="hover" data-contentdynamic="false" data-content="{{fn:Rules.getStopOver('{stops}','{technicalHalt}', 2, '{technicalHaltDuration}')}}" title="Stop Over Information"  data-placement="bottom">info</i></small></small></li>
		</ul>
		<span class="stopInfoR">
		<small class="stopOver" > {dac} {via} &rarr; {aac}	</small>
		<span class="stopinfo">
			<span>{{fn:Rules.getCityName('{dac}')}}</span>
			<span>{{fn:Rules.getViaNames('{via}')}}</span>
			<span>{{fn:Rules.getCityName('{aac}')}}</span>
		</span>
		</span>
		</label>

</div>

Open in new window


I need to understand what does and how the line :
{{fn:Rules.getAirlineName('{ac}')}}
works. Where does Rules come from how do i find out the execution of this statement.

Thanks
0
Comment
Question by:Rohit Bajaj
1 Comment
 
LVL 12

Accepted Solution

by:
Sharon Seth earned 500 total points
ID: 39950155
Obviously , Rules would have been set somewhere in the context . Search your entire project for 'Rules'
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now