Solved

Use of fn: in jsp

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split string containing \r\n in Java 46 43
Arrays.asList  VS  ArrayList 4 54
how to see all occupied ports on windows 10 laptop 15 62
What's wrong with this code? 4 22
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

785 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