Solved

Use of fn: in jsp

Posted on 2014-03-24
1
430 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

860 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