This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 18, 2011, 2:33 AM
7 Posts

Previewing in web browser - feeling lucky this time :)

  • Category: Other Domino Designer Tooling
  • Platform: Windows
  • Release: 8.5
  • Role: Developer
  • Tags: Previewing in web browser
  • Replies: 1
Hi,
 
Since there is no response for my earlier post, I am again posting in more detail. I have a demo application and trying to preview in web browser, I am getting the entire source code instead of the xpage demo. Could some one help.
 
Thanks.
 
example of what I am getting:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
 xmlns:xc="http://www.ibm.com/xsp/custom">
 <xp:this.resources>
  <xp:styleSheet href="/styles.css"></xp:styleSheet>
 </xp:this.resources>
 <xc:Header></xc:Header>
 <xp:br></xp:br>
 
 <xp:span
  style="font-weight:bold;font-family:verdana;font-size:16pt;font-style:italic;color:rgb(0,0,128)">
  </xp:span><xp:span style="font-weight:bold;font-family:verdana;font-size:16pt;font-style:italic;color:rgb(0,0,128)" styleClass="title">Site Finder
 </xp:span>
 <xp:span
  style="font-weight:bold;font-family:verdana;font-size:16pt;font-style:italic;color:rgb(0,0,128)">
 </xp:span>
 <xp:br></xp:br>
 <xp:br></xp:br>
 Fill in any or all of these fields and click Search.
 <xp:br></xp:br>
 <xp:table>
  <xp:tr>
   <xp:td>
    <xp:label value="City:" id="SearchCity_Label"></xp:label></xp:td>
   <xp:td>
    <xp:inputText id="searchCity1"
     value="#{sessionScope.searchCity}">
    </xp:inputText>
   </xp:td>
  </xp:tr>
  <xp:tr>
   <xp:td>
    <xp:label value="State:" id="SearchState_Label1"
     for="SearchState1">
    </xp:label>
   </xp:td>
   <xp:td>
    <xp:inputText value="#{sessionScope.searchState}"
     id="SearchState1">
    </xp:inputText>
   </xp:td>
  </xp:tr>
  <xp:tr>
   <xp:td>
    <xp:label value="Country:" id="SearchCountry_Label1"
     for="SearchCountry1">
    </xp:label>
   </xp:td>
   <xp:td>
    <xp:inputText value="#{sessionScope.searchCountry}"
     id="SearchCountry1">
    </xp:inputText>
   </xp:td>
  </xp:tr>
  
  <xp:tr>
   <xp:td>
    <xp:label value="Zip/Postal code:" id="SearchZip_Label1"
     for="SearchZip1">
    </xp:label>
   </xp:td>
   <xp:td>
    <xp:inputText value="#{sessionScope.searchZip}"
     id="SearchZip1">
    </xp:inputText>
   </xp:td>
  </xp:tr>
 </xp:table>

 <xp:button value="Search" id="button2">
  <xp:eventHandler event="onclick" submit="true"
   refreshMode="complete" immediate="false" save="true">
  </xp:eventHandler>
 </xp:button>
 
 <xp:br></xp:br>
 Query string:
 <xp:text escape="true" id="computedField1" style="font-size:12pt;font-weight:bold;color:rgb(0,0,255)" value="#{sessionScope.queryString}">
 </xp:text>
 <xp:br></xp:br>
 <xp:viewPanel rows="30" id="viewPanel1" pageName="/SiteFinal.xsp">
  <xp:this.data>
   <xp:dominoView var="siteList" viewName="SiteList">

    <xp:this.search><![CDATA[#{javascript:var tmpArray = new Array("");
var cTerms = 0;
if(sessionScope.searchZip != null & sessionScope.searchZip != "") {
 tmpArray[cTerms++] = "(FIELD SearchZip = \"" + sessionScope.searchZip + "\")";
}
if(sessionScope.searchCity != null & sessionScope.searchCity != "") {
 tmpArray[cTerms++] = "(FIELD SearchCity = \"" + sessionScope.searchCity + "\")";
}
if(sessionScope.searchState != null & sessionScope.searchState != "") {
 tmpArray[cTerms++] = "(FIELD SearchState = \"" + sessionScope.searchState + "\")";
}
if(sessionScope.searchCountry != null & sessionScope.searchCountry != "") {
 tmpArray[cTerms++] = "(FIELD Country = \"" + sessionScope.searchCountry + "\")";
}
qstring = tmpArray.join(" AND ").trim();
sessionScope.queryString = qstring;
return qstring}]]></xp:this.search>
   </xp:dominoView>
  </xp:this.data>
  <xp:viewColumn id="viewColumn1" displayAs="link"
   openDocAsReadonly="true" columnName="Site">
   <xp:viewColumnHeader id="viewColumnHeader1" value="Site"></xp:viewColumnHeader>
  </xp:viewColumn>
  <xp:viewColumn id="viewColumn2" columnName="Phone">
   <xp:this.converter>
    <xp:convertNumber></xp:convertNumber>
   </xp:this.converter>
   <xp:viewColumnHeader id="viewColumnHeader2" value="Phone"></xp:viewColumnHeader>
  </xp:viewColumn>
  <xp:viewColumn columnName="Address" id="viewColumn3">
   <xp:viewColumnHeader value="Address"
    id="viewColumnHeader3">
   </xp:viewColumnHeader>
  </xp:viewColumn>
  <xp:viewColumn columnName="City" id="viewColumn4">
   <xp:viewColumnHeader value="City" id="viewColumnHeader4"></xp:viewColumnHeader>
  </xp:viewColumn>
  <xp:viewColumn id="viewColumn5" columnName="State/Province">
   <xp:viewColumnHeader value="State/Province"
    id="viewColumnHeader5">
   </xp:viewColumnHeader>
  </xp:viewColumn>
  <xp:this.facets>
   <xp:pager layout="Previous Separator Group Separator Next"
    xp:key="headerPager" id="pager1" for="viewPanel1">
   </xp:pager>
  </xp:this.facets>
 </xp:viewPanel>
</xp:view>
   
Aug 18, 2011, 5:37 AM
129 Posts
Re: Previewing in web browser - feeling lucky this time :)
What problems are you having? Are you previewing from local?
 
If from local/only a blank page, make sure no other application is holding port 80. 
 
To see which application holds specific ports, run this in windows command line: 
netstat -b -p tcp 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal