<div dir="ltr"><div><div>Other pages are all fine. Just this one after clicking submit button..<br><br></div>I have checked,as long as I have these lines of code. I have the error:<br><br><b>if(curProject.isOnlineProject()){<br>            CmsProject offlineProject = cmso.readProject("Offline");<br>            cmsContext.setCurrentProject(offlineProject);<br>       }<br></b><br></div>But isn't it the only way to have write access to files? Does it mean we can't change to offline context in published webpage?<br><br>Here are some related code:<br><span style="color:rgb(102,102,102)"><i>CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);<br>CmsObject cmso = cms.getCmsObject();<br><br>CmsRequestContext cmsContext = cmso.getRequestContext();<br>CmsProject curProject = cmsContext.currentProject();</i></span><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-26 14:26 GMT+02:00 Christoph Kukulies <span dir="ltr"><<a href="mailto:kuku@physik.rwth-aachen.de" target="_blank">kuku@physik.rwth-aachen.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div class="m_-7519527499398234260moz-cite-prefix">Am 26.10.2016 um 13:09 schrieb Qi
      Zhang:<br>
    </div>
    <blockquote type="cite">
      <p dir="ltr">Yes, it's a form and the action is a jsp.</p>
    </blockquote></span>
    Permissions of the jsp? <br>
    <br>
    Do other pages work in <a class="m_-7519527499398234260moz-txt-link-abbreviated" href="http://www.123.com" target="_blank">www.123.com</a>? Error 500 is "Internal Server
    Error" which indicates a syntax error in jsp sometimes. It's not
    just a page not found (404).<br>
    You gotta gather more information. <br>
    <br>
    Can you invoke the jsp alone in the browser (possibly passing the
    neccessary parameters to it).<div><div class="h5"><br>
    <blockquote type="cite">
      <p dir="ltr">I'm working for a university. So I have limited
        permissions. I can only see server internal error HTTP 500 etc
        when I visit the page and submit form as a guest. Within opencms
        system all fine. </p>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 26 Oct 2016 10:16, "Christoph
          Kukulies" <<a href="mailto:kuku@physik.rwth-aachen.de" target="_blank">kuku@physik.rwth-aachen.de</a>>
          wrote:<br type="attribution">
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="m_-7519527499398234260m_4627645167713404567moz-cite-prefix">what
                does the log say (opencms.log, tomcat logs)?<br>
                You say, it's a form, right? Is the action a jsp that is
                invoked?<br>
                <br>
                Am 25.10.2016 um 20:50 schrieb Qi Zhang:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div>Hi,<br>
                    <br>
                  </div>
                  the page is visible, just the function doesn't
                  work.There is a webform, after clicking the function
                  should be called. And then the page got a HTTP 500
                  error..<br>
                </div>
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">2016-10-25 19:55 GMT+02:00
                    Jose Fermin Athie Campollo <span dir="ltr"><<a href="mailto:athiecampollo@gmail.com" target="_blank">athiecampollo@gmail.com</a>></span>:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div dir="ltr">
                        <div>Hi,</div>
                        <div>A few questions:</div>
                        Do you use a balancer or is the server of
                        opencms who resolve the domain?
                        <div>If it is from opencms you have to set the
                          new domain <a href="http://www.opencms-wiki.org/wiki/MultiSite_configuration_instructions" target="_blank">http://www.opencms-wiki<wbr>.org/wiki/MultiSite_configurat<wbr>ion_instructions</a></div>
                        <div><br>
                        </div>
                        <div>In <a href="http://www.123.com" target="_blank">www.123.com</a>
                          is the only page they can not see?<br>
                        </div>
                        <div><br>
                        </div>
                        <div>Regards</div>
                      </div>
                      <div class="m_-7519527499398234260m_4627645167713404567HOEnZb">
                        <div class="m_-7519527499398234260m_4627645167713404567h5"><br>
                          <div class="gmail_quote">
                            <div dir="ltr">El mar., 25 de oct. de 2016 a
                              la(s) 11:53, Qi Zhang <<a href="mailto:kksjtu@gmail.com" target="_blank">kksjtu@gmail.com</a>>
                              escribió:<br>
                            </div>
                            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                              <div dir="ltr" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                    <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">Hi,<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                      <br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                    </div>
                                    thanks for the help!<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                    <br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  </div>
                                  Yes, I was coding according to the 1st
                                  documentation. But my problem is</div>
                              </div>
                              <div dir="ltr" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <a href="http://opencms.123.com/index.html" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">http://opencms.123.com/index.h<wbr>tml</a>(offline)<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  works!<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <a href="http://opencms.123.com/index.html" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">http://opencms.123.com/index.h<wbr>tml</a>(online)<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  works!<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <a href="http://www.123.com/index.html" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">http://www.123.com/index.html</a>(<wbr>online)<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  NOT working!<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                </div>
                              </div>
                              <div dir="ltr" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">Do
                                you have any idea why it happen?<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                              </div>
                              <div class="gmail_extra m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                <div class="gmail_quote m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">2016-10-25
                                  5:35 GMT+02:00 Jose Fermin Athie
                                  Campollo <span dir="ltr" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><<a href="mailto:athiecampollo@gmail.com" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">athiecampollo@gmail.com</a>></span>:<br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                  <blockquote class="gmail_quote m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div dir="ltr" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">Hi
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                      </div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">Right
                                        now i can't see this page. <a href="http://www.opencms-wiki.org/wiki/Write_a_file_programatically" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">http://www.opencms-wiki.<wbr>org/wiki/Write_a_file_programa<wbr>tically</a> in
                                        it you could find a way to
                                        create a resource and then
                                        publish it </div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">Some
                                        one else publish the code to
                                        create a resource <a href="http://opencms.996256.n3.nabble.com/Create-resource-programatically-td15459.html" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg" target="_blank">http://opencms.996256<wbr>.n3.nabble.com/Create-resource<wbr>-programatically-td15459.html</a> </div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                      </div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">You
                                        should see the javadoc of<span class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157m_457778963602854218inbox-inbox-Apple-converted-space
