[opencms-dev] write access to file

Qi Zhang kksjtu at gmail.com
Tue Oct 25 18:50:37 CEST 2016


谢谢,
但是我后来就只是存在offline, 没有去管online,然后尝试:

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!

顺便问下,我也试了publish API,
我试了OpenCms.getPublishManager().publishResource();
但显示can't resolve OpenCms. 请问一般用来publish的方法是什么呢?

2016-10-25 2:10 GMT+02:00 楊博凱 <ken at thesys.com.tw>:

> 你要先儲存它至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
>
>
>
>
>


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


More information about the opencms-dev mailing list