You receive the editor content as a POSTed value when you hit the save button under the parameter name you have specified with "instanceName". Pull this value out in your servlet request.getParameter(<your instanceName>); and you are done. Please checkout the demo war, it features a basic save and display functionality.
Sorry to bring this back. In the demo, I can see that we can get the edited text from servlet request.getParameter(<your instanceName> but is there any functionality available to save this to a file?
E.g. I got the whole page (faq.jsp) in fckeditor, then, after changing the faq data, i press submit button which sends data to posteddata.jsp where i have new faq data from request.getParameter("editorDefault"), also I have passed the filename(faq.jsp) as a hidden parameter.
Now how can I save the new faq data to faq.jsp page?? Is ther any functionality available for this??
Re: Save html code to a file (java)
Re: Save html code to a file (java)
Re: Save html code to a file (java)
E.g. I got the whole page (faq.jsp) in fckeditor, then, after changing the faq data, i press submit button which sends data to posteddata.jsp where i have new faq data from request.getParameter("editorDefault"), also I have passed the filename(faq.jsp) as a hidden parameter.
Now how can I save the new faq data to faq.jsp page?? Is ther any functionality available for this??
Re: Save html code to a file (java)
Re: Save html code to a file (java)
Now, I have created my own servlet which saves the file.