Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 27764 invoked from network); 21 Sep 2006 15:37:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2006 15:37:35 -0000 Received: (qmail 82997 invoked by uid 500); 21 Sep 2006 15:37:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 82596 invoked by uid 500); 21 Sep 2006 15:37:21 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 82584 invoked by uid 99); 21 Sep 2006 15:37:21 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 08:37:21 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=dns4@cornell.edu; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain cornell.edu from 128.253.83.141 cause and error) Received: from [128.253.83.141] ([128.253.83.141:59512] helo=authusersmtp.mail.cornell.edu) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 21/B0-00858-AA1B2154 for ; Thu, 21 Sep 2006 08:37:16 -0700 Received: from [127.0.0.1] (cpe-24-59-104-63.twcny.res.rr.com [24.59.104.63]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id k8LFbC6u011155 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 21 Sep 2006 11:37:12 -0400 (EDT) Message-ID: <4512B1A7.4000709@cornell.edu> Date: Thu, 21 Sep 2006 11:37:11 -0400 From: David Smith User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: URL Redirection References: <451285C6.4080004@bmpg.pl> <45128B06.1070100@cornell.edu> <451292CD.3020206@bmpg.pl> In-Reply-To: <451292CD.3020206@bmpg.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I see the gif image is the only one referenced using the '.' current directory operator. I've found it better to code image urls as "${pageContext.request.contextPath}/images/zapisz.gif". This will render the full path relative to the site and will also change automatically as the webapp's context path changes. --David Ashirvad Uniyal wrote: > David Smith wrote: >> Ok. Can you offer a code snippet showing where you compose the url to >> the gif image? >> >> --David >> >> Ashirvad Uniyal wrote: >>> Hello, >>> >>> If the application is renamed say for example "Test" or anything, >>> everything works fine and the gif appear but they >>> just vanish if the application is renamed as ROOT. >>> >>> Regards, >>> Ash >>> >>> Caldarale, Charles R wrote: >>>>> From: Ashirvad Uniyal [mailto:ashirvad.uniyal@bmpg.pl] Subject: >>>>> Re: URL Redirection >>>>> >>>>> I renamed the application to ROOT and everything works fine except >>>>> that all the images (gif) have all together vanished >>>> >>>> How are you referencing the images? Do you have a hard-coded URL in >>>> the >>>> generated HTML? >>>> >>>> - Chuck >>>> >>>> >>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE >>>> PROPRIETARY >>>> MATERIAL and is thus for use only by the intended recipient. If you >>>> received this in error, please contact the sender and delete the >>>> e-mail >>>> and its attachments from all computers. >>>> >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>>> For additional commands, e-mail: users-help@tomcat.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> > Hello, > > After spending long time understanding this project i still have no clue. > > All logic is contained in one file, testpage.jsp. Despite of the size > of the application, this file is a relatively small file. It was > possible to achieve through the Window Component Framework (WCF). This > framework is a set of tags, which enables developing short application > code based on JSP. > > I have problem understanding the testpage.jsp and modifing it. Please > find the snippet of the page souce of testpage.jsp, and the code of > testpage.jsp respectively > > > > > > > >
> > > > >
> id="toolbar01">
name="toolbar01.cubeNaviButton" src="/jpivot/toolbar/cube-up.png" > border="0" title="Open OLAP Navigator" width="24" > height="24"> name="toolbar01.mdxEditButton" src="/jpivot/toolbar/mdx-edit-up.png" > border="0" title="Show MDX Editor" width="24" > height="24"> name="toolbar01.sortConfigButton" > src="/jpivot/toolbar/sort-asc-up.png" border="0" title="Config OLAP > Table" width="24" height="24">
src="/jpivot/toolbar/level-style-up.png" border="0" title="Show Parent > Members" width="24" height="24"> name="toolbar01.hideSpans" src="/jpivot/toolbar/hide-spans-up.png" > border="0" title="Hide Spans" width="24" height="24"> type="image" name="toolbar01.propertiesButton" > src="/jpivot/toolbar/properties-up.png" border="0" title="Show > Properties" width="24" height="24"> name="toolbar01.nonEmpty" src="/jpivot/toolbar/non-empty-down.png" > border="0" title="Suppress Empty Rows / Columns" width="24" > height="24"> src="/jpivot/toolbar/swap-axes-up.png" border="0" title="Swap Axes" > width="24" height="24">
src="/jpivot/toolbar/navi-member-up.png" border="0" title="Drill > Member" width="24" height="24"> name="toolbar01.drillPosition" > src="/jpivot/toolbar/navi-position-down.png" border="0" title="Drill > Position" width="24" height="24"> name="toolbar01.drillReplace" > src="/jpivot/toolbar/navi-replace-up.png" border="0" title="Drill > Replace" width="24" height="24"> name="toolbar01.drillThrough01" > src="/jpivot/toolbar/navi-through-up.png" border="0" title="Drill > Through" width="24" height="24">
src="/jpivot/toolbar/chart-up.png" border="0" title="Show Chart" > width="24" height="24"> name="toolbar01.chartPropertiesButton01" > src="/jpivot/toolbar/chart-config-up.png" border="0" title="Chart > Config" width="24" height="24">
name="toolbar01.printPropertiesButton01" > src="/jpivot/toolbar/print-config-up.png" border="0" title="Configure > Print Settings" width="24" height="24"> href="./Print?cube=01&type=1"> border="0" title="Print this Page via PDF" width="24" > height="24"> src="/jpivot/toolbar/excel-up.png" border="0" title="Start Excel" > width="24" height="24">
src="/jpivot/toolbar/swap-axes-up.png" border="0" > title="toolb.chart.resize" width="24" height="24">
> >
> src="./images/zapisz.gif" > onmouseover="changeSrc(this,'images/zapisz_over.gif');" > onmouseout="changeSrc(this,'images/zapisz.gif');" width="176" > height="24" border="0" alt="Zapisanie aktualnego zapytania MDX" /> >
> >
height="1" alt="">
> > > > <%@ page session="true" contentType="text/html; charset=utf-8" > pageEncoding="UTF-8"%> > <%@ taglib uri="http://www.tonbeller.com/jpivot" prefix="jp" %> > <%@ taglib uri="http://www.tonbeller.com/wcf" prefix="wcf" %> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> > > > <%-- > > JPivot / WCF comes with its own "expression language", which simply > is a path of properties. E.g. #{customer.address.name} is > translated into: > session.getAttribute("customer").getAddress().getName() > WCF uses jakarta commons beanutils to do so, for an exact syntax > see its documentation. > > With JSP 2.0 you should use #{} notation to define > expressions for WCF attributes and \${} to define > JSP EL expressions. > > JSP EL expressions can not be used with WCF tags currently, all > tag attributes have their rtexprvalue set to false. > There may be a twin library supporting JSP EL expressions in > the future (similar to the twin libraries in JSTL, e.g. core > and core_rt). > > Check out the WCF distribution which contains many examples on > how to use the WCF tags (like tree, form, table etc). > > --%> > > > > Przyk?adowy system analiz wielowymiarowych w czasie > rzeczywistym: sprzedaz. oraz koszty. > > > > > > > > > > > > > > >
> > > > > >
class="srodek" cellspacing="0" cellpadding="0" border="0"> > > > >
src="images/top.jpg" align="left" width="1004" height="70" alt="">
> > > > > >
> <%@include file="mdx_select.jsp" %> > alt=""> > > > style="width:100%; height:100%"> > >
> >
> > > <%-- include query and title, so this jsp may be used with different > queries --%> > prefix="/WEB-INF/queries/" suffix=".jsp"/> > > > > > <%-- define table, navigator and forms --%> > > > model="#{query01}" visible="false"/> > model="#{table01}" visible="false"/> > > > xmlUri="/WEB-INF/jpivot/print/printpropertiesform.xml" > model="#{print01}" visible="false"/> > > > xmlUri="/WEB-INF/jpivot/chart/chartpropertiesform.xml" > model="#{chart01}" visible="false"/> > selmode="none" editable="true"/> > > > > >
> Analiza wynik�w sprzedaz.y wg. zapytania: >
height="1" alt="">
> > > > <%-- define a toolbar --%> > bundle="com.tonbeller.jpivot.toolbar.resources"> > model="#{navi01.visible}"/> > img="mdx-edit" model="#{mdxedit01.visible}"/> > img="sort-asc" model="#{sortform01.visible}"/> > > img="level-style" model="#{table01.extensions.axisStyle.levelStyle}"/> > img="hide-spans" model="#{table01.extensions.axisStyle.hideSpans}"/> > img="properties" > model="#{table01.rowAxisBuilder.axisConfig.propertyConfig.showProperties}"/> > > img="non-empty" model="#{table01.extensions.nonEmpty.buttonPressed}"/> > img="swap-axes" model="#{table01.extensions.swapAxes.buttonPressed}"/> > > tooltip="toolb.navi.member" radioGroup="navi" id="drillMember" > img="navi-member"/> > tooltip="toolb.navi.position" radioGroup="navi" id="drillPosition" > img="navi-position"/> > tooltip="toolb.navi.replace" radioGroup="navi" id="drillReplace" > img="navi-replace"/> > tooltip="toolb.navi.drillthru" id="drillThrough01" img="navi-through"/> > > model="#{chart01.visible}" /> > tooltip="toolb.chart.config" img="chart-config" > model="#{chartform01.visible}"/> > > tooltip="toolb.print.config" img="print-config" > model="#{printform01.visible}"/> > href="./Print?cube=01&type=1"/> > href="./Print?cube=01&type=0"/> > > img="swap-axes" model="#{chart01.resizable}"/> > > > <%-- render toolbar --%> > > > >
> > > > >
> xslUri="/WEB-INF/jpivot/toolbar/htoolbar.xsl" xslCache="true"/> > > src="./images/zapisz.gif" > onmouseover="changeSrc(this,'images/zapisz_over.gif');" > onmouseout="changeSrc(this,'images/zapisz.gif');" width="176" > height="24" border="0" alt="Zapisanie aktualnego zapytania MDX" /> >
> >
height="1" alt="">
> > > >
> > <%-- if there was an overflow, show error message --%> > >

> Otrzymany wynik spowodowa? > przepe?nienie >

>
> > > <%-- render navigator --%> > xslCache="true"/> > > <%-- edit mdx --%> > >

Edytor zapytan' MDX

> xslCache="true"/> >
>
> > <%-- sort properties --%> > xslCache="true"/> >
> <%-- chart properties --%> > xslCache="true"/> >
> <%-- print properties --%> > xslCache="true"/> > > >

> > xslCache="true"/> >

> Powr�t do pocza;tku >

> Przekr�j: > xslCache="true"/> >

> xslCache="true"/> > >

> > xslUri="/WEB-INF/wcf/wcf.xsl" xslCache="true"/> > > >

> >
 
> > >
> > >
> >
> > > > > > > Thanks and regards, > Ash > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org