Topic
  • 5 replies
  • Latest Post - ‏2012-09-25T16:23:01Z by SystemAdmin
SystemAdmin
SystemAdmin
1245 Posts

Pinned topic Web Project

‏2012-09-20T10:10:53Z |
Generally in web applications for validations we write inside jsp

in Infostreams if we want write validations can we develop jsp in streams?

Is there any other way for validations by using ajax?

Can we use flex in streams for visualization?
  • wbratton
    wbratton
    76 Posts

    Re: Web Project

    ‏2012-09-20T16:13:56Z  
    As you probably already know Streams 2.0 sample CommodityPurchasing application uses a Web UI. It uses the Web Server that comes with Streams. Not much is documentented on this server. I will have to check with Streams Web server developers to determine if ajax or flex is already incorporate in or can be added to the Streams WAS.

    Looking at the files for the CommodityPurchasing "dojo" is supported is supported by Streams Web Server.
  • SystemAdmin
    SystemAdmin
    1245 Posts

    Re: Web Project

    ‏2012-09-20T16:20:01Z  
    • wbratton
    • ‏2012-09-20T16:13:56Z
    As you probably already know Streams 2.0 sample CommodityPurchasing application uses a Web UI. It uses the Web Server that comes with Streams. Not much is documentented on this server. I will have to check with Streams Web server developers to determine if ajax or flex is already incorporate in or can be added to the Streams WAS.

    Looking at the files for the CommodityPurchasing "dojo" is supported is supported by Streams Web Server.
    To clarify the commodity trading app only generates a html page, that has a refresh meta tag. There is no web server in uss. The user is expected to access the .html file from a local directory rather than through a server.

    The dojo / javascript is executed locally in the browser.
  • wbratton
    wbratton
    76 Posts

    Re: Web Project

    ‏2012-09-20T17:57:00Z  
    To clarify the commodity trading app only generates a html page, that has a refresh meta tag. There is no web server in uss. The user is expected to access the .html file from a local directory rather than through a server.

    The dojo / javascript is executed locally in the browser.
    Can you tell us if you are planning to integrate an existing Web Application running in another Web Server environment with Streams? If you are what Web Server is your application current running under?
  • SystemAdmin
    SystemAdmin
    1245 Posts

    Re: Web Project

    ‏2012-09-21T09:14:13Z  
    • wbratton
    • ‏2012-09-20T17:57:00Z
    Can you tell us if you are planning to integrate an existing Web Application running in another Web Server environment with Streams? If you are what Web Server is your application current running under?
    I tried to install jboss tools with streams environment.
  • SystemAdmin
    SystemAdmin
    1245 Posts

    Re: Web Project

    ‏2012-09-25T16:23:01Z  
    I tried to install jboss tools with streams environment.
    Not sure if this is useful or not, but I put a toolkit on Streams Exchange that provides simple HTTP REST api access to a Streams application. Basically one can use HTTP GET/POST to insert tuples into a stream and HTTP GET to fetch windows of tuples from streams. The GET that fetches tuples from a stream can return the data as JSON, csv or an HTML table.

    https://www.ibm.com/developerworks/mydeveloperworks/groups/service/forum/topicThread?topicUuid=66bd3284-a120-4104-b2e8-a07acab237d6&ps=10&page=0

    Also there are two pages that show how to use HTTPTupleView operator to visualize live data using JSON and Dojo or Google Java Script widgets:

    https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/W4671426578cc_49bd_b585_3b9911c491b8/page/HTTPTupleViewExamples

    https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/W4671426578cc_49bd_b585_3b9911c491b8/page/More%20HTTPTupleViewExamples

    Hope this helps