Activating Application client through jsp / html / servlet ??

Is it possible to activate the application client in a way other then the appclient tooll via terminal window ??

I assume you're talking about some kind of programming JSP or such?
This forum is truly dedicated to Messaging Server, and we really aren't able to help with your issue.
I would suggest the Developer groups.

Similar Messages

  • Interesting single sigon application project using jsp and servlet....Help.

    A customer login's to my website using Enterprise login. I am supposed to have a link on my website to this other website(that also uses our Enterprise login details but hosted by other vendor/company on their server), and when I click this link the customes should automatically get logged in to this other website and get a welcome page(instead of login page).
    Below are the sequence of steps that the other website wants me to perform to get to his welcome page(i.e bypass his login page).
    FYI, I am planning to build a jsp page with a link to this other website. Can some body tell me how should I build the application(i.e) how jsp and servlets be build to interact to perform these operations. Any hep is greatly appreciated.
    1.When a user clicks on to other website link(available on my website), the browser generates an HTTP GET request to the Other website's session servlet. User's name is one of the parameters of this request.
    2.Other website receives the HTTP request and generates a unique session identifier for this user. An HTTP response to the end-user is then sent. The user's name and the session identifier are passed back as parameters in the redirect URL.
    3.The browser sends the HTTP request (GET) to the Verification Service that was specified in the redirect message. The parameters (user name and/or session id) will be passed as URL parameters.
    4.The Verification Service(of other website) authenticates the user. A redirect URL to it's sigon servlet(with parameter's User id and key) is then sent back to the user's browser.
    5.The end-user's browser will perform the redirect (performing an HTTP get operation to Other website's signon servlet with the username and the digest key).
    6.The other website will check if the parameter's passed is the same as the one passed earlier, if the user is who he says he is then he is redirected to the main page of the application.
    7.The browser will then redirect the user to Other website's main page (welcome.jsp).
    There seems's to be many calls to this other website that needs to be performed behind the scenes once a user clicks the link on my website.
    Please suggest and help me out.........
    Edited by: 836726 on Feb 21, 2011 3:41 PM

    Why are you trying to build a whole federated single sign on framework from scratch when you can just use/buy an existing and proven solution instead? There are a lot of security implication and trust issues involved for this so unless you already understand all of those I'd advise you not to re-invent the wheel. There are a lot of products available that do this. Try searching for '<vendor name> Access Manager' or OpenSSO.

  • Oracle 10g XE in tomcat 5.5 through JSP or Servlet

    Hello iam very new user of tomcat,oracle 10g .Will you please guide how to set environment variables and any other modifications to be done to run a JSP or Servlet including JDBC(oracle 10gXE) connection in tomcat5.5 for windows Xp.
    Please tell me in detail........................................

    I am sure that one can set up SELinux 'properly'.
    Everyone I talk to about SELinux tells me that it has become more detailed and much more 'secure' in that past years, and that probably explains why Oracle worked easily in FC3 and not so easily now. The added power also requires added configuration, which some have described to me as 'somewhat more involved than sendmail.cf'
    The documentation is at http://www.nsa.gov/selinux/ for those who wish to learn about the configuration capabilities. I'm sure that Google will also provide tutorials.

  • Converting a command-line console application to a jsp or servlet

    What would be the steps to convert a console based application to a servlet based application?
    For example, I have a Scanner object that takes input from System.in and assigns it to a string.
    How might I turn the scanner input into a form on a jsp, or a servlet?What would be the steps to convert a console based application to a servlet based application?
    For example, I have a Scanner object that takes input from System.in and assigns it to a string.
    How might I turn the scanner input into a form on a jsp, or a servlet?

    Obviously you can't read from the scanner. Instead you have to read from request parameters.
    So you have to take a step back and define what values are being input into your application.
    At its most basic you could do it as a jsp page with a textfield/textarea which the user could type into instead of typing on the console input.
    For instance if your application asks the user to enter their name, and then reads the name from System.in, then you have on your jsp page a <input type="text"> and a submit button.
    In the servlet which gets run when you submit the button you get the user's name via request.getParameter().
    At that point you have your input String, and have removed System.in from the process.
    But you are not just limited to text input with an html form. You can use any of the controls available. So asking a user "What is your favorite colour?" Instead of having them type in the answer, you could have them choose it from a radio group or dropdown select box.
    Either way it still gets to the Servlet as a String via request.getParameter.
    Steps you might follow
    1 - identify the values being input into your program
    2 - Write your jsp - start with just textfields
    3 - Write your servlet handler to retrieve the values from the JSP.
    4 - Determine the appropriate control on an html form to replace each input
    5 - Modify the textfields to other controls (dropdown/radio button) as appropriate.
    Theoretically the rest of your program doesn't need to change once you have the value in a String.
    Your method of reading just changes from using Scanner and System.int to request.getParameter()
    Similarly your method of writing would change from using System.out to a response JSP page.
    hope this helps,
    evnafets

  • JDeveloper 10.1.3 erorrs when trying to run any page i.e. JSP,HTML,Servlet

    Hi,
    I downloaded JDeveloper v10.1.3.0.4(SU3). When I try to run a simple jsp page I get the following error. Any ideas JDev 10.1.2 is far better than 10.1.3 I am lots of problems with new version. I tried doenlaoding 3 times but everytime this error don't know from where. Any help is appreciated:
    [waiting for the server to complete its initialization...]
    2006-10-20 00:10:04.198 NOTIFICATION Auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war...
    2006-10-20 00:10:04.218 NOTIFICATION Unjar C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war in C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms
    2006-10-20 00:10:04.228 NOTIFICATION Finished auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war
    2006-10-20 00:10:04.278 NOTIFICATION Auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar...
    2006-10-20 00:10:04.368 NOTIFICATION Unjar C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar in C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources
    2006-10-20 00:10:04.378 NOTIFICATION Finished auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar
    2006-10-20 00:10:04.408 NOTIFICATION Auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear...
    2006-10-20 00:10:04.408 NOTIFICATION Unjar C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear in C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j
    2006-10-20 00:10:04.509 NOTIFICATION Finished auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear
    2006-10-20 00:10:05.510 NOTIFICATION Auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war...
    2006-10-20 00:10:05.510 NOTIFICATION Unjar C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war in C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp
    2006-10-20 00:10:19.009 NOTIFICATION Finished auto-unpacking C:\Oracle_Software\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war
    2006-10-20 00:10:26.640 WARNING J2EE OJR0107 Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    06/10/20 00:10:26 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors.  Exception is: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    Oct 20, 2006 12:10:26 AM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Error occurred initializing connectors.  Exception is: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    06/10/20 00:10:26 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
           Missing class: net.sourceforge.jtds.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
                  Loader: oc4j:10.1.3
             Code-Source: /C:/Oracle_Software/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
           Configuration: <code-source> in META-INF/boot.xml in C:\Oracle_Software\jdevstudio1013\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    Oct 20, 2006 12:10:26 AM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
           Missing class: net.sourceforge.jtds.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
                  Loader: oc4j:10.1.3
             Code-Source: /C:/Oracle_Software/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
           Configuration: <code-source> in META-INF/boot.xml in C:\Oracle_Software\jdevstudio1013\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    06/10/20 00:10:26 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors.  Exception is: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    Oct 20, 2006 12:10:26 AM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors.  Exception is: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    2006-10-20 00:10:26.690 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error occurred initializing connectors.  Exception is: Exception creating connection pool.  Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : net.sourceforge.jtds.jdbc.Driver
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 29552 ms.

    In 10.1.2 under available libraries I have a JTDS jar file but it is not in the selected libraries column.
    I don't have the library in 10.1.3.1. But I think it's not the issue as both 10.1.2 and 10.1.3 are in separate folders. Any ways I just added the same library in 10.1.3 also but no luck. So wondering if 10.1.3 does read something from class paths or is there anything in the registery that's messing-up but it's really weired what 10.1.3 is doing. Any more ideas

  • Calling Java - Client application Through Servlet/JSP/HTML

    Hi,
    I have a Java Client Application to display presentation(BI Bean) , made thru wizard provided in JDev.
    Now i want to open this application from a link in HTML page.
    I am running the application thru J Developer only.
    please help,
    thanks,
    Vaibhav

    Hi,
    Thanx for ur help..
    My application is a JSP one..
    My J Client application is named :-
    BIApplication1.java.
    When i call it thru JSP..
    BIApplication1 bi=new BIApplication1();
    bi.setSize(800, 620);
    bi.setVisible(true);
    the application opens..
    but when i attempt to open a presentation..
    it give me the following error..
    "no configuration file found"
    but when i open BIApplication independently..it works just fine...
    thanks,
    Vaibhav

  • Calling Java - Client appllication Through Sevlet/JSP/HTML

    Hi,
    I have a Java Client Application to display presentation , made thru wizard provided in JDev.
    Now i want to open this application from a link in HTML page.
    I am running the application thru J Developer only.
    please help,
    thanks,
    Vaibhav

    Hi,
    actually i am able to run J Client from jsp page...
    i add the following lines to my JSP page...
    BIApplication2 bi=new BIApplication2();
    bi.setSize(800, 620);
    bi.setVisible(true);
    but after opening thwe application..
    when i try opening a presentation, then it gives me error..
    No configuration file found..
    but while running the application independently...its wrking fine...
    i have tried passing the BISession object as argument to the constructor but still the error comes..
    I am running the pages within JDev.
    thanks,
    Vaibhav

  • How to call reports from JSP/HTML application

    Hi,
    We have a web application developed in JSP, I'd like to use Oracle Reports writer to generate reports (Since our back office application is developed using Oracle forms and Reports - 6i).
    I don't know how to place a request to Oracle Reports server and view the output. Can someone please help me with this.
    Thanks in advance.
    Best Regards,
    Karthik

    Hello Karthik,
    You have a web application developed in JSP. In that you are calling Reports though URL through your JSP.
    User views the source of the HTML page, in browser which is the result of execution of JSP. So Client will see the
    HTML output, but not the real JSP.
    Still if you donot want to hard code the user/password in file, have a form and ask client to enter user/password.
    Or you can combine your JSP with other Java components , like Java bean or Servlets to get user/password at run time.
    With Regards
    Sachin

  • Application Client to call JSP...

    Hi all,
    I am using Websphere to write EJB codes and JSP pages and print report based on data retrieved from database. Every morning, i need to manually print sales reports and copied it to a network folder. I found it very tedious. I planned to write an application client to automate the task at midnite. I managed to call the session bean using the client but how can I call the jsp page to print the report? Is it possible? Can I save the jsp page to network folder automatically? Thank you for your help.
    Regards,
    Dreon

    Here is some simple code to read from a url
    private String loadPage() throws Exception
              StringWriter      out;
              URL                url;
              URLConnection     conn;
              BufferedReader     reader;
              String               inputString;
              out = new StringWriter();
              if ( logLoads ) System.out.println("Running loadPage, for URL : " + url );
              conn = _url.openConnection();
              conn.connect();
              if (DEBUG) System.out.println(" connected to server...");
              _contentType = conn.getContentType();
              if (DEBUG) System.out.println(" got Content Type : " + conn.getContentType() );
              reader = new BufferedReader( new InputStreamReader( conn.getInputStream() ) );
              if (DEBUG) System.out.println(" Ready to read data..." );
              while (true) {
                   inputString = reader.readLine();
                   int index = inputString.toUpperCase().indexOf("<HTML>");
                   if ( index >= 0 ) {
                        if (DEBUG) System.out.println(" found <HTML> tag in line : '" + inputString + "'");
                        out.write( inputString.substring( index, inputString.length() ).trim() + "\n" );
                        break;
              inputString = reader.readLine().trim();
              while ( inputString != null ) {
                   if ( inputString.length() > 0 )
                        out.write( inputString + "\n" );
                   inputString = reader.readLine();
              if (DEBUG) System.out.println(" finished.");
              return out.toString();
    }

  • Deploying web applications - jsp generated servlet's may be written over the same file!

    Hi, I have made the following test:
    Created two simple web applications with one jsp page, and deployed it
    with different context names, in weblogic.properties I have:
    weblogic.httpd.webApp.weirdApp=\java\weblogic\myserver\weirdApp.war
    weblogic.httpd.webApp.weirdAppTwo=\java\weblogic\myserver\weirdAppTwo.war
    (Note: I have used two diferent war files, because I have a different
    implementation of the jsp page, I could have used the same warfile, and
    deployed it two times with the same different names I have used)
    These two applications have a jsp named myHomePage.jsp
    If I access the first application, like this:
    http://myServer:7001/weirdApp/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    If I access the second application, like this:
    http://myServer:7001/weirdAppTwo/myHomePage.jsp
    the servlet for myHomePage is created in
    /java/weblogic/myserver/WEB-INF/_tmp_war/jsp_servlet/_myhomepage.class
    It overrides the first one! Because the servlets are keeped in memory by
    a different class loader this seems to not affect the other servlet, but
    I am wondering what may happen with this strange beaver from weblogic!
    Bruno Antunes,
    Java Software Engineer
    email: mailto:[email protected]
    Phone: +351.21.7994200
    Fax : +351.21.7994242
    WhatEverSoft - Java Center
    Centro de Competencia Java
    Praca de Alvalade, 6 - Piso 4
    1700-036 Lisboa - Portugal
    URL: http://www.whatevernet.com
    ****************** Internet Mail Footer ****************************
    A presente mensagem pode conter Informação considerada Confidencial.
    Se o receptor desta mensagem não for o destinatário indicado, fica
    expressamente proibido de copiar ou endereçar a mensagem a terceiros.
    Em tal situação, o receptor deverá destruir a presente mensagem e
    por gentileza informar o emissor de tal facto.
    Privileged or Confidential Information may be contained in this
    message. If you are not the addressee indicated in this message,
    you may not copy or deliver this message to anyone. In such case,
    you should destroy this message and kindly notify the sender by
    reply email.

    I have a separate java class that gets my data and returns a Result object. Do you mean java.sql.ResultSet?
    In my main servlet I do the following:
    request.setAttribute("supporttracker",
    supporttracker.findsupporttracker(monthYear));
    and then in my JSP I can iterate through the Result
    like the following with no problems:
    <c:forEach var="supporttracker" begin="0"
    items="${supporttracker.rows}" varStatus="counter">
    My problem is that I can only iterate through this
    once in the page whereas I have no problem doing
    multiple forEach loops through other types of
    lists/collections such as an ArrayList. Right, because a ResultSet is a database cursor and doesn't act the same way that an ArrayList does. It's more like an InputStream - once you read it, you close it. If you want to re-read it, you have to re-initialize it again.
    Iterators behave that way, too. Once you walk through them, you have to re-initialize them.
    I've looked
    on the web and in a couple of books, I first thought
    it may be scope or some attribute in forEach that I
    was missing but I'm stumped. It seems like it's
    because the pointer to the result set is at the end
    of the result set when trying the second iteration,
    but I thought by using the begin="0" would put the
    pointer at the first row again, on my second
    iteration I'm getting no rows/data outputed.
    Please help and thanks in advance!The better thing to do is for your method to return a List of objects, one per row, that represent what the ResultSet returns. Have that method iterate through the ResultSet, loading the rows into the List, and close it before you leave in a finally block. A database cursor is a scarce resource, so it's a good idea to close it as soon as you can.
    %

  • How to trap client browser window closing thru JSP or servlets

    How to trap client browser window closing thru JSP or servlets?
    Gunjan

    Hi
    Though some JavaScripts may provide you with solutions , yet there is no reliable way to detect the closing of the browser by the servlet. One way to achieve detection of user quitting a session is setting session timeouts ion the server side. This can be done either through the web.xml file or programatically by setting the session.setMaxInactiveInterval().
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems Inc
    http://www.sun.com/developers/support

  • How do I restrict access to JSP or servlet only through SSL Port

    Hi
    I want to restrict the access to few jsp and servlet only through SSL port,
    so how can I block the acces to those jsp and servlet through normal port??? We
    are using weblogic 5.1.
    Any help on this highly appreciated.
    Aruna

    Hi,
    To restrict access(56 bits or less). follow the below steps.
    1. Go to your Webserver instance ServerManager
    2. Click Preferences Tab ------> Encryption Preference
    ------> There disable "DES with 56 bit
    encryption and MD5 message authentication."
    for SSL 2.0 ciphers or SSL3.0 Ciphers. Which ever
    needed.
    3. Save and Restart the Webserver instance.
    The above steps are for 4.x version.
    Thanks,
    Daks.

  • How to call HTML page through JSP ?

    i want to know Hw to call Automaticly a HTML page through JSP.
    example :-
    have u seen yahoo login wen u put your ID & pass & Clock on login button it will chack ID & pass in the database & if it is correct then It will call A Mail Home Page.
    that's same i want to do.
    i have a jsp page which chacks the userID & Pass & call the first.html page
    but i dont know how to call html page automaticly.
    Any one can help me
    what i think is this
    tell me is it right or not
    suppose i have made a variable
    String add = "first.html"
    after chacking userID & pass
    if(idpass == true)
    add;
    if(idpass == false)
    erre;
    it will work or not pl tell me

    If you do the redirect with javascript, the user cannot resubmit his login when he presses the refresh button. When he does press refresh, he only refreshes the redirect, not the form post that was before it. When he presses back the redirect will also kick him back in stead of going back to the login page. A simple javascript redirect page would look like this:
    <html>
    <body onload="document.location.href='myhtmlpage.htm';">
    </body>
    </html>But that is only if you care about resubmits of course.

  • Jsp/html form- servlet- xml parsing

    does anyone have an example or know of a place where I can get code
    which passes XML from jsp/html to servlet which parses the xml???
    will be appreciated..........thanks

    Hi,
    Are u trying to acheive indpendent of browser solution or just want to know the things..
    well,I have one idea ok.
    Using JavaScript Constructs the XmL as u want, "let say
    <root><name>Lokesh</name><age>25</age></root>" before submitting the page(I mean frm.submit()) assign to a hidden variable, since you have post kind of submit back at the servlet from the request object get the value and store it as String and using StringReader you just parse the XML
    Just try the above one the below code
         public org.w3c.dom.Document getXMLDocument() throws IllegalStateException,Exception
                        if (!containsXMLDocument())
                                  throw new IllegalStateException("This request does not contain an XMLDocument");
                   javax.xml.parsers.DocumentBuilderFactory dbf=javax.xml.parsers.DocumentBuilderFactory.newInstance();
                   javax.xml.parsers.DocumentBuilder db=dbf.newDocumentBuilder();
                   java.io.StringReader strRdr=new java.io.StringReader(_xmlString);
                   org.xml.sax.InputSource ipSrc=new org.xml.sax.InputSource(strRdr);
                   org.w3c.dom.Document doc=db.parse(ipSrc);
                   return doc;
    best of luck..
    With Regards
    Lokesh T.C

  • JSP and Servlets - when to use which?

    Greetings,
    I am a software developer with a very good understanding of Java. I build web applications, console applications, server/client apps, gui apps, what have you.. Web development with Java seems so dynamic now, that I can't seem to keep up with it. I have a simple style of developing web apps with java. Basically I create Java DTO(Data Transfer Object) classes that will perform in the backend and talk to a database using JDBC, or write to file, or read from file, what have you. I develop JSP pages that produce the proper HTML based on what a user wants to see. I may create some functionality in the DTOs that will pass along certain data. Sometimes the JSP can get a little sloppy due to the nature of the app. I create forms that collect information using JSP/HTML and I create JSP pages that will extract the form data from the form page and then send that data to the DTOs for further processing. I am not creating any classes that implement or extend HttpServlet and this is starting to bother me. Is this more the accepted way of developing Java Web Apps? What could you consider these DTOs I am creating? Can these be considered servlets? I compile the classes and use them as if they were a servlet, but they really aren't right? I am not sure and I need to catch up with what's going on in the real world. This is the unfortunate part of never having anyone to mentor you. I feel like I am falling behind. What about the newer technologies emerging - Struts, Tiles, JSF, what have you.. Could these possibly be replacing the functionality of Servlets? Thanks for listening...
    takizzle

    There's no reason to slam anyone that's asking advice on a HELP FORUM.
    anyway, that aside-
    I usually use JSPs for presentation and show database views with them. take for example a shopping basket application, you would have a custom tag that would loop through the contents of the customer's shopping cart and display them.
    however when the customer was filling out thier information the form would point at a servlet that would handle the logic and processing.
    that's the diff- user servlets to handle logic and JSPs to handle presentation.
    cheers, and good luck :)

Maybe you are looking for

  • Add Additional Tag in XML

    Hi, I am using PI 7.0 and sending proxy to soap scenario. My external vendor is receiving my structure fine but complained that it does not have the following element <?xml version="1.0" encoding="UTF8"?> <!DOCTYPE gsafeed PUBLIC "-//Google//DTD Test

  • PCA Document Number

    Hello, Can someone help where exactly the Profit center accounting document no. ranges are given? We are implementing ECC6.0. I have assigned document no. ranges under Actual Postings in PCA Tree. But system has automatically started to post from 1(o

  • How to create A web services step by step and their uses

    How to create A web services step by step and their uses with their T-Codes pls dont send any links thank you Regards, Jagrut Bharatkumar Shukla

  • Failover To Physical Standby Database

    We have 3 node RAC 11.2.0.3 Primary database data guarded to a 3 node RAC 11.2.0.3 Standby database. There is an activity scheduled to perform some of order extracts in the database which is going to result in a lot of changes. Currently the discussi

  • Save for web option greyed out?

    hello. i'm not too sure but after the last one/two updates from the cc, i have been unable to click on the save for web option as it is greyed out. i've read this (http://forums.adobe.com/message/5242626#5242626). i am slightly blurry on the solution