Question about Filter

Hi there,
If a Filter is mapped to a servlet, the request from browser will be processed by Filter first. My questions are:
1) Can we set Filter to JSP or other static components?
2) If the request is forward from another web component, will the request be processed by Filter? or Filter just works for request from browser?
Thanks a lot!

As usually the answer comes few hours after the question have been made ...
I found this presentation:
http://developers.sun.com/events/techdays/presentations/seattle/J2EEandAdvancedFeatures.pdf
at page 7 you can read:
One of the ambiguous areas in previous version of Servlet is in
regard to the interaction between the RequestDispatcher and
filters. Should filters invoke for forwarded requests? Included
requests? What about for URIs invoked via the <error-page>
mechanism? Before Servlet 2.4, these questions were left as open
issues. Now Servlet 2.4 makes it a developer's choice. There's a
new <dispatcher> element in the deployment descriptor with
possible values REQUEST, FORWARD, INCLUDE, and
ERROR.
This means you need servlet 2.4 to manage the situation!

Similar Messages

  • Another BW question about filter in the query definition

    Hi ,
    I have another question about filter in the query definition.
    <u>Question:</u>
    Which of the following objects can be filtered in the query definition?
    A. characteristic
    B. Key figure
    C. Structure
    D. Units
    E. Hierarchy
    My answer is A,B,D,E.
    The answer in the book is A,B,D
    Can anybody tell me which one is wrong?
    Thanks in advance,
    Liu Jia

    HI
    1.The answer could be A,B,D.you can not apply filters on hierarchies
    2.Whenever there is a change in Attribute data(like Location,Num etc...)that has to be reflected in all aggregates of the cube.Thsi can be done by running "ATTRIBUTE CHANGE RUN".
    sri

  • Question about filter-mappings in the web.xml

    I'm a bit new this so apologies if this is a stupid question but want to write a filter mapping that captures /image/<identifier here> and /image/<identifier here>/size/<size here>
    I would have assumed <url-pattern>/image/*</url-pattern> would do this but it doesn't. When I try a URL with /size/ in it, I get a File not found error.
    So I tried adding a second mapping that uses <url-pattern>/image/*/size/*</url-pattern> and that doesn't work either.
    What would be the best way to write a filter mapping that captures both /image/<identifier here> and /image/<identifier here>/size/<size here> ?

    Thanks for the reply.
    I did end up doing something like that in the end. I think I just couldn't get my mind into gear as usual on Monday.
    What's happening is taking a nice neat human readable URL and converting it to the horrible URL used by the system. The reason it's a filter is because someone had written a tiny filter would might only execute 20 lines of code and I think someone felt it was easier to just lump about 240 more lines to execute on each request, which, even if it isn't a huge strain on the system it's nasty and most of the code is unnecessary the vast majority of the time. I'm splitting it up the whole lot based on the various tasks.
    This particular functionality could be a servlet. I probably would have done it that if given the task from scratch but I think sometimes I put too much faith in the fact those with more experience should know better. I think I'll try it as a servlet and if someone has concerns about it then I'll ask them to explain to me why it can't be one.

  • Question about filter VI in LabVIEW.

    I am using LabVIEW 7.  I am trying to reduce the noise in a voltage signal that I am sending to LabVIEW.  When I use the filter VI (Functions> Signal Analysis> Filter), the output signal looks like the frequency response of the filter.  I need to simply get the filtered signal in the time domain.  How can I get this? 
    Are there other ways to reduce the noise of a signal in LabVIEW?
    Thank you.

    There are a couple things that stick out in my mind. First if you are using the the Express Filter VI, you need to make sure that you know at about what frequency the signal you are acquiring is at. That way you can appropriately set up the filter to get rid of any components you don't want. Since you are wanting to do a time domain, a straight DC voltage won't show any results. Most noise on acquired signals is 60Hz noise, so I would suggest using the appropriate filter to get rid of that noise. If this doesn't help get rid of the noise, it might be an issue with how you are acquiring your signal. In that case you need to let us know how you are acquiring the signal, what hardware your using, and the specs of the acquistion. That way we can come up with some suggestions on what we could do from the hardware end.
    There are also some generic filter VIs located in All Functions>>Analyze>>Signal Processing>>Filters that you could try using to see if you have any success. Let us know how it goes.
    Tyler H.
    National Instruments

  • Question about the Filter type for the trace provide "Microsoft-Windows-Kernel-File"

    Hello all,
    I have moved this question from the Windows
    Server General Forum accorfing to the suggestion from Mr. Justin Gu 
    I have a question about the Filter function for the trace provider "Microsoft-Windows-Kernel-File".
    I can find the Filter function with the following operation.
    Mr. Justin Gu wrote:
    > You create a Data Collector Set for the trace provider "Microsoft-Windows-Kernel-File" and finish completely, then you > can right click it and select Properties.
    In the Properties dialog box, click Filter and
    then select ‘Edit…’. You will be> able
    to see the Filter type and Filter data in the Filter dialog box.
    What
    Kind of Filter can
    I use in this Filter dialog box?
    And, how can I set to exclude the some kind of datas?
    Could you give me your suggestion?
    Thank you.

    What
    Kind of Filter can
    I use in this Filter dialog box?
    And, how can I set to exclude the some kind of datas?
    Could you give me your suggestion?
    Thank you.
    I'm looking for the same information.

  • Basic question about NR filter

    Very basic question about the (perhaps oversimplified) interface of the noise reduction filter.
    Does anyone know definitively whether the first "Strength" slider is a master control for the filter overall (i.e. it controls the power of all other sliders below it), or whether it only affects an individual parameter (such as what might be perceived as luminosity-based noise, rather than color noise)?
    In other words, if Strength is set to zero, but Reduce Color Noise is set to 100%, does the color noise reduction effectively become zero or 100%?
    Neither the Help Menu nor three of the aftermarket books I have definitively addresses this. There are further redundancies regarding this "Strength" slider when advanced mode is turned on: for instance, if Strength on the "front" panel is set to 0, but 9 on the individual channel panels, what is the effective strength?
    Thanks in advance -

    Yes I'm sure it will work great for you.
    The iFrame format is something Apple has come up with. The reason for its existence is unknown to me so I can only speculate. But it seems to me that Apple "invented" this format in order to have devices such as Ipod/Ipad/Iphone/Ixxx create clips that are editable on consumer hardware such as already mentioned devices but also standard Mac computers, without the need for format conversion.
    iMovie converts most input formats during import, which takes a lot of time, and this need for conversion often comes as a surprise to most people new to home video editing.
    iFrame has a resolution of 960x540 which is long way from the common standards of 1920x1080 and 1280x720. If your end target is YouTube however, this may not be too bad though. However if you intend to go with YouTube HD, you may find iFrame footage to look wrong since they are effectively upscaled to a higher resolution.
    Technically iFrame uses the H.264 algorithm, a smaller frame size (960x540) and a rather low compression scheme. This will result in large files, but the plus side is that the files are ready for editing without the need for any conversion and iMovie will natively edit the files.

  • A question about the example "Filter"

    Hi,
    I have a question about the example "Filter (The Filter example illustrates how to filter data using a butterworth filter)" in the measurement studio reference now, it is one of the analysis examples.
    I load this example in Vc++, but when I compile it, the error messages are:
    "'ButterworthHighPass' : is not a member of 'CNiMath'" ,
    "'ButterworthHighPass' : undeclared identifier",
    "'ButterworthLowPass' : is not a member of 'CNiMath'" ,
    "'ButterworthLowPass' : undeclared identifier",
    "'WhiteNoiseWave' : is not a member of 'CNiMath'" ,
    "'WhiteNoiseWave' : undeclared identifier",
    Can you tell me what is matter? and how can I solve it?
    Thanks!

    Hi,
    I was hoping that you could tell me what version and edition you have of Measurement Studio. I also need to know if you are using .NET or 6.0. For example, "I am using Mesurement Studio Enterprise edition 7.1 for Visual Studio .NET."
    Depending on the version that you have, different functions and controls are included. I believe that you may have an edition that does not include the Butterworth filter. Let me know and we can go from there.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • A question about UDA and Data-Forms

    Hi all,
    I have a couple of questions about UDA. I am using Hyperion Planning 11.1.1.3m, and when I desing a Data-Form I would need to use the UDA I asigned for the Entity dimension: is that posiible?
    The other question is, when creating a Substiution Variable in Essbase I use the function @UDA (+dimension+, "MemberA"), but when using this variable in the Data-Form, it does nothing at all(in fact, it is been detected as an error). Why is that happening?
    Thanks a lot

    Use an attribute dimension to achieve what you are trying to do with UDA's in a data form. An attribute dimension will allow you to filter on members in the base dimension by a specific attribute the same way a UDA will. You can create the attribute dimension in the dimension editor in Planning by selecting the base dimension (Entity) and then select the custom attributes' button. Check the dba guide for a step-by-step approach.
    With regards to the subvar, are you trying to add the function as a value of the subvar when you create it in EAS? If so, this is not allowed. What are you trying to do with the subvar on the form? Subvars are supported in data forms as part of the member selection for a dimension. For instance, you can set up a subvar called CurYear and set the value equal to FY11 for the Fiscal Year dimension. In the data form you can set the member selection for the Fiscal Year dimension to CurYear. When the user opens the form, the member FY11 is returned.

  • Question about PNP...LDB

    Hi All,
    I have been asked a simple but strange question about PNP LDB. When we assigned logical database in our program, it will basically create a selection screen, which have certain fields. Like Today.. Some date ranges. Person assigned number, company code, company status.
    From my standpoint I know when ever we give selection to PNP screen we have to check this selection parameters in our programs, like date range ,person number, employee status etc ….RIGHT?
    Somebody ask me that without checking selection in our report I mean any parameters, it can filter the record, my Answer was BIG “NO”. You need to check all the parameters in your program.
    Next question asked by me was what the purpose of PNP. I replied that rather then declaring and doing bunch of databases SAP provide logical database so current all the records and do what ever you like to do.
    What you think guys?
    Thanks

    Here`s the question , when I am giving "1"active employee in employee status why its pulling up the information for '0' withdrawn employee?
    Message was edited by: Saquib Khan

  • Question about metadata filtering and document sets

    Hello,
    I have a question about the metadata filtering when using document sets.
    When i use the metadata filter for example for "Installatie: P00001" it shows.
    But i wan't to show only the document set and not all the documents. Is this possible OOTB?

    Hi striker,
    You can add the "Content Type" in Hierarchy Fields for your list, then click the "Document Set" to filter the document set type item, then you can input the "P00001" in Installatle key filter, click apply, then it should show only document set
    items with field value P00001.
    http://office.microsoft.com/en-001/sharepoint-help/set-up-metadata-navigation-for-a-list-or-library-HA102832523.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Questions About JSP?

    hi;
    I am php devloper and I am learning Java now.
    I am using NB6.1 , Tomcat 6.0 , J2ee 5.
    I have some questions about devleoping web application with jsp.
    1.What are
    /WEB-INF/web.xml
    /META-INF/context.xml
    /META-INF/MANIFEST.MF
    files that generated with NB.are important or optional.are auto generated or may I edit.
    2.can I distribute my web application in non text format.How?
    3.if I want to add some files to my application that its running in tomcat.how can i do that with out rebuild all.
    thank you
    Add to mtz1406's Reputation

    thank you all for helping.
    I will write more information about my questions may this help others:
    *{ /WEB-INF/web.xml* - The +Web Application Deployment
    Descriptor+ for your application. This is an XML file describing
    the servlets and other components that make up your application,
    along with any initialization parameters and container-managed
    security constraints that you want the server to enforce for you.
    This file is discussed in more detail in the following subsection.
    As mentioned above, the <code>/WEB-INF/web.xml</code> file contains the
    Web Application Deployment Descriptor for your application. As the filename
    extension implies, this file is an XML document, and defines everything about
    your application that a server needs to know (except the context path,
    which is assigned by the system administrator when the application is
    deployed).
    The complete syntax and semantics for the deployment descriptor is defined
    in Chapter 13 of the Servlet API Specification, version 2.3. Over time, it
    is expected that development tools will be provided that create and edit the
    deployment descriptor for you. In the meantime, to provide a starting point,
    a [basic web.xml file|http://localhost:8080/docs/appdev/web.xml.txt]
    is provided. This file includes comments that describe the purpose of each
    included element.
    NOTE - The Servlet Specification includes a Document
    Type Descriptor (DTD) for the web application deployment descriptor, and
    Tomcat 6 enforces the rules defined here when processing your application's
    <code>/WEB-INF/web.xml</code> file. In particular, you must
    enter your descriptor elements (such as <code><filter></code>,
    <code><servlet></code>, and <code><servlet-mapping></code> in
    the order defined by the DTD (see Section 13.3).
    h4. } from tomcat documentation
    Tomcat Context Descriptor
    bq. A /META-INF/context.xml file can be used to define Tomcat specific \\ configuration options, such as loggers, data sources, session manager \\ configuration and more. This XML file must contain one Context element, which \\ will be considered as if it was the child of the Host element corresponding \\ to the Host to which the The Tomcat configuration documentation contains \\ information on the Context element.
    }from tomcat documentation
    but I still want more information about this question:
    Q3: I want to distribute (sell to another organaization) without give sorce code in jsp files.So I want to precompile it to be just class files or jar files.
    I want to use ant that become with netbeans 6.1.can anyone give me information about how to do that.
    thank you again

  • Question about autodiscover in case of multiple bound namespace

    Hi Experts,
    I have a question about the autodiscover behaviour. Let's assume we have the below infrastructure:
    SiteA :
    MBX-Server-SiteA : Member of a DAG
    CAS-Server-SiteA : outlook anywhere url = siteA.domain.com
    SiteB :
    MBX-Server-SiteB : Member of a DAG
    CAS-Server-SiteB-1 : outlook anywhere url = siteB-1.domain.com
    CAS-Server-SiteB-2: outlook anywhere url = siteB-2.domain.com
    We have DB-1 and DB-2 that have copies in both MBX servers.
    My question is how does exchange select the access URLs to return in the autodiscover process? I know that it depends on where the mailbox is hosted but can't find details about the process in the technet articles.
    Thanks.

    There's quite a few details that are involved in the Autodiscover process. First of all - probably the most important thing is that there are 2 stages to the whole process.
    In the first stage, the client is simply concerned with getting the address of a CAS server that will help it further. We'll keep things simple and assume your scenario where the client is located inside the network and is domain-joined. The details of the
    LDAP query are detailed in
    this link. (At the time I was investigating this I've actually went ahead and ran the queries using the ldp.exe client against the Configuration partition of the respective AD domain - it's worth seeing the actual responses.) An interesting trick here is
    the 'keywords' attribute that's stamped on those SCP entries. The reason behind it is that you don't want a client located in a site to go half across the globe in order to connect to a CAS server, when there's one available in its own site. One simple way
    to get the 'keywords' attribute stamped is through the Set-ClientAccessServer cmdlet, using the -AutodiscoverSiteScope parameter. In your example, you'd probably want to run it against the CAS server in Site A and specify the name of the corresponding AD site
    ('SiteA') and correspondingly against the 2 CAS servers in Site B (using 'SiteB'). Once the client has got the response to his query, it will attempt to select one server that's handling the site he's in (essentially it will filter the results based on 'keywords'
    -contains <client-site>). Now that we got our endpoint we can go to stage 2.
    In stage 2, the client will actually use EWS in order to query the Autodiscover service itself running on our target server. There are 2 possible interfaces of accessing the Autodiscover service: POX (Plain Old XML) and SOAP. POX will be targeting the ../Autodiscover.xml
    URLS, while the SOAP one will be using ../Autodiscover.svc URLs. Details about this including some hardcoded parts are
    here. What happens next is detailed in point 3, section 2.1 The Autodiscover Process
    here. This last link is the key to the whole process:
    "It provides a list of CAS that has AutodiscoverSiteScope information set for the
    Associated AD site of the Database where the client Mailbox is located."
    In other words, the CAS is smart enough to return the URLs belonging to a CAS server in the AD site where the client's mailbox' database is active.
    My advice is to test this on your scenario. Tests can be done here first-hand: the Outlook's tray icon Test E-Mail AutoConfiguration can be used or alternatively - if you want to see the details in the communication - SoapUI
    for the SOAP access method, for POX there's an extension called 'Postman for Chrome' that can be used. I've used all these in my tests back when I was fighting conflicting results from the articles around the web about Autodiscover.
    That's a long way of saying we get the AutoD URL of a CAS server closest to the workstation, which then provides the configuration to use which are the the URLs closest to the mailbox  :)
    By all means look at the SOAP response, but Outlook will only use POX.  Lync does SOAP along with other 3rd party apps.
    Cheers,
    Rhoderick
    Microsoft Senior Exchange PFE
    Blog:
    http://blogs.technet.com/rmilne 
    Twitter:   LinkedIn:
      Facebook:
      XING:
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Question about distinct_values for multiple fields

    Hi,
    With the distinct_values() function we can get the distinct value for a specified field, and is there any way to get the distinct value for multiple fields?
    Thanks!

    Hi simpson213,
    According to your description, you have some questions about your report design.
    1. How to have non-duplicating child info?
    In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
    records on chid id and use First() function on other fields. 
    Reference: First Function (Report Builder and SSRS)
    2. How to  have various sections that contain fields with numerous values?
    We can also add these fileds into the child group of child and have them toggled by child id. 
    Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
    3. How to add a page break between each child?
    Right click on the Row Group(child id)->Page Break->Select between each group instance.
    Reference: Add a Page Break (Report Builder and SSRS)
    4. How to select multiple child id when rendering report?
    When creating parameter, select Allow multiple values in General.
    Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • 2 question about GPU and Lens correction ,cs5

    Hi
    i have 2 questions about Gpu and lens correction in Cs5
    1)Filter->lens correction->search online
    i get often and almost every connection time out at the first click on search online , at the second click i get no online profile
    is it normal?
    2) question is about Gpu
    it run faster , but talking about ajustament layer
    like saturation or vibrance for example
    i found with the gpu on , a light slow refresh compared with gpu off
    i have set cache  levels 6 ,history 20
    i guess are the defaul
    well i add a saturation layer and move the saturation slide ,increase o decrease saturation
    with Gpu Off , the changes are immedially , i mean i can see in real time the increase o decrease of saturation
    with Gpu On it takes a few(very few) time more
    again is normal ?
    don't be angry , i'm going to buy cs5 and i'm unsecure ... the price make a big role
    thanks

    For what it's worth, I also see a timeout on the first [ Search Online ] click, after about half a minute delay.  Second click turns up results immediately.  This happens each time Lens Correction is started, even without restarting Photoshop, and in both 32 and 64 bit versions.  Also note that I started with one profile listed by default (though from the wrong camera) for my 40D with 28-135 zoom.
    I alsow noticed that I was seeing progress bar activity in the Lens Correction dialog while I was typing this (even though Lens Correction was NOT the active window) every time I hit the 'L' key.  Strange.
    Windows 7 x64.
    -Noel

  • Question about Offset printing from Indesign

    Hello everyone, I have a question about printing too a DPX rip platemaker from Indesign. When I print my file to the rip, it seems to bold the text when it should not be bold, I do not know if this is an Indesign or rip error, but if anyone has a solution I would be grateful for any assistance.
    I dont know if it's necessary, but the OS with Indesign is Mac OSX, printing to a ripmate on Windows 2000.

    Have you applied an outline to the text?
    Try unoutlined text
    Is the text near an effect like drop shadow or other filter?
    Move the text to top layer or above any effects.
    Is it just this file or any file?
    Need to figure out if it's just this job or all of them or at least let us know.
    Have you got the fonts installed at the RIP end, perhaps it's rasterising text that the RIP has not got the font?
    You could try exporting to PDF first, that would embed the fonts in the PDF.
    Let us know if any of this helps?

Maybe you are looking for

  • [CRM] Change sales office from within an order

    We've been trying to get the following to work... as you might guess, so far without success. From within a CRM order, if we change the partner number for the department a check is being done whether that partner belongs to the same sales office. If

  • No longer able to view virtual machine from Hyper-V Manager

    From the Windows 2008 R2 host machine, I can run the Hyper-V Manager and 'connect' to the Virtual Machine.  The window pops up with nothing but a gray background (clearly the same gray background of the log in screen), but no 'ctrl-alt-delete' prompt

  • Using bind variables with sql statements

    We connect from a VB 6.0 program via OO4O to an Oracle 8.1.7 database, using bind variables in connection with select statements. Running ok, but performance again by using bind vars not as good as expected! When looking into the table v$sqlarea, we

  • How to Convert SMO Date property to a SQL DateTime

    Hi, I am retrieving the SMO Database CreateDate property and trying to insert this into a T-SQL DateTime column.   The following is a sample of Powershell code to retrieve this property: $serverA.Databases[0].CreateDate  The format of the CreateDate

  • Dosen't understasnd!!

    I'm new to this java programming for mobile phones and I don't know how to start, I have followed the guide and compiled a project to class files but how do I compile it to run on a mobile? Help me somebody, please!