You need to sign in to do that
Don't have an account?

How can i pass string from one visualforc page to another without using controller
I need to pass 'BenefitsTab' string from vfp1 to vfp2 when i click command button in vfp1 which calls vfp2 into iframe. Plz help.This avoids me to write 11 VFP's
VFP 1:
<apex:page controller="BenefitsTabControllernew" access="global" id="benecomp">
<apex:iframe src="/{!BenefitsTab.Default_Article__c}&isdtp=vw" id="mainframe" rendered="{!Benefitsframeflag}" scrolling="true" />
<apex:commandButton value="Search Articles" onclick="document.getElementById('mainframe').src='/apex/Article_ResultsList';return false" id="submitButton" rerender="benefitspanel"/>
<!-- I Need To pass 'BenefitsTab' string from this page to another VFP2-->
</apex:page>
VFP 2:
<apex:page sidebar="false" title="Article List" controller="BenefitsTabControllernew" standardStylesheets="false" showHeader="false" >
<knowledge:articleList articleVar="article" pageNumber="{!currentPageNumber}" categories="{!BenefitsTab.Search_Category__c}" Keyword="{!searchstring}" hasMoreVar="false" pageSize="10">
</knowledge:articleList>
</apex:page>
VFP 1:
<apex:page controller="BenefitsTabControllernew" access="global" id="benecomp">
<apex:iframe src="/{!BenefitsTab.Default_Article__c}&isdtp=vw" id="mainframe" rendered="{!Benefitsframeflag}" scrolling="true" />
<apex:commandButton value="Search Articles" onclick="document.getElementById('mainframe').src='/apex/Article_ResultsList';return false" id="submitButton" rerender="benefitspanel"/>
<!-- I Need To pass 'BenefitsTab' string from this page to another VFP2-->
</apex:page>
VFP 2:
<apex:page sidebar="false" title="Article List" controller="BenefitsTabControllernew" standardStylesheets="false" showHeader="false" >
<knowledge:articleList articleVar="article" pageNumber="{!currentPageNumber}" categories="{!BenefitsTab.Search_Category__c}" Keyword="{!searchstring}" hasMoreVar="false" pageSize="10">
</knowledge:articleList>
</apex:page>
get the string in VFP2 from the same controller. does this works?