viewtopic.php?f=6&t=11290&hilit=+rewrite#p29755
String browserUrl = "/fckeditor/editor/filemanager/browser/default/browser.html";
String connectorUrl = "/fckeditor/editor/filemanager/connectors/php/connector.php";
.......
<FCK:editor instanceName="EditorDefault" height="400px">
<jsp:attribute name="value">
some text to edit.
</jsp:attribute>
<jsp:body>
<FCK:config ImageBrowserURL="${browserUrl}?Type=Image&Connector=${connectorUrl}" />
<FCK:config FlashBrowserURL="${browserUrl}?Type=Flash&Connector=${connectorUrl}" />
</jsp:body>
</FCK:editor>
http://localhost:8080/mseditor/fckedito ... Connector=

Re: Java connector.userPathBuilderImpl Problems
Re: Java connector.userPathBuilderImpl Problems
Re: Java connector.userPathBuilderImpl Problems
I believe you mentioned, in some other post, that the Java session may be a possibility for passing parameters. Not really liking where all of my previous endevours were heading, I decided to research this a bit further, and I think it will work.
The Java session ID seems to be preserved across the several JSP pages I use to invoke the FCKeditor, as well as the servlet that eventually calls my getUserFilesPath method. I tried setting the attribute in the session I wanted to pass to getUserFilesPath, and it worked! (Sorry about my exclamation, but I am not really a Java expert and even less a JSP one.)
What do you think? If this works, it is almost independent of FCKEditor, especially the URLs used to invoke its inner processes.
Thanks,
Danny
Re: Java connector.userPathBuilderImpl Problems
if you look at the interface, you see that I pass the current request. Which means that you are able to access the request and the session. The only reason you need to alter the browserurl is to pass additional params through the request. If you rely on the session, you may preset the session and use it as you desire.
So going with the session is a valid solution. That's what I do.
Re: Java connector.userPathBuilderImpl Problems
HttpSession thisSession = request.getSession(); thisSession.setAttribute("MEMBER_ID", memberID);public class MyUserFilesPath implements UserPathBuilder{ public String getUserFilesPath(HttpServletRequest request){ HttpSession session = request.getSession(); return "/userfiles/" + (String)session.getAttribute("MEMBER_ID"); } }Re: Java connector.userPathBuilderImpl Problems
yes this is a valid solution.
Mike
Re: Java connector.userPathBuilderImpl Problems
public class ContextPathImpl extends ServerRootPathBuilder { @Override public String getUserFilesPath(HttpServletRequest arg0) { System.out.println(arg0.getContextPath().concat(super.getUserFilesPath(arg0))); return "/userfiles/memberid"; } }Re: Java connector.userPathBuilderImpl Problems