Hi everyone!
Need your help please.
I am working on j2ee application with struts framework and there is new task to add fckEditor CM tool in existing static web-pages (home.jsp, faq.jsp, news.jsp etc). please look at the attachment for the detail.
I am totally new to this technology and need your help to find out the right approach. I am planning to implement it as follows (example: home.jsp ...please refer the attachment):
1. Copy home.jsp (static page) as edithome.jsp with fckeditor taglibs and this page shall be only available to admin role.
2. Administrator shall open the edithome.jsp page and after updating content with the help of fckeditor, he will press SUBMIT button to save those changes.
3. All the latest data with recent changes (including filename i.e. home.jsp as hidden attribute) will go from edithome.jsp to savecontent.jsp.
4. Savecontent.jsp will update the home.jsp and edithome.jsp
Is it right approach?
Thanks in advance.
Need your help please.
I am working on j2ee application with struts framework and there is new task to add fckEditor CM tool in existing static web-pages (home.jsp, faq.jsp, news.jsp etc). please look at the attachment for the detail.
I am totally new to this technology and need your help to find out the right approach. I am planning to implement it as follows (example: home.jsp ...please refer the attachment):
1. Copy home.jsp (static page) as edithome.jsp with fckeditor taglibs and this page shall be only available to admin role.
2. Administrator shall open the edithome.jsp page and after updating content with the help of fckeditor, he will press SUBMIT button to save those changes.
3. All the latest data with recent changes (including filename i.e. home.jsp as hidden attribute) will go from edithome.jsp to savecontent.jsp.
4. Savecontent.jsp will update the home.jsp and edithome.jsp
Is it right approach?
Thanks in advance.
Re: Is this right approach??
Thanks in advance.
Re: Is this right approach??
Re: Is this right approach??
Thanks for your reply Michael. I am at the stage where I can get the edited data through request.getParameter("editorDefault") and filename as a hidden parameter but don't know how to save this edited data back to the filename??
I would really appericiate if you can give me any direction to do this please.
Re: Is this right approach??
PrintWriter out = response.getWriter();
response.setContentType("text/html");
response.setHeader("Content-Disposition", "attachment; filename=faq.html");
out.println(request.getParameter("editorDefault"));
out.flush();
out.close();
By doing this I can save the faq.html file. Its working for me so far but still would like to know if there is any better way of doing this.
Re: Is this right approach??
Re: Is this right approach??