Solved

Use of fn: in jsp

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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 437
Java program running SQL query 5 50
Tomcat 9 + java 8 error while trying to deploy a war file 2 732
How to fix  socket closed error 11 32
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

730 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