<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17097" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>Thanks for your reply, Holger.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>I really don't want to do a workaround, since it is
perfectly valid for a parameter to have multiple values.
(And e.g. if I should need to use checkboxes, this
is exactly how it would be.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>This is also reflected by the
getParameterValues(String) method in ServletRequest: <A
href="http://goo.gl/18kaj">http://goo.gl/18kaj</A> – it returns an array
of Strings, not a String. The getParameter(String) method also states: "You
should only use this method when you are sure the parameter has only one
value."</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN><SPAN class=249324009-16062011><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>In my head, this should mean that it should be
possible to create one unique cached page per unique parameter combo
– even if that combo is made up of multiple values of the same
parameter. For example:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>
list-opencms-providers.jsp?country=de</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>would not be the same
page as </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>
list-opencms-providers.jsp?country=de&country=it&country=no</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>Is the flex cache flawed with respect to this, or
am I just missing something here?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=249324009-16062011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Kunicke, Holger<BR><B>Sent:</B> 16. juni 2011 11:35<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> Re: [opencms-dev] Flex cache and
multiple parameters values<BR></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>Hello Paul,<BR><BR>Your guess with the "workaround" solution sounds
the best. <SPAN class=short_text lang=en id=result_box><SPAN class=hps
title="Zur
Anzeige alternativer Übersetzungen klicken">In
some</SPAN> <SPAN class=hps
title="Zur Anzeige alternativer Übersetzungen klicken">situatiuon</SPAN>s
<SPAN class=hps
title="Zur Anzeige
alternativer Übersetzungen klicken">I
make</SPAN> <SPAN class=hps
title="Zur Anzeige alternativer Übersetzungen klicken">it
so.</SPAN></SPAN><BR><SPAN class="" lang=en id=result_box><SPAN class=hps
title="Zur Anzeige
alternativer Übersetzungen klicken"><BR></SPAN></SPAN><SPAN
class=short_text lang=en id=result_box><SPAN class=hps
title="Zur Anzeige alternativer Übersetzungen klicken">Depending
on</SPAN></SPAN> the numbers of multiple categories, <SPAN class="" lang=en
id=result_box><SPAN class=hps
title="Zur Anzeige alternativer Übersetzungen klicken">a solution</SPAN> <SPAN
class=hps
title="Zur Anzeige
alternativer Übersetzungen klicken">would
be to use more </SPAN></SPAN>parameters: "cat1", "cat2", ... <BR><BR>Regards
<BR>Holger<BR><BR>Am 15.06.2011 15:05, schrieb Paul-Inge Flakstad:
<BLOCKQUOTE
cite=mid:4D405B4872E4E54A95966E6CF909E7F329C5F5CE52@ANTON.nett.npolar
type="cite"><SPAN class=350393512-15062011><FONT face=Arial
size=2>...<BR><BR>The problem arise when the list is filtered
using multiple categories. The URLs for such lists look like
this:</FONT></SPAN>
<DIV><SPAN class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2>2)
mysite.com/en/list.html?cat=/category/one/&cat=/category/two/</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>With the cache
property set to "params=(cat)", flex cache only considers the first "cat"
parameter, producing the same output as for 1). Only the
first "cat" parameter is considered.</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>To cache the
initial page, I've set the cache property to "no-params=(cat)" – I
was unable to find any other solution.</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011></SPAN><SPAN
class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>Is there any way
to accomplish what I want with flex cache?</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>(PS I am aware
of the workaround solution; using a delimiter character to separate
categories and having a single parameter string for "cat", but I was hoping
to avoid that one.)</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011></SPAN> </DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=350393512-15062011><FONT face=Arial
size=2>Paul</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>