B4J Tutorial [WebApp] Web Apps Overview

Discussion in 'B4J Tutorials' started by Erel, Apr 10, 2014.

Thread Status:
Not open for further replies.
  1. Erel

    Erel Administrator Staff Member Licensed User

    ServerExampleNoMySQL project was updated. It fixes an issue with Safari browsers ignoring the existing session in WebSocket connections.

    The solution is to add a filter that creates the session (if needed) before the upgrade request:
    Code:
    srvr.AddFilter("/b4j_ws.js""SessionCreator"False)
    The filter code:
    Code:
    Public Sub Filter(req As ServletRequest, resp As ServletResponseAs Boolean
       req.GetSession
       
    Return True
    End Sub
     
  2. RobertNM

    RobertNM Member Licensed User

     
  3. jchal

    jchal Active Member Licensed User

    erel hi
    can we have the same example in b4a Please?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no equivalent feature in B4A.
     
  5. Buks

    Buks Member Licensed User

    I deployed the ServerExampleNoMySQL to a Raspberry PI 2B via B4J-Bridge.
    I get the following error when trying to open the web from Google Chrome browser:
    HTTP ERROR 404
    Problem accessing /. Reason:

    Not Found


    Powered by Jetty:// 9.4.z-SNAPSHOT

    Is there a better way to create web applications on a Raspberry PI?

    Kind regards
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread in the questions forum.
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice