Is it possible to add a filter to a webapp without declaring it in web.xml

Hello,
I'd like to add a filter in my web.xml file, but without declaring it in my webapp.
Indeed, I have multiple webapps, and I'd like to have a common web.xml file that should be directly included in all the webapps including this package ?
Is it possible or not ?
As for JSF, it is possible to add faces-config file by putting it in the META-INF of the package.
Thanks in advance.
bgOnline

Your title and your question are opposites...
A filter must be specified in a web.xml to be used. That doesn't mean the Filter's class HAS to be in your webapp, it just must be accessible to the Servlet container (you could place it in the common/classes directory or shared/classes directory or even the server/classes directory).
I've not tried it, but I see no reason why you couldn't declare the filter and filter-mapping in the server's web.xml which would then filter all requests in all webapps.
HTH.

Similar Messages

  • How to add a filter to Premiere Elements 9

    Premiere Elements 9 is missing a timecode filter (like the kind found on Premier Pro CS5).  Is it possible to add this filter (and others) to Premiere Elements 9? And how? And where would these video filters be?  The trial seems to be working ok on my iMac i5.  Need the timecode though...
    Thanks, MG

    There might be some plug-ins, but I use PrPro and AE, so I have that Effect in each. I like the control in AE better vs the TimeCode Effect in PrPro.
    Good luck,
    Hunt

  • Is it possible to add a user using the RESTful Web Services SDK

    Others have asked before about user management features in the RESTful Web Services SDK.  However I can find no answers or links which provide an answer to the question 'Is it possible to add a user using the BI 4.1 SP2 RESTful Web Services SDK'?
    Any help would be appreciated.
    Regards,
    Steve

    Hi Steve
    Unfortunately, not possible. The BI RESTful can only get "stuff" that is already there. I suppose this would fall under some sort of "Object Creation" API and that is not there. Yet. Rumors abound, but nothing firm. Just as a BTW.; the Business Intelligence platform RESTful Web Service Developer Guide 4.1 is here:
    http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_bip_rest_ws_en.pdf
    SAP Web Intelligence RESTful web service SDK User Guide, SAP BusinessObjects Business Intelligence platform 4.1
    SAP Crystal Reports RESTful web services - SAP Crystal Reports RESTful web services
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • MDX : How to use filter on a dimension without showing it OR merge 2 attributes of the same dimension?

    Hello everyone,
    I'm kind of newbie with MDX language, I'm trying to get filtered measures from a cube with a specific layout.
    Here is my exemple :
    I want to get all the "order numbers" where the "invoice" cost is more than 300.  Each invoice is linked with an ID, one order number can have several invoices.
    So what I do is a select request with 2 dimensions : "order num" and "id_invoice"
    Here is the result : I get all the cost sorted by "order num" and I can easealy identify those who are above 300
    order num
    Id_invoice
    cost
    Total
    Total2
    15450307
    10032013094498
    1671
    1737
    ok
    15450307
    10032013099835
    66
    1737
    KO
    15450596
    10032013094078
    8524
    8524
    ok
    15451214
    10032013094119
    228
    4348
    KO
    15451214
    10032013097069
    978
    4348
    ok
    15451214
    10032013097071
    3142
    4348
    ok
    15542434
    10032013101736
    142
    142
    KO
    15550064
    10032013097016
    1261
    1261
    ok
    15550346
    10032013097586
    2252
    2252
    ok
    15550353
    10032013098446
    2617
    2617
    ok
    What i need : In "cost", I need to have the sum of each cost which are above 300 in one line (without showing the invoice id)
    order num
    cost
    Total
    Total2
    15450307
    1671
    1737
    ok
    15450596
    8524
    8524
    ok
    15451214
    4120
    4348
    ok
    15550064
    1261
    1261
    ok
    15550346
    2252
    2252
    ok
    15550353
    2617
    2617
    ok
    How is it possible to use a filter on a dimension without showing it or merge 2 attributes of the same dimension ?
    The problem is that if I show "id" column, the filter doesn't work properly : it compares 300 with the total cost of the whole order and does not compare with each invoice (which could be under 300 ! - see "KO" in Total2 column)
    Here is the request I use to generate this result :
    with
    member [Measures].[Total]
    as (
    [TP].[ID INVOICE].[All],
    [TP].[ORDER NUM].currentmember,
    [Measures].[COST]
    member [Measures].[Total2]
    as (
    IIF([Measures].[COST] >
    300, "ok",
    "KO")
    select
    {[Measures].[COST],[Measures].[Total],[Measures].[Total2]}
    on
    columns,           
    Filter
                 [TP].[ORDER NUM].[ORDER
    NUM].members *
                 [TP].[ID INVOICE].[ID
    INVOICE].members
                 ,[Measures].[COST]
    > 0
    on
    rows
    FROM [MYCUBE]
    Thank you  for your help !
    Kind regards,
    Olivier.

    Hi Olivier,
    hereunder a similar query against the AW. For all order numbers, we sum all lines above 30 without diplaying the line numbers:
    WITH
    MEMBER [Measures].[lines above 30] AS
    IIF(
    [Measures].[Internet Sales Amount] > 30,
    [Measures].[Internet Sales Amount],
    null
    MEMBER [Measures].[aggr lines above 30] AS
    SUM(
    exists(
    [Internet Sales Order Details].[Sales Order Line].[Sales Order Line],
    [Internet Sales Order Details].[Sales Order Number].currentmember
    [Measures].[lines above 30]
    SELECT
    [Measures].[Internet Sales Amount],
    [Measures].[aggr lines above 30]
    } ON 0,
    [Internet Sales Order Details].[Sales Order Number].[Sales Order Number] ON 1
    FROM ( SELECT
    [Product].[Category].[All Products] ON 0,
    [Internet Sales Order Details].[Sales Order Number].&[SO51177]:
    [Internet Sales Order Details].[Sales Order Number].&[SO51178]
    } ON 1
    FROM [Adventure Works] )
    I reduced the cube with a subselect.
    Philip,

  • Is it possible to add a firewall Filter or Rule Set to the Extreme Router (802.11n)

    Is it possible to add a firewall Filter or Rule Set to the setting for the Extreme Router (802.11n) like the following:
    "ALLOW TCP/UDP IN/OUT to 208.67.222.222 or 208.67.220.220 on Port 53"  and
    "BLOCK TCP/UDP IN/OUT all IP addresses on Port 53"
    The goal of this is to create a firewall rule to only allow DNS (TCP/UDP) to OpenDNS' servers and restrict all other DNS traffic to any other IPs.
    Or, alternatively is there a way to configure same applied to the Network preferences on IMAC OS X?
    Thanks and much appreciation to anyone who has any clue about this.

    Sorry, I think you've got it backwards.
    The concern is NOT that the child can make changes to our hardware/AEBS, or even our network software on my IMAC - nothing's been changed.
    BUT, he changed the dns settings on his OWN device (ie chromebook) to google public server, accessed the AE using our home wifi network BUT bypassed our dns settings. Capeesh?
    See: http://www.pocketables.com/2013/03/how-to-use-change-the-dns-settings-on-your-ch romebook-and-use-googles.html

  • Field name is not know error when trying to add a filter

    Hello all!
    I need to add a filter dinamically to display a report. I'm using Crystal Reports 10 w/ RAS server.
    There is an sql statement in Database Fields > Command. It uses a join and a correlation name for table name: TT.START_TIME.
    I am getting a "Field name is not known" error:
    "This field name is not known. Details: errorKind Error in File C:\WINDOWS\TEMP\{D375AB61-F7AE-4BCC-AF5E-6702C0EFDE10}.rpt: Error in formula . '{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)' This field name is not known. Details: errorKind"
    I tried to specify the field the following ways:
    Command.START_TIME
    TT.START_TIME
    START_TIME
    TIME_TRACKER.START_TIME (time_tracker being the table name)
    MAIN.TIME_TRACKER.START_TIME (main being the schema)
    All of the above is giving the same field name not known error.
    I am adding the filter the following way:
            String whereClause = "{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)";
            IFilter filter = rptClientDoc.getDataDefinition().getRecordFilter();
            filter.setFreeEditingText(whereClause);
            rptClientDoc.getDataDefController().getRecordFilterController().modify(filter);
    I also tried the following where clause:
    String whereClause = "{Command.TT.START_TIME} > DateTime (2006, 08, 01, 09, 00, 00) AND {Command.TT.START_TIME} < DateTime (2007, 08, 24, 04, 45, 00)";
    still doing the same thing.
    If anyone could please help me w/ this I'd really appreciate it!
    Thank you!
    Anastasia

    The first formula was created using the selection formula expert. I only added the TT part after it didn't work giving the same message. The name the expert gives it after I click on the field is {Command.START_TIME}. Still gives the invalid field name error. -_- Could the rest of the forumula be causing the problem?
    In regards to parameterizing the SQL Command, I spoke w/ the gentleman who creates these reports in Crystal, he says it's not possible, because sometimes we don't want a where clause and sometimes we do.
    Is there a way to directly edit the SQL string itself which is in the Command through java?
    Thank you very much for taking time to respond.
    Anastasia

  • GWI: Add new filter criteria for replication object BUPA_MAIN

    Hello,
    we are currently setting up Groupware Integration with CRM 7.0 and Outlook Exchange 2007. We would like to filter the BPs that are replicated to Outlook's public folder. The replication object BUPA_MAIN in Tx. SMOEAC has only got the following criteria fields:
    BPARTNER
    CENTRALARCHIVINGFLAG
    COUNTRYISO
    INDUSTRY
    IS_COMPETITOR
    IS_CONSUMER
    IS_CUSTOMER
    IS_DELETED
    IS_PROSPECT
    PARTNEREXTERNAL
    REGION
    SEARCHTERM1
    SEARCHTERM2
    SITE_ID
    We don't want to use any of those but would like to set a filter on BP Role and filter for all Groupware Employees. Only those should be replicated.
    We did set the filter conditions in customizing under "Filter Condition for Business Partners Exchange with Groupware" in order to replicate only BP with role GWEMP but still during Initial Load all Business Partners were replicated.
    Could anyone tell me how to avoid this?
    I hear it's possible to add new criteria fields to the replication object BUPA_MAIN.
    Could anyone tell me how this is done?
    Your help will be much appreciated.
    Thanks in advance!
    Angela

    Hello Angela
    Usually the settings under "Filter Condition for Business Partners Exchange with Groupware" should be enough to avoid the synchronization. With those settings all BP are filtered out except the ones with role GWEMP (Groupware Employee).
    We have the following setting in SPRO:
    BUPA     1     BUP001           X     X     
    BUPA     1     BUP003           X     X     
    BUPA     2        X     X
    BUPA     3                     X     X
    (first column empty, second and third column with X, last column empty).
    Regards
    Marco

  • Is possible to add 2 conditions in a view that is used from an extractor?

    Hi alls.. that´s my question:
    Is possible to add 2 conditions in a view that is used from an extractor?
    I have an extrator in R/3 that´s a table view, so i want that this filter from 2 differents fields when this has the same value.
    For example:
    filter when FIELD1 = ZZ or when FIELD2 = ZZ .
    ..different fields, but the same type of data and value!
    is it possible?
    When i trying to activate the view, then show me an error that this is impossible to do.
    Help me..please!!!
    TY

    The error is :
    Only be able to 'OR' connects for the same fields.
    You are trying to connect with 'OR' select conditions from differents fields.
    (sorry but the sistem is in another language ---> not english)

  • Add date filter to recordset

    Is it possible to add some filters to a paged dataset?
    One of the columns is date, its in unix format, and isn't displayed, the pretty date is in a visible column. I want to have 3 check boxes:
    1. Expires within 3 months
    2. Expires within 2 months
    3. Expires within 1 month
    I have been reading this: http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersSample.html
    And realise that I need to write something like this:
    function ff1(ds, row, index){ var c = row.name.charAt(0); return c >= 'A' && c <= 'H' ? null : row; };
    But due to knowing very little about JavaScript I am not sure how to do the date comparison.
    Can Javascript handle unix dates?
    Each filter will be something like this:
    show records where daterow is between today and today minus 3 months
    show records where daterow is between today and today minus 2 months
    show records where daterow is between today and today minus 1 month
    Can anyone help?
    Cheers,
    Steve

    Hmph, I may have to abandon this filter, the performance is dire. It takes over 3 seconds to filter a list of 22 records, thats with none matching the filter. If I use a list with 230 rows it crashes the browser.
    I do have a keyword filter on this list as well, you type in part of a keyword and it filters it straigh away, even the 230 long list. Why mine is killing the performance I really don't know.
    This is my current filter:
    function filterExpire90(){
         var today = Date.today(), expire = Date.today().add(-90).days();
         function filterDate90(ds, row, index){
              var c = Date.parse(row["lastdate"]).add(1).years();
              return c.between(expire, today) ? row : null;
          // filter
         dsHoists.filter(filterDate90);
    And this is the faster filter from the Labs example:
    function FilterData()
        var tf = document.getElementById("filterTF");
        if (!tf.value)
            // If the text field is empty, remove any filter
            // that is set on the data set.
            dsHoists.filter(null);
            return;
        // Set a filter on the data set that matches any row
        // that begins with the string in the text field.
        var regExpStr = tf.value;
        //if (!document.getElementById("containsCB").checked)
            //regExpStr = "^" + regExpStr;
        var regExp = new RegExp(regExpStr, "i");
        var filterFunc = function(ds, row, rowNumber)
            var str = row["serial"];
            if (str && str.search(regExp) != -1)
                return row;
            return null;
        dsHoists.filter(filterFunc);
    function StartFilterTimer()
        if (StartFilterTimer.timerID)
            clearTimeout(StartFilterTimer.timerID);
        StartFilterTimer.timerID = setTimeout(function() { StartFilterTimer.timerID = null; FilterData(); }, 100);
    Steve

  • Is it possible to add more criteria when configuring smart collections?

    Looking to build a smart collection with the following criteria:
    Average number of colours greater than 1000 (to filter out B/W & grayscale images)
    Minimum # pixels in image (to filter out small images)
    Aspect ratio is within 20% of 16:9 (to filter out images that won't look good on HD dispaly)
    Less than 35% similar to any other image (to filter out duplicates)
    Possible?

    It's possible to add more criteria by clicking the plus symbol to the right but not to the extent of the complexity you require. The nearest you could get (click image below) would perhaps provide a starting point but you would need some manual intervention, at least for duplicates.

  • How to add a filter in multiple BEx queries at once

    Hello everybody,
    my requirement is to add a generic filter (characteristic restriction) in more than 30 BEx queries. Instead of adding the filter in each query one by one with query designer, I was wondering if there is a tool (eg. a transaction or a query designer function) that can add this filter to all desired queries at once.
    Does anybody know if such tool exists??
    Thanks very much,
    Andrea

    Hi,
    I think it is not possible. if your all query on one info provider, then you can make filter reusable for info provider and use it when you are creating query again on that info provider.
    First, Restrict characteristics in filter as per your requirement and then right click on it and click on save as - give description and technical name. then save it. now filter is reusable

  • Is it possible to add markups to a PDF that I am not the author of

    Most of the PDFs I generate are from other applications (like Autocad) where I "print to PDF" to create the file.   Most of the PDFs I recevie are generated the same way.   Prior to Acrobat Reader 8, it was simple for me and my collueges to exchange information on these PDFs by using markup tools and resending them with markups.   Since Acrobat 8 has come along, I now find it impossible to markup a drawing (no matter if I have created it using Print to PDF or if someone has sent it to me).  I went to the knowledge base and see that the drawing has to be enabled for markup in one of 2 ways
    In an open PDF, choose Comments > Enable For Commenting In Adobe Reader, and then save the PDF.  
    Start the wizard to initiate a shared review or an email-based review and follow the on-screen instructions. When you’re finished, commenting is enabled in the PDF that you specify for the review. 
    Well, there is no Comments selection in my toolbar.   Second method is given by
    Quickstart: Start an email review
    An email-based review lets you track review status and merge received comments into the PDF.
    Click Review & Comment and choose Attach For Email Review.
    If prompted, enter your identity information to create a reviewer profile.
    Follow the on-screen instructions to select the PDF, invite reviewers, and send the email invitation.
      If your email application doesn’t send email automatically, you may need to answer alert messages and switch to your email application to finish sending the message
    But there is no Review & Comment button to click.
    So, can someone tell me, can I still do a simple markup of any PDF?   Even if I have to jump through hoops can I?    I guess I can understand Why Adobe has done away with this feature in their free tool, as they were not getting any revenue off of it, but it greatly diminishes the usefulness of Acrobat Reader and therefore all PDFs for me.
    Thanks in advance for your response.

    To enable this right you need Acrobat, not the free Reader.
    However, starting from Reader X it is possible to add simple markups to any file, unless it has been specifically disallowed by the creator of the file.

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is it possible to add a graphics card to the back of my HP

    Hello  I want to know if it's possible to add a new graphics card to the back of a Laptop not inside of it but on the back of my laptop ???  my graphics Card is a Intel 4000 graphics card is a terrible for gaming TERRIBLE !!!  

    Not sure where it would go on the back, but no the system is closed. There is no place to insert a graphics card or attach it. You will find some hokey stuff on the internet where people say you can plug a video card in the wireless card slot but those are a hoax at worst and at best they do not tell you that such a thing would not even perform as well as what you have and is likely to damage the motherboard. 

  • Is it possible to add a backlit keyboard to an hp envy touchsmart 15

    is it possible to add a backlit keyboard to an hp envy touchsmart 15?

    Daevid.
    Yes you can.
    Your manual here.
    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB8QFjAA&url=http...
    Page 20 chapter 3.
    REO
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

Maybe you are looking for

  • Is there a way to connect two analog mics recording in stereo to the iPad for recording?

    I currently use an M-Audio Mobile Pre to connect two microphones to my MacBook Pro via USB. If I wanted to use my iPad (or even iPhone) instead, is there a way to get the stereo input into the iPad? Would the Line 6 Sonic Port sold via Apple work? Wo

  • Sy-ucomm value for print preview

    Hi friends, Can any one tell me the sy-ucomm value for the print preview..?

  • Text not appearing in footer?

    On my site www.helenmarino.com the footer at the end of all the pages says: This site and all contents are ©2012 Helen Marino Helen Marino - Property Finder | London UK For some reason though (even though it is in the HTML) it is not appearing for my

  • ITunes 11.0.3 crashing almost daily

    Hi, Since updating to iTunes 11.0.3 via the Mac App Store recently, it has been crashing on an almost daily basis. I leave it open in the background all the time but I will often return to the computer after leaving it unoccupied for several hours th

  • File Manager & Bluetooth?

    Hallo. I have searched for a File Manager and a Bluetooth app but cant find any good one. When i hade a undroid phone, there was very good file managers who showed the root of the phone and the bluetooth was great. The only file managers i found for