Which listener should not be registered in web.xml ?

i want to know out of 8 listeners which listeners are not required to be registered in web.xml
ServletRequestListener
ServletRequestAttributeListener
ServletContextListener
ServletContextAttributeListener
HttpSessionListener
HttpSessionAttributeListener
HttpSessionBindingListener
HttpSessoinActivationListener

You should find the answers here:
C:\Java\Tomcat 4.1\webapps\tomcat-docs\servletapi\index.html
Most of them say it in the top of their description if they are required to be declared in web.xml
Never heard of a ServletRequestListener, or a RequestAttributeListener

Similar Messages

  • Which listener should be used for JTextArea

    Hi,
    I need to add a listener for JTextArea particualy when
    the text in the jtextarea is changed. I don't think
    mouse listener is enough, since the user can use tab to
    get to the jtextarea and edit the text. In this case,
    which listener should I use. Sample code would be
    helpful.
    In addition, I have a problem with the jtextarea that
    when user uses tab to go to different gui components,
    such as jtextfield, jcombobox, jtextarea, jlist, etc, the
    tab stays in the jtextarea and keeps appending to it. It does
    not go to next component, such as jlist. How can I make it
    work?
    Thanks in advance,
    Pin

    It doesn't work. Are you using 1.4 or 1.3? I am using
    1.4.
    In the 1.4 API, it says that isManagingFocus is
    "Deprecated".
    Here is what I have:
    JTextArea descrptArea = new JTextArea() {
    public boolean isManagingFocus() {
    return false;
    descrptArea.setRows(3);
    descrptArea.setLineWrap(true);
    descrptArea.addKeyListener(new KeyAdapter() {
    public void keyTyped(KeyEvent e) {
    // DO SOMETHING
    I found the following code which says it will do it.
    However, I got the exeception:
    java.lang.ClassCastException:
    n: javax.swing.KeyStroke
    at java.util.TreeMap.compare(TreeMap.java:1081)
    at java.util.TreeMap.put(TreeMap.java:459)
    at java.util.TreeSet.add(TreeSet.java:205)
    Set forwardTraversalKeys = new TreeSet();
    forwardTraversalKeys.add(KeyStroke.getKeyStroke('\t'));
    forwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEven
    .VK_TAB,
    InputEvent.CTRL_MASK));
    textArea.setFocusTraversalKeys
    (KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
    forwardTraversalKeys);
    Set backwardTraversalKeys = new TreeSet();
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEve
    t.VK_TAB,
    InputEvent.SHIFT_MASK));
    backwardTraversalKeys.add(KeyStroke.getKeyStroke(KeyEve
    t.VK_TAB,
    InputEvent.SHIFT_MASK |InputEvent.CTRL_MASK));
    textArea.setFocusTraversalKeys(
    KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
    backwardTraversalKeys);
    Any idea???
    PinI'm not using 1.4 but the class cast exceptions look like they come from : Set forwardTraversalKeys=new TreeSet() etc
    try : TreeSet forwardTraversalKeys=new TreeSet()
    you cant cast from a Set to a TreeSet because a TreeSet is a Set but a Set is NOT a TreeSet.
    hope this helps.

  • Which listener should it be running?

    When Grid Control Management Service is installed, it starts a listener. Provided that there is a database on the same box, then it has also a listener. Which listener should we be using? Should we be using the OMS listener and shutdown the database listener?
    Thanks,
    Mustafa

    You should find the answers here:
    C:\Java\Tomcat 4.1\webapps\tomcat-docs\servletapi\index.html
    Most of them say it in the top of their description if they are required to be declared in web.xml
    Never heard of a ServletRequestListener, or a RequestAttributeListener

  • Which calculation should not be done in calculated key figures

    Which calculation should not be done in calculated key figures?

    You can be more specific.
    CKF are defined to do the reporting on Key figures which are not existing in Infoprovider.Ideally all the calauculations are to be defined as CKF(Global)/Formula(Local)
    Wel,you may have to do few things in conditions like...finding TOP 10 Customers etc..
    hope this helps you
    Sriman

  • Which listener should I use?

    Now I want to listen the JFrame's location changing event. Which listener should i use?

    Add a ComponentListener to the JFrame

  • Firefox 4 seems to action on some html tags that are included within a html comment tag which it should not.

    Consider the following html code where I open a textarea and include a comment tag within the textarea. Within the comment tag (which Firefox 4 should ignore) I've included a close textarea tag. Firefox 4 (unlike FF3 and IE) closes the textarea.
    The following code is also available at
    http://www.cems.uwe.ac.uk/caa/ffbug/index.html
    We are about to start a textarea....<p>
    <pre><nowiki><textarea rows='20' cols='40'>
    Here is the textarea.
    Inside these comment blocks I'll put a close textarea tag which Firefox should ignore but does not.
    <p>
    <!--
    We are now inside comment blocks...
    <br>
    This code should be inside the text area.<br>
    </textarea>
    <br>
    and so should this code be <b>inside</b> the text area (but is not in Firefox 4).
    -->
    </textarea>
    <p></nowiki></pre>
    This code should be outside the textbox.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Which listener should be used in a standalone grid infrastructure env?

    gurus:
    I installed a 11.2.0.2 standalone grid infrastructure on a linux box and created a database manually. I then used netca to create my listener which created 2 listener files:
    a. under my DB home:
    aml6:/u00/app/oracle/product/11.2.0/dbhome_1/network/admin > cat listener.ora
    # listener.ora Network Configuration File: /u00/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_ETL =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aml6.lynk.lynksystems.com)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    ADR_BASE_LISTENER_ETL = /u00/app/oracle
    b. under my grid home:
    aml6:/u00/app/11.2.0/grid/network/admin > cat listener.ora
    LISTENER_ETL=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ETL)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_ETL=ON # line added by Agent
    I observed that the one under my DB home was the one that really got used when I tried to logon to a database.
    Here are my questions:
    1. what is the use for the listener under my DB home?
    2. what is the use for the listener under my grid home?
    3. the grid infrastructure document says that the default home for listener and tnsnames files are grid home, however, it seemed that I have to use the listener under my db home directory.
    4. which listener is the ASM instance use?
    Thanks a lot for your help.
    dz

    Raj Mareddi wrote:
    Thanks Levi and Sebastian.
    We have separate listeners in DB homes for Stand Alone grids.
    Cluster Grids have got the listeners (SCAN..etc) running out of Grid Home. Still, we have exceptions for the Cluster grid for EBS databases where SCAN is not supported yet and still have a separate listeners for the databases.
    This OTN doc also describes a listener in the DB home: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/install/gridinstss/gridinstss.htm
    Hi Raj,
    In this OBE, the author explains why he is setting a new Listener for ASM.
    To Configure EM Database Control to manage ASM, perform the following steps:
    To manage the ASM instance in Enterprise Manager Database Control. you must configure the ASM Instance as a target.
    When you configure the ASM target, you must provide the port for the ASM listener.
    The Grid Infrastructure installs a listener by default on port 1521, and configures the ASM instance to use this listener.
    In this tutorial the database is already installed and has a listener configured on port 1521, the Grid Infrastructure places a listener on port 1522 and the ASM instance is registered with the grid listener.Before Install Grid Infrastructure he already had a database running with the Listener configured and running.
    To ensure that the service of ASM will be registered in the Listener of same release he set a new Listener using GUI HOME.
    This procedure is correct because the Grid Infrastructure (ASM) is the highest release (So, it's necessary configure Listener in same release), to not use a Listener with prior to release of the Grid Infrastructure(ASM) he created new Listener.
    He also could deconfigure the Listener of Oracle Home (database) and configure in the GUI Home. It's a matter of choice.
    Observing requirement of the paragraph below, we can set listener from anywhere there is no restriction, it is a matter of best practices only.
    The release of the listener must be the same as or later than the latest release of all Oracle databases being serviced through the listener.Cheers,
    Levi Pereira
    Edited by: Levi Pereira on Nov 8, 2011 4:23 PM

  • Which apps should NOT be installed to the SD card on a Treo 650?

    I have had the Treo only since Friday, already the device is down to about 6mb of space. I have tons of room on my SD card. Please tell me what types of programs should NOT live on the SD instead of the device.
    Also, if I put in another SD card, will the missing prc's and pdb's cause my Treo to freeze or will it just tell me the programs are missing?
    Thanks
    Alan (clueless in Oklahoma)
    Post relates to: Treo 650 (Cingular)

    Any program that has to do with the system. Basically anything that supports for the phone or contacts/calendar leave on the device. Games and other apps you can put on the SD card. As for if you remove the SD card. It will not freeze. You will not have the .prc to run the program. The PDB is just a database file stands for Palm Database.
    Post relates to: Treo 800w (Sprint)

  • I cannot download free apps on my iphone/ipad. I get a notice to input my credit card info, which i should not need to do enter for free apps. please help

    i cannot download free apps via the App Store...i get an error message that asks me to enter my credit card information... i wish not to enter my credit card info until i want to purchase something, and to download free apps, i do not believe i should need to enter credit card info.
    Please help me correct my Apple ID account so that i can download free apps.
    thank you so much

    This user, mountaingoatgirl, explains how to get a None option in your account details in the iTunes app on a Mac or PC. -
    https://discussions.apple.com/message/24907941

  • Background Network Heuristic planned for component which it should not be

    Hello Expert,
    I ran a Network Heuristic in the background without selecting the option "Take into account found components in planning run".  However, when the job completed, I review the log and it showed that the components also being planned as well. 
    Looks like the background planned for components regardless of this option check or not.  Please advise
    Thanks,
    Tom

    Hi,
    You  mean to say  that system fully plans the components  with or without setting the indicator "Take into account ........".
    To me behaviour expected may be as below with additional setting of u201CNet Change planning u201C
    Without setting  the indicator( "Take into account ......") , System may be  only exploding  the dependent demand for a BOM level in the first production location found in the planning direction.  The  dependent demand  may be  neither covered nor to be  propogated further by the supply chain.
    With setting indicator, the dependent demands are expected to be covered and furter propogation.
    Regards
    Datta

  • Statements which should not use in BADIs

    One Question ...
    Any specific statements are there which we should not use in BADIs ?
    Thanks

    Hi,
    BADI is an OO ABAP approach, therefore any statement which won't work in the OO context won't work here! Instead breaking your head on what is to be used? and what not? , run a "code inspector" and "EPC" on your implementation class.it will show list of illegal statements in your BADI implementation
    Regards
    Naren

  • Env-entry from web.xml not in generated plan.xml

    Hello,
    Recently I migrated a JDeveloper 10.1.3.4 project to 11.1.1.3 and from there to 11.1.2.4. When I deploy this project to an 10.3.5. weblogic server then the 'env-entry' entires in the web.xml are not available on the application server.
    Even when i use weblogic.PlanGenerator with the -all option to create a plan.xml from the WAR-file the env-enties are not found.
    The web.xml is like this:
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">
    <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>jaxrpc</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>VersionServlet</servlet-name>
    <servlet-class>nl.deltalloyd.alfa.keten.version.VersionServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>VersionServlet</servlet-name>
    <url-pattern>/version</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>jaxrpc</servlet-name>
    <url-pattern>/RelatieSoapHttpPort</url-pattern>
    </servlet-mapping>
    <jsp-config/>
    <security-role>
    <role-name>Administrators</role-name>
    </security-role>
    <resource-ref>
    <res-ref-name>jdbc/AlfaDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <env-entry>
    <env-entry-name>appl/version</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>2013.06</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/releasedate</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>13-06-2013</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/loglevel</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>INFO</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>appl/omgeving</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    <env-entry>
    <env-entry-name>service/case</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>http://test.services.intranet.company.nl/GixoCaseWeb/services/CaseServiceHttp</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>mqueue/rc/host</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>nl001wwavm058.ad.intra</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>mqueue/rc/port</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>1414</env-entry-value>
    </env-entry>
    </web-app>
    Maybe I missed something in the migration path. Can someone please help me.
    With kind regard,
    Martin

    Let me describe my case in few more words...
    I have some kind of client-server app. Clients have OC4J installed and they download myApp.ear and myApp_plan.dat files and by using script (Windows CMD batch file) clients install those files with admin_client.jar, OC4J's admin utility. The problem is that I have 2 different types of clients and I have client specific settings set in web.xml file and each time I compile myApp.ear I have to uncomment/comment some lines in web.xml.
    So, to make a long story short, I need a way to deploy those settings separated from (outside of) myApp.ear. By following you link, I have read that orion-web.xml should reside inside WEB-INF folder of myApp.ear, which is not good for me.

  • Bug in which Premiere does not allow publishing of videos to YouTube over 15 minutes.

    When I try to publish a video to YouTube over 15 minutes I get this error: "The video duration exceeds the maximum duration supported by the destination.  Please reduce the duration of video and try again." 
    Clearly YouTube's policies change over time - they allow videos much longer than this.  Shockingly, Premiere does not offer any option to override this limit which obviously should not be set in stone.  Please help.

    SteveNewYork
    No bug.
    If you are using Premiere Elements 9, 10, 11, or 12, the upload to YouTube from within the project feature is stated and is
    2.00 GB/15 minutes. So no bug. The YouTube dialog in the sharing section of 9, 10, 11, or 12 clearly state that. Now, if you have a version earlier than 9, you will run into limits of 2048.0 MB (aka 2 GB) and only 10 minutes. Those earlier versions were never updated to 15 minutes when Adobe extended the time for its YouTube feature from10 to 15 minutes going from version 8 to 9.
    The YouTube limits for its upload at its site are governed by YouTube and not Adobe. In fact, I have been told that you can get extended upload times there with special accounts. I do not believe that YouTube has changed its basic time 15 minutes. Rather is offering "regular" 15 minutes  as well as an extended time for those who request it. See link at the end of the next paragraph.
    If you have a Premiere Elements Timeline content that is greater than 2.0 GB/15 minutes, then your ONLY choice is to export that Timeline content to a file saved to your computer hard drive and then upload that file to YouTube at the YouTube web site after you make whatever arrangements so that you do not end up with just 15 minutes there. If you have not seen the following already, the following is YouTube information found online on getting more time for larger uploads
    https://support.google.com/youtube/answer/4523193?hl=en&rd=1
    If you need help deciding on the settings for exporting a file saved to your hard drive for upload to YouTube at the YouTube web site, I would be glad to offer suggestions based on the properties of your Premiere Elements Timeline. More specific information will be offered once we know that information and what version of Premiere Elements you are using and on what computer operating system the program is running.
    We are not Adobe. Just user to user. If you want to call this matter to Adobe's attention, you might be interested in filing an Adobe Feature/ Request Bug Report Form.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    ATR

  • Which API can be used to write to an XML file(web.xml) programmatically

    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    It is important and am looking forward to pointers.
    Thanks in advance!
    Regards,
    Shikha

    S. Bajaj
    org.w3c.dom Api
    Deepak
    shikha wrote:
    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    I am unable to find answer to this.
    Looking forward to pointers and help.
    Thanks in advance!
    Regards,
    Shikha

  • JSP, JavaBean, web.xml - how to fit together?

    Servlets should be placed into the web.xml file to be recognized correctly by a application server.
    Is this also true for JavaBeans (NOT Enterprise JavaBeans!)? Since I don't call a JavaBean directly but only over tags within a JSP I'm not sure about this. If I have to put it in there, do I use the same syntax?
    e.g.:
    <servlet>
    <servlet-name>exampleBean</servlet-name>
    <servlet-class>example.exampleBean</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>exampleBean</servlet-name>
    <url-pattern>/exampleBean</url-pattern>
    </servlet-mapping>
    By using this, the will server know that this Bean has to be deployed?
    Since I'm pretty new to this topic I'm grateful about any comment.
    Thanks in advance!

    Hi,
    JavaBean are java classes and they must be on the classpath in order to be loaded.
    only servlet,jsp,filters,listeners must be declared in the web.xml file. all the java classes can be put under /WEB-INF/lib in order to be loaded by the appserver
    hope it helps,
    Giovanni

Maybe you are looking for

  • How do I turn off pop-up prompts from Firefox?

    I have had prompts pop-up from the bottom of the browser, most recently one that gave me the option to "Choose What I Share". Is there any way to prevent these from popping up? I was in the middle of typing a post to a forum when a pop-up prompt show

  • [CS4/Mac] Save Document in different folder

    Hello, It sound simple, but I have problems with saving a document in a folder and I don't find the answer. I'm opening an document in my plugin and I like to save it automatically with another name in a different folder. I tried to use SaveDocumentA

  • Why can't i delete videos from my ipad mini 2?

    Hi, I'm running out of space on my iPad mini 2, 32gb, ios8.1.2. I want to delete some videos I shot on holiday last year, so I can make some more this year. In the camera roll, I hit select, select the vids to delete, but the trash can icon goes grey

  • EMU-0404 USB: Using different outputs in abelton?

    Hello Community, Can I use different outputs for my tracks in abelton live. I want to root the master-track to one stereo output, and new tracks together to the other outputpair for headphones, to hear the track sperated and NOT on the master, but on

  • Photoshop CS6 color flow problem

    Hey there! I have returned once again to these forums because I seek help with Photoshop. I haven't used PS in a few months so it might be just me not remembering the correct settings OR a technical problem, but I seem to be having problem with color