[opencms-dev] write access to file

Qi Zhang kksjtu at gmail.com
Tue Oct 25 18:52:51 CEST 2016


Hi,

thanks for the help!

Yes, I was coding according to the 1st documentation. But my problem is

http://opencms.123.com/index.html(offline)
works!
http://opencms.123.com/index.html(online)
works!
http://www.123.com/index.html(online)
NOT working!


Do you have any idea why it happen?

2016-10-25 5:35 GMT+02:00 Jose Fermin Athie Campollo <
athiecampollo at gmail.com>:

> Hi
>
> Right now i can't see this page. http://www.opencms-wiki.
> org/wiki/Write_a_file_programatically in it you could find a way to
> create a resource and then publish it
> Some one else publish the code to create a resource http://opencms.
> 996256.n3.nabble.com/Create-resource-programatically-td15459.html
>
> You should see the javadoc of CmsObject  you can do a lot of thing with
> it.
>
> Regards
>
> El lun., 24 de oct. de 2016 a la(s) 19:10, 楊博凱 <ken at thesys.com.tw>
> escribió:
>
>> 你要先儲存它至offline, 再利用api  publish它至online 版本。
>>
>> 2016年10月25日 上午12:38,"Qi Zhang" <kksjtu at gmail.com>寫道:
>>
>> Hi everyone,
>>
>> I need to* store *submited web form *data* information* into* a text*
>> file* (doesn't matter where, as long as reachable). Unfortunatelly I
>> just got to know it is not allowed to have write access in online project. *Anyone
>> has idea of how to archive this?*
>>
>> I've tried to switch context to offline context. But it only works when I
>> test it in the workspace. In the published real webpage it won't work with
>> error HTTP 500..
>>
>> Thanks a lot in advance!
>>
>> --
>> Best regards,
>> Qi Zhang
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>


-- 
Best regards,
Qi Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20161025/a2e3b640/attachment.htm>


More information about the opencms-dev mailing list