Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Use of fn: in jsp

Posted on 2014-03-24
1
Medium Priority
?
451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses

604 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