I have listed down the steps i have taken to come this far so that you can guide me with a clear view of where i am right now.
I. Deploying FCKeditor--with java integration on Apache WebServer: --
i. Download and extract the contents of fckeditor-java-demo-2.4.1.war on to local disk.
ii. Create a New Dynamic Web Project in the Eclipse IDE.
iii. Open the extracted folder fckeditor-java-demo-2.4.1 and copy these files and folders :-
index.jsp,
sample.css,
samplelist.jsp files and
fckeditor and jsp folders and paste them inside the WebContent folder within your Eclipse project folder.
( Do not paste them through the Eclipse IDE. Paste within your workspace folder directly.)
iv. Similarly replace the WEB-INF folder within WebContent with the WEB-INF folder within the fckeditor-java-demo-2.4.1 folder.
v. Now go to your project in the Eclipse IDE.
---Right Click on the project name and select Refresh so that the files and folder that you have just pasted in your project workspace are reflected in your Project tree within Eclipse.
---Right Click on the project name and select Build Path>Add External Archive and add all the .jar files within fckeditor-java-demo-2.4.1/WEB-INF/lib folder.
II. Customizing the look and feel of the FCKeditor: --
i. I needed only some of the tools in the toolbar and so i reduced the toolbar items by editing the fckconfig.js file.
ii. Since i didn't want the samplelist.jsp to be called and displayed i edited index.jsp to have only the Sample frame in the frameset.
iii. In jsp/sample01.jsp file i enclosed everything inside the <body> tag within a <table> so that i can change the width of the editor by changing the attribute <table width=
Now Right Click on the project name and select Run As > Run on Server --- Choose your webserver and your configured project and finish.
Now you can also use your browser to point to localhost:8080/<Project Name> to display your own look and feel FCKeditor.
III. My query ---------------->>>
In this hosted FCKeditor i entered some text, a smiley and an image from a different machine and on clicking the submit button another browser tab is opened on that remote machine by sampleposteddata.jsp which lists all data posted by the form.
Now where on the webserver is this data saved, if at all ?
How do i capture this posted data on the server machine so that i can save it on disk or write it to an RDBMS on the server side ?
Is there a built in jsp/servlet script provided by FCKeditor to handle this data commit ?
If not, how do i write my own code to write the data posted by the editor on to a disk or rdbms ?
Please guide me through this as to how to proceed further and what to do next
I. Deploying FCKeditor--with java integration on Apache WebServer: --
i. Download and extract the contents of fckeditor-java-demo-2.4.1.war on to local disk.
ii. Create a New Dynamic Web Project in the Eclipse IDE.
iii. Open the extracted folder fckeditor-java-demo-2.4.1 and copy these files and folders :-
index.jsp,
sample.css,
samplelist.jsp files and
fckeditor and jsp folders and paste them inside the WebContent folder within your Eclipse project folder.
( Do not paste them through the Eclipse IDE. Paste within your workspace folder directly.)
iv. Similarly replace the WEB-INF folder within WebContent with the WEB-INF folder within the fckeditor-java-demo-2.4.1 folder.
v. Now go to your project in the Eclipse IDE.
---Right Click on the project name and select Refresh so that the files and folder that you have just pasted in your project workspace are reflected in your Project tree within Eclipse.
---Right Click on the project name and select Build Path>Add External Archive and add all the .jar files within fckeditor-java-demo-2.4.1/WEB-INF/lib folder.
II. Customizing the look and feel of the FCKeditor: --
i. I needed only some of the tools in the toolbar and so i reduced the toolbar items by editing the fckconfig.js file.
ii. Since i didn't want the samplelist.jsp to be called and displayed i edited index.jsp to have only the Sample frame in the frameset.
iii. In jsp/sample01.jsp file i enclosed everything inside the <body> tag within a <table> so that i can change the width of the editor by changing the attribute <table width=
Now Right Click on the project name and select Run As > Run on Server --- Choose your webserver and your configured project and finish.
Now you can also use your browser to point to localhost:8080/<Project Name> to display your own look and feel FCKeditor.
III. My query ---------------->>>
In this hosted FCKeditor i entered some text, a smiley and an image from a different machine and on clicking the submit button another browser tab is opened on that remote machine by sampleposteddata.jsp which lists all data posted by the form.
Now where on the webserver is this data saved, if at all ?
How do i capture this posted data on the server machine so that i can save it on disk or write it to an RDBMS on the server side ?
Is there a built in jsp/servlet script provided by FCKeditor to handle this data commit ?
If not, how do i write my own code to write the data posted by the editor on to a disk or rdbms ?
Please guide me through this as to how to proceed further and what to do next
Re: How 2 write posted data by FCKeditor on webserver ->rdbms
Read this first: http://pdf.coreservlets.com/
Independent from any language, you have to define the action of the form which will post the editor content. The script/program bedind the action has to evaluate the POST data. That's it.
where does image upload dialog stores images ?
i have edited the sampleposteddata.jsp file to include a FileWriter
that writes the editor contents to an .html file on the server.
it's working fine except that when i upload an image using the image upload dialog's "Send it to server" button, i can't trace where the image is stored in the file system.
Is there some way i can make that image also to be stored under my project space where i am storing all the other editor contents in an .html file ?
Re: How 2 write posted data by FCKeditor on webserver ->rdbms
Check the docs in the link below.
configuring where to save editor contents on server
in tomcat webserver FCKeditor is configured to save image uploads to apache-tomcat/webapps/FCKeditor/userfiles/image/ folder
i want to change this default path ... how do i do it ?
also the .html file in which i am writing the editor contents is by default saved to apache-tomcat/bin folder
how do i change that so that i can save the file in apache-tomcat/webapps/FCKeditor/ folder ?
kindly guide me.
how to change the default path userfiles/image/ for image up
earlier post:
>>>also the .html file in which i am writing the editor contents is by default saved to apache-tomcat/bin folder
>>>how do i change that so that i can save the file in apache-tomcat/webapps/FCKeditor/ folder ?
well.. i have sorted out this problem and now i can save my .html wherever i want
but my earlier question remains unresolved --->
>>>in tomcat webserver FCKeditor is configured to save image uploads to apache-tomcat/webapps/FCKeditor/userfiles/image/ folder
>>> i want to change this default path ... how do i do it ?
i want to be able to save the uploaded images in any path i may choose ... i have gone through all the files in FCKeditor-java-demo but could not find any setting to customize the image upload path ...
as you must be knowing that by default the FCKeditor creates userfiles/image/ folders and saves the uploaded image within it.
I want to change this to my own path
kindly guide.
Re: How 2 write posted data by FCKeditor on webserver ->rdbms
Re: how to change the default path userfiles/image/ for image up
as you must be knowing that by default the FCKeditor creates userfiles/image/ folders and saves the uploaded image within it.
I want to change this to my own path
kindly guide.[/quote]
HI ,
U need to pass the image path in ConnectorServlet.java ,
"typePath" this varaible u just hard code where u want to put ur image.