Rohit Bajaj
asked on
finding out which jsp is included in a web page
Hi,
I have a file named additionalAddDisplay.jsp
Now this is included in two jsp
1) standard.jsp
2) secureStandard.jsp
For these two i only find reference in the tiles. xml which is as follows :
Now how do i find out whether standard.jsp is included in my webpage or securestandard.jsp is included.
Also whats the use of tiles.xml
I need to add some parameters in model so that i can access it in additionalAddDisplay.jsp
I am also unable to find out which file is reponsible for this so that i could include the parameters in map and then access it in this jsp.
Any help will be appreciated
Thanks
I have a file named additionalAddDisplay.jsp
Now this is included in two jsp
1) standard.jsp
2) secureStandard.jsp
For these two i only find reference in the tiles. xml which is as follows :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
<definition name="standardLayout" template="/WEB-INF/layouts/standard.jsp" preparer="com.yatra.platform.commons.utils.YatraViewPreparer">
<put-attribute name="topBar" value="/WEB-INF/layouts/topbar.jsp" />
<put-attribute name="title" value="Yatra Online" />
<put-attribute name="header" value="/WEB-INF/layouts/header.jsp" />
<put-attribute name="content" value=""/>
<put-attribute name="seofooter" value=""/>
<put-attribute name="footer" value="/WEB-INF/layouts/footer.jsp" />
<put-attribute name="themeFromCMS" value="" />
</definition>
<definition name="promoStandardLayout" template="/WEB-INF/layouts/promoStandard.jsp" preparer="com.yatra.platform.commons.utils.YatraViewPreparer">
<put-attribute name="topBar" value="/WEB-INF/layouts/topbar.jsp" />
<put-attribute name="title" value="Yatra Online" />
<put-attribute name="header" value="/WEB-INF/layouts/header.jsp" />
<put-attribute name="content" value=""/>
<put-attribute name="seofooter" value=""/>
<put-attribute name="footer" value="/WEB-INF/layouts/footer.jsp" />
</definition>
<definition name="secureStandardLayout" template="/WEB-INF/layouts/secureStandard.jsp" preparer="com.yatra.platform.commons.utils.YatraViewPreparer">
<put-attribute name="topBar" value="/WEB-INF/layouts/secureTopbar.jsp" />
<put-attribute name="title" value="Yatra Online" />
<put-attribute name="header" value="/WEB-INF/layouts/secureHeader.jsp" />
<put-attribute name="content" value=""/>
<put-attribute name="seofooter" value=""/>
<put-attribute name="footer" value="/WEB-INF/layouts/secureFooter.jsp" />
</definition>
<definition name="printETicketLayout" template="/WEB-INF/layouts/standard.jsp" preparer="com.yatra.platform.commons.utils.YatraViewPreparer">
<put-attribute name="topBar" value="" />
<put-attribute name="title" value="Yatra Online" />
<put-attribute name="header" value="" />
<put-attribute name="content" />
<put-attribute name="footer" value="" />
<put-attribute name="themeFromCMS" value="" />
</definition>
<definition name="errorStatusPage" extends="standardLayout">
<put-attribute name="content" value="/WEB-INF/layouts/resourceUnAvailable404.jsp" />
</definition>
<definition name="error" extends="standardLayout">
<put-attribute name="content" value="/WEB-INF/layouts/error.jsp" />
</definition>
<definition name="erroredSearch" extends="standardLayout">
<put-attribute name="content" value="/WEB-INF/layouts/erroredSearch.jsp" />
</definition>
<definition name="waitPageLayout" template="/WEB-INF/layouts/waitpage.jsp">
<put-attribute name="title" value="Yatra Online" />
</definition>
<definition name="tgWaitPageLayout" template="/WEB-INF/layouts/tgwaitpage.jsp">
<put-attribute name="title" value="Yatra Online" />
</definition>
</tiles-definitions>
Now how do i find out whether standard.jsp is included in my webpage or securestandard.jsp is included.
Also whats the use of tiles.xml
I need to add some parameters in model so that i can access it in additionalAddDisplay.jsp
I am also unable to find out which file is reponsible for this so that i could include the parameters in map and then access it in this jsp.
Any help will be appreciated
Thanks
ASKER
HI,
I am attaching important controllers which i think and root-context.xml.
Please see if this can help or you need more files.
Thanks
Spring-project-files.zip
I am attaching important controllers which i think and root-context.xml.
Please see if this can help or you need more files.
Thanks
Spring-project-files.zip
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HI mccarl,
Thanks for the above post. I will update shortly on it, if i need some more information.
Thanks
Thanks for the above post. I will update shortly on it, if i need some more information.
Thanks
ASKER
Hi Mccarl,
Just needed some suggestions from you. I am a java developer working on springs framework web Application. I want to know what according to you are good or emerging technologies which one should learn or which will have good scope in future ?
Just needed some suggestions from you. I am a java developer working on springs framework web Application. I want to know what according to you are good or emerging technologies which one should learn or which will have good scope in future ?
So anyway from the above tiles.xml you can work out the list of "definitions" that use either standard.jsp or secureStandard.jsp...
standardLayout
secureStandardLayout
printETicketLayout
errorStatusPage (indirectly via standardLayout)
error (indirectly via standardLayout)
erroredSearch (indirectly via standardLayout)
and so we just need to work out what controller methods refer ultimately to those definition names.