Hi, Im using FCKeditor with the java integration pack. I need to be able to pass addtional parameters (request.getParameter) to the connector servlet when a user uploads a file but have no idea how to accomplish this. The parameter name will be consistent throughout although the value will be generated on the jsp page where the editor is shown (using the jsp tags provided with the inetegration pack).
Im looking for the place where the connector url is contructed inorder to pass a new parameter (i.e ?id=21) to the end of the url. i was hoping a specify an attribute in the jsp tags to hold the name and value and use that somewhere to construct the parameter.
Any Ideas?
Cheers, Ry
Im looking for the place where the connector url is contructed inorder to pass a new parameter (i.e ?id=21) to the end of the url. i was hoping a specify an attribute in the jsp tags to hold the name and value and use that somewhere to construct the parameter.
Any Ideas?
Cheers, Ry
Re: Java Connector parameter
Check this thread, viewtopic.php?f=6&t=11290&hilit=+rewrite
Might help you.
Re: Java Connector parameter
Just to confirm then, in the FCK tags in the jsp filr, this is legal, rather that obtaining the url from the config js file?
and then my imeplemntation of the userpathbuilder (although unrelated to the user in my case) will be
so that the type string will now hold the value 'blog' correct?
Many thanks
Re: Java Connector parameter
Hi Ryan,
It's perfectly legal. You are allowed to pass anything through FCK:config which complies to the editor. There is one thing though you should know: The difference between config.js and FCK:config => config.js is valid for all FCKeditor instances from the same basepath in contrast to FCK:config dynamically overrides config options for the current instance only.
If you think, your param is worth to be global, make it global in the config.js.
You can even do better:
There is another catch with the config.js: It is completely client-side, which means you cannot pass any dynamic params whereas FCK:cofig gives that possibility:
Basically yes, but pay attention ImageBrowseURL != ImageUploadURL, check the docs one more time.
I am glad, I could help,
Mike
EDIT: Just editor my config.js from
to
and the request contained this parameter too.