m_4627645167713404567m_-8670407722494514482gmail_msg" style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13.44px"> </span><span style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13.44px" class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">CmsObject </span><span class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157m_457778963602854218inbox-inbox-Apple-converted-space
m_4627645167713404567m_-8670407722494514482gmail_msg" style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13.44px"> you
                                          can do a lot of thing with
                                          it. </span></div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><span class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157m_457778963602854218inbox-inbox-Apple-converted-space
m_4627645167713404567m_-8670407722494514482gmail_msg" style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13.44px"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                        </span></div>
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg"><span class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157m_457778963602854218inbox-inbox-Apple-converted-space
m_4627645167713404567m_-8670407722494514482gmail_msg" style="font-family:verdana,geneva,helvetica,arial,sans-serif;font-size:13.44px">Regards</span></div>
                                    </div>
                                    <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157HOEnZb
m_4627645167713404567m_-8670407722494514482gmail_msg">
                                      <div class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482m_-8552496068675999157h5
m_4627645167713404567m_-8670407722494514482gmail_msg"><br class="m_-7519527499398234260m_4627645167713404567m_-8670407722494514482gmail_msg">
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                      <br clear="all">
                    </blockquote>
                  </div>
                  <br>
                  -- <br>
                  <div class="m_-7519527499398234260m_4627645167713404567gmail_signature" data-smartmail="gmail_signature">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div>Best regards,<br>
                                </div>
                                <div dir="ltr">Qi Zhang<br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <br>
              </blockquote>
            </div>
            <br>
            <br>
            <br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    </div></div><span class=""><div class="m_-7519527499398234260moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) <a href="http://rwth-aachen.de" target="_blank">rwth-aachen.de</a>
    </div>
  </span></div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Best regards,<br></div><div dir="ltr">Qi Zhang<br></div></div></div></div></div></div></div></div>
</div>