<font size=2 face="Trebuchet MS">Hi All,</font>
<br>
<br><font size=2 face="Trebuchet MS">        We
have a requirement that user selected  country and language should
be appended to the url. For eg the url </font><a href=http://www.domain.com/cms/airports/airportlounges.html><font size=2 face="Trebuchet MS">http://www.domain.com/cms/airports/airportlounges.html</font></a><font size=2 face="Trebuchet MS">
 should be shown as </font><a href=http://www.domain.com/cms/in/en/airports/airportlounges.html><font size=2 face="Trebuchet MS">http://www.domain.com/cms/in/en/airports/airportlounges.html</font></a><font size=2 face="Trebuchet MS">
. For this purpose i m using the tuckey URL rewrite filter and rewriting
the url.The OpenCmsServlet url pattern is "/<u>cms</u>/*" and
hence the url posted to cms will be /in/en/airports/airportlounges.html
. Since the path "/in/en" is not physically exist in the cms,
the CmsObject.getRequestContext().getSiteRoot() is null and the cms.getRequestContext().getUri()looks
like /sites/default/in/en/airports/airportlounges.html . </font>
<br><font size=2 face="Trebuchet MS">        To
correct this, i m removing the "/in/en/" from the uri and setting
it back to the cms.getRequestContext().setUri(uri) and also setting thecms.getRequestContext().setSiteRoot("/sites/default").
However the CmsResource resource.getRootPath()is null and the resources
related to the uri are not read using cms.readPath(tempUri, CmsResourceFilter.</font><font size=2 color=#0021bf face="Trebuchet MS"><i>ALL</i></font><font size=2 face="Trebuchet MS">);
       . This is resulting in page not found
exception.</font>
<br><font size=2 face="Trebuchet MS">        Can
anyone please advise me ,how is the CmsResource parameters are set for
a request and also is it possible to modify the CmsResource parameters
?</font>
<br>
<br><font size=2 face="sans-serif">Thanks and Regards,<br>
</font>
<table>
<tr>
<td><font size=2 color=#5f5f5f face="Trebuchet MS"><b>Raghu D</b> | <b>Senior
Software Engineer</b> </font>
<tr>
<td>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="Trebuchet MS">IBS Software Services
(P) Ltd</font>
<br><font size=1 color=#5f5f5f face="Trebuchet MS">5th floor NILA , Technopark
Campus, Trivandrum</font>
<br><font size=1 color=#5f5f5f face="Trebuchet MS">Mob: +91-9037358606</font><a href=http://www.ibsplc.com/></a>
<br><font size=1 color=#5f5f5f face="Trebuchet MS">Raghu.Devaraj@ibsplc.com
| </font><a href=www.ibsplc.com><font size=1 color=#5f5f5f face="Trebuchet MS"><u>www.ibsplc.com</u></font></a></table>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
DISCLAIMER:</font><font size=3> </font><font size=1 color=#a2a2a2 face="Tahoma"><br>
<br>
"The information in this e-mail and any attachment is intended only
for the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or
any attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."</font><font size=3><br>
</font><font size=1><br>
</font><font size=3><br>
</font>
<br>
<br>