Simple web app

I'm using Dashcode's browser template for a web app but I'm having trouble navigating through different levels. If I were to put a button on levelOne, how would I have it navigate to levelTwo?

A Servlet is normally there to pre/postprocess requests. For example obtaining a list of records from DB and forwarding the request to a JSP for presentation. Or gathering, validating and/or converting request parameters from a form submit and preparing the result and forwarding the request to a JSP for presentation.
Now, you want to record a voice. If you want to do this with Java, then you'll need to run this at the client machine. As servlets run at the server machine, it can't record the voice, it can at highest only retrieve the voice stream and store it at the database or local disk. To record a voice using a web application, best what you can do is to create a Java applet or Java web start application which you on its turn embed in a JSP page for presentation. The applet or application on its turn can make use of the JMF API to record a voice. Then let the applet or application send the stream to the servlet so that it can process it.
Techniques you'll need to learn about:
1) Applet or web start application (JNLP).
2) AWT and Swing (for UI of applet or application).
3) JSP and HTML (to embed applet or application in web page).
4) JMF (to record voice).
5) Servlets (to process URL requests, the request body may contain the voice stream).

Similar Messages

  • Seek advices on simple web app

    weblogic11g, RDBMS11gr2
    skills: PLSQL, and limited in J2EE programming.
    I am a DBA for the cust app. I'd like to create a simple web app for our help desk to run a couple of queries against the app's database, and execute a couple of the statements to resolve the issues if found from the queries.
    I'd like to deploy the web app war the WL without not requiring additional resources such as named JDBC data sources or JMS queues.
    Please advise me what minimum do I have to have to make this simple web app.

    Hi,
    The below URL should help you
    http://docs.oracle.com/cd/E18476_01/doc.220/e18479/deploy.htm
    Thanks & Regards,
    Murali.
    =============

  • Simple Web App NOT working with JBoss on IDEA IntelliJ

    Hi Experts:
    I am using TOMCAT_4.0.3 (bundled with JBOSS_3.0.0) and using IntelliJ-IDEA as my IDE environment.
    On one of my machine I created a WEB-APP kithany.war. It was working fine on this machine.
    Later when I copied this kithany.war to other machine and put under server/default/deploy directory and then ran Jboss on which I get following error - wonder why?
    13:32:34,078 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    13:32:34,156 INFO [EmbeddedCatalinaServiceSX] deploy, ctxPath=/kithany, warUrl=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    13:32:34,281 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
    java.lang.NullPointerException
    at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCatalinaServiceSX.java:321)
    at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatalinaServiceSX.java:238)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
    13:32:34,281 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@6417805a{ url=file:/C:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/kithany.war/, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
    WHat is wrong on this...? Any related information on above is appreciated.
    THANKS!

    Hello, manojkithany!
    Did you find out what was wrong? I am experiencing this problem with the jboss http-invoker.sar and the jmx-console.war...
    Both machines have the same environment. I found this exception with jobss3.04-tomcat bundle as well as with jobss3.06-tomcat bundle.
    ~~~snip
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying http-invoker.sar
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/
    2003-04-01 17:10:04,122 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webContext: null
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] warURL: file:/home/tmt/kroh/jcom/app/jcom/dep
    loy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,125 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] webAppParser: org.jboss.web.AbstractWebContai
    ner$DescriptorParser@1c8efd1
    2003-04-01 17:10:04,173 INFO [org.jboss.web.catalina.EmbeddedCatalinaService41] deploy, ctxPath=/invoker, warUrl=file:/home/t
    mt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/
    2003-04-01 17:10:04,220 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
    1.1//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
    ces/web-jsptaglibrary_1_1.dtd'
    2003-04-01 17:10:04,221 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD JSP Tag Library
    1.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/jsp/resour
    ces/web-jsptaglibrary_1_2.dtd'
    2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
    2003-04-01 17:10:04,224 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
    2.2//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
    web-app_2_2.dtd'
    2003-04-01 17:10:04,225 DEBUG [org.apache.commons.digester.Digester] register('-//Sun Microsystems, Inc.//DTD Web Application
    2.3//EN', 'jar:file:/home/tmt/kroh/www/jboss-3.0.6_tomcat-4.1.18/tomcat-4.1.x/common/lib/servlet.jar!/javax/servlet/resources/
    web-app_2_3.dtd'
    2003-04-01 17:10:04,236 DEBUG [org.apache.commons.digester.Digester] addRuleSet() with no namespace URI
    2003-04-01 17:10:04,242 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
    Begin
    2003-04-01 17:10:04,243 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Creating ENC using ClassLoader: java.net.Fact
    oryURLClassLoader@df0438
    ### concatenation, always the same ###
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..org.jboss.mx.loading.UnifiedClassLoader3@15
    db13f{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/invoker.war/ }
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..java.net.URLClassLoader@6e1408
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$AppClassLoader@7a78d3
    2003-04-01 11:09:07,737 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] ..sun.misc.Launcher$ExtClassLoader@929206
    2003-04-01 11:09:07,738 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linked java:comp/UserTransaction to JNDI name
    : UserTransaction
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] addEnvEntries
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceEnvRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkResourceRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkEjbLocalRefs
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] linkSecurityDomain
    2003-04-01 11:09:07,739 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] Linking security/securityMgr to JNDI name: ja
    va:/jaas/http-invoker
    2003-04-01 11:09:07,741 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaService41] AbstractWebContainer.parseWebAppDescriptors,
    End
    ##### remark: from here it starts to deviate from normal behavior ####
    2003-04-01 11:09:07,744 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
    2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
    2003-04-01 11:09:07,746 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
    2003-04-01 11:09:07,751 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scann
    er.URLDeploymentScanner$DeployedURL@ba617c43{ url=file:/home/tmt/kroh/jcom/app/jcom/deploy/http-invoker.sar/, deployedLastModi
    fied=0 }
    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.NullPointerException)
    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:309)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
    ~~~snap
    Olaf

  • Developing simple web app

    Hi,
    Really just want to know, I have this task to develop a sime web app that involves a database (to add new records, retrieve data, del, perform queries etc), where there are a number of user access levels. I'm envisioning that users will perform all this via JSP screens, with the input boxes taking parameters.
    I'm ok with java but new to all this jsp stuff.... just want to know, will knowledge of jsp and sql queries do in sufficing this task?
    Or, is the use of EJB and such other technologies be needed to complete such a task? (I'm on a very short timescale, and given that I already need to learn JSP whilst I do the task, things will be very tight if EJB is a must)
    Thanks.

    Hi,
    Thx for the reply.
    I was under the impression that JSP pages could be
    created with just HTML and SQL after I saw one JSP
    example, where the actual SQL resided in the files.This is true, but it is not looked at like a good thing. It makes the JSP ugly and hard to maintain. Besides, if you write a DB access class, then a JavaBean to represent your Data, you can do a good bit of testing and coding before you have an understanding of JSP. Then you can use the JSP to display the data, and not worry about accessing, scriptlets, where quotation marks go, and things like that... JSP are used for display, if you do your processing and logic in normal Java classes, then JSPs are much easier to work with, especially if you already know java.
    >
    Just some followup-q's, I'm been looking around and
    everyone mentions a web-inf folder... but in the same
    example I read, no such thing existed, nor did it
    include a single javabean/servletfile (all jsps). I'm
    not entirely sure if the example I saw is the full
    thing or just including those files accessible to the
    user on the client end.... so this may sound stupid,
    but is the web-inf compulsory for a web-app?
    If so, would you happen to have any good links to
    pages teaching this? I've googled this but found a
    series of confusing pages.So Web Apps are normally deplyed as a WAR (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp3.html). The link should describe how the WAR is put together.
    Even if you don't package the web app in a WAR, your directory structure should look the same.

  • Simple web app idea - how to implement the servlet?

    I want to make a simple web application, that all it does is to allow a user to record his voice, using his microphone, and then save this audio file on my server (maybe allow him to hear it again, later). BUT -
    I don't quite understand how it should work - I guess there is a java library to do the recording, that's not a problem, but how can I record via the web??
    how can I use the java servlet (which is from the examples I've seen usually displays some new content upon a certain request, nothing more..) to do it?
    (I mean. I don't fully understand the communication with the servlet, I think. I know that the servlet has a method for dealing with POST messages, for examlpe. but how can it help me do what I described above?)
    hope I made my self clear, thanks :)
    Kogan.

    A Servlet is normally there to pre/postprocess requests. For example obtaining a list of records from DB and forwarding the request to a JSP for presentation. Or gathering, validating and/or converting request parameters from a form submit and preparing the result and forwarding the request to a JSP for presentation.
    Now, you want to record a voice. If you want to do this with Java, then you'll need to run this at the client machine. As servlets run at the server machine, it can't record the voice, it can at highest only retrieve the voice stream and store it at the database or local disk. To record a voice using a web application, best what you can do is to create a Java applet or Java web start application which you on its turn embed in a JSP page for presentation. The applet or application on its turn can make use of the JMF API to record a voice. Then let the applet or application send the stream to the servlet so that it can process it.
    Techniques you'll need to learn about:
    1) Applet or web start application (JNLP).
    2) AWT and Swing (for UI of applet or application).
    3) JSP and HTML (to embed applet or application in web page).
    4) JMF (to record voice).
    5) Servlets (to process URL requests, the request body may contain the voice stream).

  • Simple Web Frontend for existing Java app

    Hi there!
    (sorry for my english at first ;)
    I have an existing java app which currently is used via command line. It's a server application which mostly does monitoring outputs and functions you can use in the shell are like starting/stopping the server. For these outputs and for starting/stopping and so on i want to create a simple web frontend which gives me the ability to do this.
    What do i need? It would be fine if i do not have to set up a large tomcat server because the program should run out of the box. Of course i want to access the website via the internet (simple login). The whole thing would be about 2-5 simple pages. Best thing would be if i could update the monitoring variables via java script.
    Can i use servlets (not much experience with it so far, that's why i ask :) )? What do i need for the webserver? Can i access my data variables from right from the servlet?
    Thanks in advance,
    kiwaque

    If you are familiar with Swing, I would suggest GWT for the Frontend... you can build and debug the Frontend similar to a Swing App, and then compile it to HTML/CSS/Javascript...

  • Can't Edit Data in Access 2013 Web App

    I have an Office 365 P1 account that I have been using to create apps in Access 2010. I tried Access 2013. But when I launch an app, it loads in my Office 365, but editing data is not enabled (the Add and Edit buttons are displayed, but not enabled).
    I have tried creating a new custom web app with one simple table and a view, as well as creating one using a Microsoft pre-built template, and simply creating the app and launching it. In both cases, the app displays, but I cannot add or edit data.
    Is there something with my Office 365 account that is limiting my ability to work with Access 2013 web apps?
    Thank you!

    Hi KrisMarshall7,
    In regarding of the issue, please provide us more information to assist you better.
    What the file format is your Access 2007 file? MDB or ACCDB?
    Where do you want to add the columns? Table, form or query?
    As far as I know,
    the limitation of columns in a table is 250. Thus, I suppose that the database had some hidden columns. Please try to check it. Steps:
    Right-click any field title, then select Unhide Fields. A dialog box will appear. Click the check boxes of any fields you would like to be visible again, then click Close.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Is it even possible to dynamically apply view criteria in an ADF Web App?

    This is one of those situations where something that should take an hour ends up taking days.
    * I have a view.
    * The view has Bind Variables associated with it.
    * The view has View Criteria associated with it.
    * Each of the View Criteria use different Bind Variables.
    * I have a search criteria input page that receives from the user what will ultimately be used to set the bind variables.
    * I have a search results page that uses the view to display a table.
    * I have the code that dynamically sets view criteria and parameters. It is based on the following:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcadvvo.htm#BCGFHAGA
    * This code works great, until the iterator associated with the table binding to the view is initialized. At that time, the view is reset to its defaults, and all of my code's doings are discarded. How do I know this? Because I have gone so far as to run my code that sets view criteria and binding variables dynamically in a phase event handler for the search results page in the render response phase. There is no other point at which to dynamically modify the view.
    This is turning into a situation where it seems I will need 5 different views and 5 different pages in order to show a single set of query results. I cannot get dynamically applied view criteria to work in an ADF web app. Has anyone else done it? Can anyone relate to this? Are there any other suggestions before I conclude that it's not possible for this framework to handle this simple scenario?
    Thanks

    There must be a setting or something that I am still missing here. If I write code just like this and make sure it is executed, I still only see the results of my view executed without the view criteria applied using the default bind variable values that I supplied in the view object.
    It's like the fact that I set the bind variables, the view criteria, and executed the view query programmatically is lost on the iterator -- it's like it never happened. What setting is used to ensure that the iterator uses the outcome of what I executed programmatically? There has to be a critical set or setting that I am missing.
    Here is the iterator and search region definitions defined in the page def "executables" section:
      <executables>
         <iterator Binds="CustomSearchView1" RangeSize="25"
                  DataControl="AppModuleDataControl"
                  id="CustomSearchView1Iterator"/>
        <searchRegion Binds="CustomSearchView1Iterator"
                      Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"
                      id="CustomSearchView1Query"/>
        </executables>Here's the "tree" binding in the page def file:
      <bindings>
       <tree IterBinding="CustomSearchView1Iterator" id="CustomSearchView1">
          <nodeDefinition DefName="Model.CustomSearchView" Name="CustomSearchView10">
            <AttrNames>
              <Item Value="CustomId"/>
              <Item Value="CustomProjectNumber"/>
              <Item Value="CustomName"/>
              <Item Value="CustomStatus"/>
              <Item Value="CustomStatusDate"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
      </bindings>In an effort to take page flow out of this mess, I had modified this to include the search criteria and search results on a single page. So, I now have a "Search" button. When the "Search" button is clicked, the action method does the following:
        public String searchActionListener ()
              // Get search criteria from select one choice and text input controls.
              AppModule appModule =
                    ( AppModule ) Configuration.createRootApplicationModule (
                        "Model.AppModule",
                        "AppModuleLocal");
              appModule.customSearch( searchCriteria1,
                                                   searchCriteria2,
                                                   searchCriteria3 );
        }In my application module this translates to:
        public void customNoticeSearch ( String searchCriteria1, String searchCriteria2, String searchCriteria3)
           CustomSearchViewImpl searchViewImp =
               ( CustomSearchViewImpl ) this.getCustomSearchView1 ();
           searchViewImp.customExecuteQuery ( searchCriteria1, searchCriteria2, searchCriteria3);
        }Finally, in my custom view object implementation code:
        public void customExecuteQuery ( String searchCriteria1, String searchCriteria2, String searchCriteria3 )
            // Set-up the parameters that are part of the core query.
            this.setp_searchCriteria1( searchCriteria1);
            this.setp_searchCriteria2( searchCriteria2);
            if ( searchCriteria3 != null )
                ViewCriteriaManager vcm = this.getViewCriteriaManager();
                ViewCriteria vc = vcm.getViewCriteria ( "WithLastCriteria" );
                this.setp_searchCriteria3( new Number ( searchCriteria3 ) );
                this.applyViewCriteria( vc );
            System.out.println ("This is fun.");
            this.executeQuery();
        }This code executes, but the results table is empty, and I know that there are results, because I can execute use execute with params to execute the base query and get the correct results back.
    Thanks for taking a look at this.

  • How do I show/refresh data from an Access Web App in an Excel spreadsheet saved in a Document Library on Sharepoint 2013 online

    I have an Access 2013 Web App in my Sharepoint 2013 online website. It contains a query to report on its data (several, actually, but let's keep it simple). I want to connect an Excel spreadsheet to the query, visualise the data in pivot tables/graphs/whatever,
    save the spreadsheet in a Document Library, and let other team site Sharepoint users open the spreadsheet (preferably in Excel online, but with Excel client if it has to be) and see/copy the data, refreshed with the latest information from the Access Web App.
    Simple, surely!
    The way I'm doing it at the moment is to create an ODC file to connect to the cloud-based Access 2013 database, save that ODC in a Data Connection Library in the SP site, and use the saved ODC file as data source in the Excel spreadsheet. This works and
    successfully keeps everything 'in the cloud' but I can't get it to refresh in Excel Online, and if I open the spreadsheet in Excel Client I have to enter the database password every time to refresh it. I don't really want to issue this password to everyone
    who might want to view the data. There must be a better way than this ODC method, I suspect.
    Googlings on this have led down various blind alleys - Excel Services, PowerPivots, Web Parts - but I'm stuck on which to follow through. Please, someone, point me to an article/book/website that explains how to do this step-by-step in simple language..
    thanks
    Jonathan

    I don't see any quick way of achieving it - at least there's no such functionality exists in SharePoint. All you can do, develop an event receiver that will update the fields in the list item once the excel file is added/updated. You can use OpenXml API
    to manipulate the excel file.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Web-app scoped security policies not working in WL 8

    Hi,
    I can't get web-app scoped security policies working in WL 8.1
    I have a simple web application. It defines a role(ROLE) and security
    constraint (on *.jsp).
    If I examine the web app in the administration console, I see that it
    has created a role (scoped to /*) called "ROLE" just as you would
    expect. It has also created a scoped policy (to *.jsp) with constraints
    that the user be in the role ROLE. This is as expected, and it works.
    However, if I proceed to create my own scoped policy (on *.html) with
    constraints (on ALL methods) that the user be in role ROLE, then I get
    no security at all. ie. I can go to server:port/foo.html and it will
    work - it is not secured.
    Any ideas?
    On a completely unrelated issue, when I deploy an EAR (exploded) with a
    WAR (exploded) and using the admin console expand the application
    correpsonding to th EAR, right click on the WAR node, and try and define
    a scoped role, then I get an error "There are no appropriate RoleEditor
    providers configured". This sounds like a bug. Trying to define a
    scoped policy works as expected.
    TIA,
    Jon

    I can't get web-app scoped security policies working in WL 8.1Well, I can answer this one myself.
    WebLogic 8 has a new optimisation (this wasn't present in 7 AFAIK),
    available on the Security / Realm / myreal / General tab, which
    determines whether or not weblogic considers authorisation of resources
    protected by descriptors or not. (ie. it can force only
    descriptor-protected authorisation, ignoring admin console policies).
    It defaults to ignoring admin console policies, hence my problem.
    Jon

  • Using text-to-speech technology in my web app

    Hi all,
    I work for a small web development company and we're curently in the process
    of building a web app for foreign language learners. One of the features
    we'd like to have is speech synthesis. We immediately thought about
    incorporating the technology developed by Apple into our app, but
    I want to make sure we're allowed to do that in the first place.
    Basically, here's what we want to do: we have a simple application
    where users can learn new vocabulary. Every word saved by a user
    can have a few example sentences (also posted by our users).
    We could then generate audio files from these sentences using
    "say" command (which is built into the Mac OS) and put
    them on our website.
    If you're familiar with Apple's policy on such uses of their text-to-speech
    synthesis, I'd be grateful if you could clarify it for me.
    Thanks.
    PS: it's my first post here, so if I chose the wrong forum, please let me know where
    I should post it.

    Hi there
    I've noticed more than few posts about this since Captivate 4
    was released.
    Are you by chance using Windows Vista 64 bit? Seems most that
    have reported this issue have been using that version.
    Please report it to Adobe as a bug.
    Click
    here to view the WishForm/Bug Reporting Form
    Cheers... Rick

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • Web app Connection.close()...how to prevent

    Hello
    I am somewhat new to this, but I am developing an web application that will be a help desk of sorts for clients to log on and create trouble tickets, plus many other features. I have completed the project and it works fine when I first start tomcat but an unexpected state keeps occurring and I can't seem to figure it out.
    After a while (I say a while cause I'm not sure exactly how long, but I'd say +5 hours) my application no longer will work and in the tomcat log I get the following message.
    Could not execute a query statement!Connection.close() has already been called. Invalid operation in this state.
    java.sql.SQLException: Connection:close() has already been called.
    at com.mysql.jdbc.Connection.getMutex(Connection.java:1906)
    at com.mysql.jdbc.Statement.executeQuery(Statement.java:1115)
    at brokers.RelationalBroker.query(RelationalBroker.java:171)
    the RelationalBroker.java is
    package brokers;
    * Created on May 12, 2004
    * Class: RelationalBroker
    * Package: brokers
    * On-Track, Ticket Tracking System
    * @author
    * @version
    * This Class is used as the super class for all of the child brokers
    * for the database. The main purpose if this class is to allow all the
    * child classes to share the open connection to the database and execute
    * queries and updates on the database. This class is part of the brokers
    * package.
    //imports
    import java.sql.*;
    public class RelationalBroker {
        //Instance Attributes
         * The attribute con represented by a Connection object is used to hold
         * the active connection to the database. This connection is shared with
         * all of the child brokers.
        private Connection con = null;
         * The attribute statement represented by a Statement object is used to
         * execute the query and update statements on the database by the child
         * brokers.
        private Statement statement = null;
         * The attribute results represented by a ResultSet is used to hold
         * the results of a query executed on the database.
        private ResultSet results = null;
        //Constructors
         * Default constructor used to create a RelationalBroker object.
        public RelationalBroker(){
        //     Getters
         * The Getter getCon is used to get the Connection object.
         * @return Connection con.
        public Connection getCon() {
            return con;
         * The Getter getResults is used to get the ResultSet results.
         * @return ResultSet results.
        public ResultSet getResults() {
            return results;
         * The Getter getStatement is used to get the Statement object.
         * @return Statement statement.
        public Statement getStatement() {
            return statement;
        //Methods
         * The method connect is used to connect to the database given a username
         * password, location of driver, and URL of the database. This method also
         * creates the Statement object to be used for queries ans updates on the database.
         * @param driver A String containing the location of the database driver.
         * @param URL A String containing the location of the database on a netowrk.
         * @param user A String containing the username of the database account.
         * @param pass A String containing the password of the database account.
        public void connect(String driver, String URL, String user, String pass){
            try{
                Class.forName(driver);
                con = DriverManager.getConnection(URL, user, pass);
                statement = con.createStatement();
            catch (ClassNotFoundException cExp){
                System.out.println("Cannot find class for driver");
            catch (SQLException sqle){
                System.out.println("Error opening table or creating statement!: " + sqle.getMessage());
                sqle.printStackTrace();
                System.exit(0);
         * The method closeConnection is used to close the active connection
         * to the database.
         * @return A boolean containing the status of the connection, True if closed
         * false if open.
        public boolean closeConnection(){
            boolean isClosed = false;
            try{
                con.close();
                isClosed = con.isClosed();
            catch(SQLException sqle){
                System.out.println("Error closing connection!" + sqle.getMessage());
            //finally{
            return isClosed;
         * The method rollBack is used to execute a rollback statement on
         * the database, to undo any changes since the last commit.
         * @return void
        public void rollBack(){
            try{
                con.rollback();
            catch(SQLException sqle){
                System.out.println("Could not execute a  Rollback statement!" + sqle.getMessage());
                sqle.printStackTrace();
         * The method commit is used to execute a commit statement on the
         * database, to make any changes final.
         * @return void
        public void commit(){
            try{
                statement.executeUpdate("commit");
            catch (SQLException sqle){
                System.out.println("Could not execute a commit statement!" + sqle.getMessage());
                sqle.printStackTrace();
         * The method query is used to exceute a query statement on the
         * database to get back some results.
         * @param query A String containing the query to be executed on the database
         * @return a ResultSet containing the results.
        public ResultSet query(String query){
            results = null;
            try{
                //System.out.println("query: "+query);
                results = statement.executeQuery(query);
            catch(SQLException sqle){
                System.out.println("Could not execute a query statement!" + sqle.getMessage());
                sqle.printStackTrace();
            //finally{
            return results;
         * The method update is used to persist or remove information
         * from the database.
         * @param update String containing the update string to be exceuted;
        public void update(String update){
            try{
                statement.executeUpdate(update);
            catch(SQLException sqle){
                System.out.println("Could not execute an update statement!" + sqle.getMessage());
                sqle.printStackTrace();
    }//end classmy web.xml file to initialize with the database is as follows
    <servlet>
              <servlet-name>Connection</servlet-name>
              <servlet-class>servlets.ConnectionServlet</servlet-class>
              <init-param>
                   <param-name>url</param-name>
                   <param-value>jdbc:mysql://localhost/TICKETTRACK</param-value>
              </init-param>
              <init-param>
                   <param-name>driver</param-name>
                   <param-value>com.mysql.jdbc.Driver</param-value>
              </init-param>
              <init-param>
                   <param-name>user</param-name>
                   <param-value>---</param-value>
              </init-param>
              <init-param>
                   <param-name>password</param-name>
                   <param-value>---</param-value>
              </init-param>
              <load-on-startup>1</load-on-startup>
         </servlet>
    the ConnectionServlet.java is
    package servlets;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import problemDomain.*;
    import brokers.*;
    * Title:
    * Description:      This servlet is used to create a connection with .
    * @author
    * @version 1.0
    public class ConnectionServlet  extends HttpServlet{
        private UserBroker uBroker;
        private TicketBroker tBroker;
        private CompanyBroker cBroker;
        public void init() throws ServletException{
            ServletConfig config = getServletConfig();
            String user = config.getInitParameter("user");
            String pass  = config.getInitParameter("password");
            String url  = config.getInitParameter("url");
            String driver = config.getInitParameter("driver");
            uBroker = UserBroker.getUserBroker();
            tBroker = TicketBroker.getTicketBroker();
            cBroker = CompanyBroker.getCompanyBroker();
            uBroker.connect(driver,url,user,pass);
            tBroker.connect(driver,url,user,pass);
            cBroker.connect(driver,url,user,pass);
    /*  This method is used to close the connection.
    *  @param none
    *  @return none.
        public void destroy() {
            try{
            }catch(Exception ec){
                System.err.println(ec);
    }I hope this is enough information for someone to help out. I'm out of ideas and my searches on the web didn't turn up much.
    I was thinking it was something to do with ConnectionPooling but I have never done that, or maybe its something to do with how I set up Connections or maybe its my Tomcat config or something to do with Mysql. I'm not even calling a Connection.close(), maybe that is my problem.
    Any help would be greatly appreciated, I'm not just looking for an answer I really would like to know why this occurs and how it can be prevented.
    Thanks,

    I really appreciate your reply and I can understand what you mean in theory(I think) but to actually implement it I'm having a little trouble.
    So for this database pool, in my ConnectionServlet which gets initialized on startup, should I create a Collection of connections for each instance(make them local), and than create another method to retrieve one of these connection when needed and when finished release it back to the collection(close)? Or is there some built in mechanism that can easily do this?
    I'm also reading up on that keep-alive you mentioned...it applies to the HTTP Connector element right? Is there a way to tell if this is an issue? I'm using Tomcat 5 and mySQL 3. I was talking with another guy here about using a connector to apache so it will work with the static pages and Tomcat do the servlet stuff, but I'm still trying to grasp all that.
    I don't know if this matters but many instances/windows of the web app can be opened at one time with seemingly no problems.
    Hope this made sense, like I said I'm pretty new to this so all I'm used to is simple configurations of web apps but hopefully I can advance further.
    Thanks again,

  • JSP does not have visibility of java classes in simple Web Module Project

    Dear Experts
    I am developing what I thought would be a very simple Web Module Project for a simple webservice
    to allow a user to logon to Netweaver Portal with a simple logon and password.
    I have not done this in over 8 years, and am somewhat rusty.
    The webservice is package in  a .war and is deployed via an Enterprise Application project as a .ear.
    The issue I am having is that I want to enhance the presentation of the webservice through the
    provision of css and adding a couple of images. The "libraries" are visibile in the build path of web
    module project.
    At the top of my .jsp for logon form I want to import some java libraries in order
    to get String webpath = componentRequest.getWebResourcePath()"/":
    <%@ page session = "true"%>
    <%@ page import = "com.sapportals.portal.prt.resource.IResource" %>
    <%@ page import="com.sap.security.core.sapmimp.logon.SAPMLogonLogic" %>
    <%@ page import="com.sap.security.core.sapmimp.logon.SAPMLogonCertLogic" %>
    <%@ page import="com.sap.security.core.logonadmin.IAccessToLogic" %>
    <%@ page import="com.sap.security.core.logonadmin.ComponentAccessToLogic" %>
    <%  IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
    final boolean inPortal = true;
    String webpath = componentRequest.getWebResourcePath()"/";
    // todo: find layout schema...
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
    %>
    However, during runtime the libraries are unknown and I get the following SAPJ2 EE errors
    indicating the methods etc are not known to the jsp:
    Full Message Text
    application [ctxhrofm] Processing HTTP request to servlet [jsp] finished with error.
    The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation rocess: [/usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java22: package com.sapportals.portal.prt.resource does not exist
    import com.sapportals.portal.prt.resource.IResource;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:23: package com.sap.security.core.sapmimp.logon does not exist
    import com.sap.security.core.sapmimp.logon.SAPMLogonLogic;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:24: package com.sap.security.core.sapmimp.logon does not exist
    import com.sap.security.core.sapmimp.logon.SAPMLogonCertLogic;
                                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:25: package com.sap.security.core.logonadmin does not exist
    import com.sap.security.core.logonadmin.IAccessToLogic;
                                            ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:26: package com.sap.security.core.logonadmin does not exist
    import com.sap.security.core.logonadmin.ComponentAccessToLogic;
                                            ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : class IAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                              ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : class ComponentAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                        ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable aResponse
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:60: cannot resolve symbol
    symbol  : variable IAccessToLogic
    location: class jsp_LoginForm1310122356593
    IAccessToLogic proxy = new ComponentAccessToLogic (componentRequest, aResponse, IAccessToLogic.ENV_LOGONCOMPONENT);
                                                                                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:63: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    String webpath = componentRequest.getWebResourcePath()"/";
                    ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable IResource
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
                                                      ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable componentRequest
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
                          ^
    /usr/sap/SQ1/JC20/j2ee/cluster/server3/apps/com.shell/sp~ctxhroap/servlet_jsp/ctxhrofm/work/jsp_LoginForm1310122356593.java:66: cannot resolve symbol
    symbol  : variable aResponse
    location: class jsp_LoginForm1310122356593
    aResponse.addResource(componentRequest.getResource(IResource.CSS, "css/main2.css"));
    ^
    14 errors
    Exception id: [0019996862AA007E00000436000077FB0004A78CA1BA8324]
    I have added the associated DCs for classes to used DCs and they are visible on the buildpath
    of my webservice.
    What am I missing?
    Many thanks for any advice offered
    Mike

    Have you made runtime references to used libraries...?
    refer page 20 ...in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b7199b?quicklink=index&overridelayout=true

  • Not using the most recent checked in version of the web app DLL in Release build

    Hi folks
    Got some peculiar behaviour - I have three build configurations set up within VS2K13 for Debug, Release and DebugOnLive.
    There are some basic XML transformations to update emails, db-settings etc - all very simple and working.
    Needed to do a DebugOnLive build to test an emergency fix and everything built fine.  Tested on the pilot site, saw the fix was working and proceeded to rebuild for Release.
    Everything seemed great except the web-app DLL with the fix in that was used for the release build was not the latest version even though the pilot build had used the latest version.  I had to recheck in the DLL to get it to use the updated version!
    Is this behaviour 'by design' - it seems peculiar you would have to re-check in to change the build if all you are doing is swapping some settings?  You are fixed - all you are doing is building for a different configuration or am I misunderstanding?
    mmacneill123 (MCP)

    Hi Mmacneill123, 
    Thanks for your reply.
    You said that “the issue is that I have already checked in the changes…”, and you said “if I check in before 
    EVERY build, everything works fine!” too.
    You’re using the default build process template in your build definition? You configured these 3 configurations in your build definition to build your solution 3 times?
    If you remove that DebugForLive configuration, only configure Debug and Release in your solution and build definition to perform build, everything will works fine?
    After you changed the configuration from “DebugForLive” to Release, please check in on your solution first, then queue build definition to build your solution. After you changed the configuration each time, please check-in on your solution first,
    then perform build.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • If I cracked my iPhone 5 screen will I get it replaced for free?

    Hi I have recently cracked my iPhone 5 screen and I was wondering if I would get it replaced free at my nearest apple store or will I have to pay?

  • ITunes 8.1 no longer deletes played podcasts for Shuffle during refresh

    I lost two functions in the upgrade to 8.1, one of which is the auto delete of podcasts on my 1st gen iPod Shuffle to which I have already listened when I do a "refresh" from the iTunes Podcasts window. As it is now, I have to manually delete Podcast

  • Picture Quality & Final Cut Pro 5.0

    I just finished a big project using FCP - I really like the program, but the picture quality is less than perfect. In fact, it's pixelated, especially where there is motion. I've tried upping my monitor's refresh rate, but that hasn't seemed to resol

  • Modify the ACS database via CSUtil

    First, is there a document that will show me the entire CSUtil syntax? I have seen bits and piece, but not everything. Also, can you modify a user account in such a manner that you can actually change it's Group? In other words, can I move jdoe from

  • IMessage acting odd after ios6

    My wife and I each have an iPhone and share the apple ID. After we upgraded to ios6, each time I iMessage her, I get the same text back sent from me and sent to her. Same with her phone, she iMessage me and I get it and she gets the text back from he