Hi Michael !! I will try and I will send the options I test...<br>
<br>
thanks! for your help.<br><br><div><span class="gmail_quote">2005/7/21, Michael Moossen <<a href="mailto:m.moossen@alkacon.com">m.moossen@alkacon.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi, Matias!<br>  try to use org.opencms.util.CmsRequestUtil#forwardRequest(String,<br>HttpServletRequest, HttpServletResponse) instead of sendRedirect.<br><br>--<br>Regards<br>Michael Moossen<br>Alkacon Software - The OpenCms Experts
<br><a href="http://www.alkacon.com">http://www.alkacon.com</a><br><br><br><br>Quoting Matias Basilico <<a href="mailto:mbasilico@gmail.com">mbasilico@gmail.com</a>>:<br><br>> Hi Thomas...thanks for your answer!!...
<br>><br>> Here more details:<br>><br>> targetNewFolder = "/subFolder1/";<br>><br>> >What does cms.getRequestContext().getSiteRoot() say?<br>><br>> It says: "/sites/mySite"<br>
><br>> when I finish to create the resource in the offline the tree is:<br>><br>> /sites/mySite/subFolder1/1.html<br>> /sites/mySite/subFolder1/2.html<br>><br>> and so on...<br>><br>><br>> >
response.sendRedirect( cms.link(n + "1.html") );<br>><br>> It is the same line that I test...It doesn't work... :(<br>><br>> I execute the the cms.link() AFTER create the user, login the new user and
<br>> change it to the offline...<br>><br>> Now I'm creating a normal CMS USER 'cause I thinki the webUser has not<br>> permission<br>> to the offline, is it?<br>><br>> Again thanks for your interest in solve my problem...and I hope you or
<br>> someone can help<br>> me with this problem...<br>><br>> Matutek<br>><br>><br>> 2005/7/19, Thomas Maerz <<a href="mailto:thomasmaerz@gmx.de">thomasmaerz@gmx.de</a>>:<br>> ><br>> > Matias Basilico <
<a href="mailto:mbasilico@gmail.com">mbasilico@gmail.com</a>> writes:<br>> ><br>> > > When I create the folder I switch the user to the offline project<br>> > > in the jsp with:<br>> > > //4 = OFFLINE PROJECT
<br>> > > cmso.getRequestContext().setCurrentProject(cmso.readProject(4));<br>> > > //-----------------<br>> > ><br>> > > then after all the operations I want to go to the new resources with:
<br>> > > response.sendRedirect( cms.link(targetNewFolder + "1.html") );<br>> ><br>> > What's the URL of the resource if you preview it in your browser?<br>> > And what content has targetNewFolder?
<br>> > What does cms.getRequestContext().getSiteRoot() say?<br>> ><br>> > Does the following work?<br>> ><br>> > | String n = targetNewFolder;<br>> > | n = cms.getRequestContext().removeSiteRoot(n);
<br>> > | response.sendRedirect( cms.link(n + "1.html") );<br>> ><br>> ><br>> > Regards,<br>> > Thomas<br>> ><br>> ><br>><br><br><br>----------------------------------------------------------------
<br>This message was sent using IMP, the Internet Messaging Program.<br><br></blockquote></div><br><br><br>-- <br>Matutek