In Web.xml  welcome file tag not works

Hi All ,
I am developing simple web application using spring framework
when i am try to add welcome file tag in web.xml with respective welcome page path but it not works.
but when use jsp page without to having any property it works.
what the problem with me
Thanks

Hi Frank
Thank you for your reply.
This is how I registered the session filter in web.xml
<filter>
<filter-name>SessionFilter</filter-name>
<filter-class>com.avery.view.filter.SessionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SessionFilter</filter-name>
<url-pattern>/faces/*.jsf</url-pattern>
</filter-mapping>
I'll try to use phaselisenter as you suggested.
Also, one more thing please, in the session filter, I have something like this.
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
System.out.println("JF--- Calling the Filter");
if (request instanceof HttpServletRequest) {
HttpServletRequest httpRequest = (HttpServletRequest)request;
HttpServletResponse httpResponse = (HttpServletResponse)response;
HttpSession session = httpRequest.getSession();
String url = httpRequest.getPathTranslated();
String path = httpRequest.getContextPath() + httpRequest.getServletPath();
if (httpRequest.getRequestURI().equals(path+"/Login")) {
System.out.println(" the request path is" + httpRequest.getRequestURI().toString());
session.setAttribute("WELCOME", Boolean.TRUE);
chain.doFilter(request, response);
else if (session.getAttribute("WELCOME") == null){
httpResponse.sendRedirect(path+"/Login");
else {
chain.doFilter(request, response);
else {
chain.doFilter(request, response);
Do you think it looks right ?
thanks
Edited by: Lang on Apr 13, 2012 1:41 AM

Similar Messages

  • ITunes Music File Tagging Not Working (Mac)

    Hi, I tried updating my iTunes library. After updating, I restarted my iTunes. Then my artwork, mp3 tags are missing again.
    Can anyone help me? I just encountered this error in iTunes Mac. I can update my music tags in Windows properly.
    Thanks!

    Can someone help me, i dont want to start a new thread as i usre this could be a common problem.
    Ok so when i launch the itunes store (windows) i can able to search manually in the field in the top right but i cant click on any of the links in the muic store homepage.
    Its quite fustrating as I have to type in manually the name of the song or artist as oppose to browsing in the store.
    Has anyone else experienced this? I tried to re install it but that didnt have any effect. PS This has only started happening within the last week or so. What could it be?

  • .jar file is not working properly :developed in NETBEANS

    Hi Gurus,
    i am using NETBEANS IDE 7.2.
    i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
    but when i run executable .jar  file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
    this is how i call the .bat file...
      String filePath = "D:/pms/Libraries/portlib.bat";  
            try { 
              Process p = Runtime.getRuntime().exec(filePath); 
            } catch (Exception e) { 
                e.printStackTrace(); 
    and below is the contents of portlib.bat file
    java -jar "D:\SMS\SMS\dist\SMS.jar" 
    you must probably ask why i am calling a .jar file using .bat file .
    reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
    if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
    that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
    Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working  ,
    thanks.

    Thanks Sir ,
    You need to first test an example that works like the one in the article.
    There are plenty of other examples on the web - find one you like:
    http://javapapers.com/core-java/os-processes-using-java-processbuilder/
    I tried this one.
      try {
                ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
                 File commands = new File("D:/SMS/SMS/Send_message.bat");
                 File dirOut = new File("C:/process/out.txt");
                 File dirErr = new File("C:/process/err.txt");
               dirProcess.redirectInput(commands);
                 dirProcess.redirectOutput(dirOut);
               dirProcess.redirectError(dirErr);
                 dirProcess.start();
            } catch (IOException ex) {
                Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
    as instructed in the article i compiled  both the projects at same version or sources and libraries which is 1.7
    here is my version details
    C:\>javac -version
    javac 1.7.0_07
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
    inside the NETBEANS IDE c:\process\err.txt  remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
    here is the error text
    java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    here is /SMS/SMS
    unknown source ?

  • input type="file" multiple / not working in IE 10.

    < input type="file" multiple /> not working in IE 10.
    I am trying to use the HTML 5 multi-file upload capability in a MVC 4 app.
    The control allows me to select multiple files when running under localhost but does not work when trying it from the web server.
    Is there some web server configuration I need to do? Web server is running IIS 7.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    Can you post a link?
    Does that only happen on that website or do you have that problem with all Flash content?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Hp file manager not working

    after updating hp slate 7voice tab from jellybean to kitkat the hp file manager not working.

    Hello, and Welcome to the HP Support Community!
    This is not HP's fault - this change was caused by Google.
    Perhaps this article can help explain how Google changed Android KitKat 4.4:
    KitKat and SD cards — what's fixed, what's broken and what's misunderstood.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • File- Export not working after upgrade from 11i to R12

    Hi,
    File -> Export not working after upgrade from 11i to R12.1.3 in few systems. Can you please let me know what could be the issue.
    If export record count more than 200 it is working fine in all the systems and if change the profile option "Export MIME type” value to ‘text/tab-separated-values’ from application/excel also it is wokring.
    Thanks and Regards,
    Jagadeesha

    Enabled the FRD. Below are few last lines. Can you please let me know what i can in this log file contents.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing GET_ITEM_PROPERTY/FIELD_CHARACTERISTIC Built-in:
    In Argument 0 - Type: Integer Value: 196613
    In Argument 1 - Type: Number Value: 54
    Out Argument 0 - Type: String Value: 12
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_MENU_ITEM Built-in:
    In Argument 0 - Type: String Value: FILE.EXPORT
    Out Argument 0 - Type: Integer Value: 19
    Executing GET_MENU_ITEM_PROPERTY Built-in:
    In Argument 0 - Type: Integer Value: 19
    In Argument 1 - Type: Number Value: 79
    Out Argument 0 - Type: String Value: TRUE
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_synch.menu_toolbar_sync. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: NULL
    In Argument 1 - Type: String Value: GLOBAL.OUT
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND GETPROFILE NAME="UPK_RECORDING_ENABLED" FIELD="GLOBAL.OUT" N
    FNDCPVCM, 11, Built-In, Entry, 316509814, USER_EXIT
    FNDCPVCM, 11, Built-In, Exit, 316509814, USER_EXIT
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.OUT
    Out Argument 0 - Type: String Value: N
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing GET_APPLICATION_PROPERTY Built-in:
    In Argument 0 - Type: Number Value: 75
    Out Argument 0 - Type: String Value: IHR40P
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed call_all_libraries. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_standard.event. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    FNDCPVCM, 10, Prog Unit, Exit, 316509814, /FNDCPVCM-3/P45_30_DEC_201223_28_33
    FNDCPVCM, 9, Trigger, Exit, 316509814, WHEN-NEW-ITEM-INSTANCE
    FNDCPVCM, 8, Prog Unit, Exit, 316509814, /DMU-4/P8_30_DEC_201223_23_12
    # 15 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301498413820
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3
    # 16 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301512613925
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3

  • File- Print not working from SQL Developer 1.2.1 Build MAIN-32.13

    File->Print not working from SQL Developer 1.2.1 Build MAIN-32.13.
    I downloaded sqldeveloper-1.2.1.3213.ZIP and extract to a local directory. From the extracted directory I ran ..\sqldeveloper\sqldeveloper.exe from Windows XP sp2. The program itself seems to run just fine but File-Print doesn't do anything. In Help-About, Java Platform is reported as 1.5.0_06 and Oracle IDE is 1.2.1.3213. I'm not sure where to look for what is causing the problem.
    Thanks

    I hadn't tried CTRL-P before but I did today. On the first attempt, I saw a small jump in the memory usage for sqldeveloper.exe as reported in Windows Task Manager. Otherwise, there was no change. A second CTRL-P in the same session produced a further bump but subsequent attempts in the same session produced no further change in CPU or Memory Usage.
    Using Task Manager to monitor this further, I tried File->Print again and saw that sqldeveloper would periodically climb to 1 or 2 percent CPU and consume a little more memory. After a minute or so, though, all activity stops again.
    I do not get a print dialog box from SQLDeveloper using either CTRL-P or File->Print

  • File sharing not working 10.6

    file sharing not working on 10.6

    Rather more information is needed!
    With what are (not) sharing?
    Other computers on a network? (if so, are they all Macs or some Windows?)
    Other Users on the same Mac?

  • Flash file, clicks not working in one environment

    Hi everyone,
    I have produced files using Captivate 2, that have output as .exe. These work perfectly across all of our sites, except one.
    The only issue with the site where the files are not working is:
    - Click box within the Flash file do not progress to the next page
    I have output with 'Playback control' and the users at the site in question are able to progress through along the Playback bar. However, I only placed this in for the purposes of testing the file. The final files need to not have the 'Playback control'.
    Does anyone know what I can do differently, to ensure the click boxes work on this site in question?
    I look forward to hearing from you.
    Ravi Sandhu

    Hi Ravi
    I'm not sure I fully understand your question. You seem to be saying a Click Box isn't working. But you say the "Click Box within the Flash File". I'm not sure if this means you have used Flash to create a button or something that you are trying to use with Captivate or if you simply mean that you have used Captivate to create a SWF, and inside that SWF the Click Box doesn't seem to work.
    What would be helpful is if we could see the project first hand. Are you able to post the .CP file for us to download and view? If that's not possible, what about posting a screen capture of the slide with the issue where we can see the entire timeline and all objects.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
    Från: Mylenium 
    Skickat: den 29 december 2014 16:48
    Till: Tony Bohman
    Ämne:  I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595>

  • CsrAttachmentUploadDiv part attachment is not rendered SP 2013(Attach file in not working for all the list forms)?

    csrAttachmentUploadDiv partattachment  is not rendered SP 2013(Attach file in not working for all the list forms)?
    Ravi
    function ShowPartAttachment() {
    ULSopi:
        if (document.getElementById("part1") == null || typeof document.getElementById("part1") == "undefined") {
            alert(Strings.STS.L_FormMissingPart1_Text);
            return;
        (document.getElementById("part1")).style.display = "none";
        (document.getElementById("partAttachment")).style.display = "block"; //problem here

    Am also facing the similar problem....any iputs are highly appriciated.
    Issue..
    1) Defined the attachment type in IMG.
    2) Added the attachment type "SFREEATTM" by selecting other attributes---> Attachment Types.
    3) Attached the excel file in the design.
    See the screen shot below:
    The Issue is when testing through tcode nwbc in the inbox the attachment tab is not visible after selecting the particular form.
    Please see the screen shot below:
    Did i miss any Configuration?? Please suggest...
    Regards,
    Naveen

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

  • File collaboration not working

    This is still an issue for me and has been for over a week. Latest Safari and the latest Chrome, different emails, they all produce the same result for me.
    Sounds like the same issue that @Quaetapo reported.
    Mac OS X 10.10.3

    I have forked the discussion (from Library collaboration not working to a new forum thread and updated the topic to File collaboration not working.
    Two things to try:
    Clear the browser cache and cookies and see if the error goes away.
    Open the browser's Developer Tools and go to the Network tab. Do you see any 4xx or 5xx errors (usually the call will be colored red).

  • Browse for file/img not working - Win 7

    Browse for file/img not working still - Win 7
    I have tried "run as Admin" and in "XP Compatibility mode" but still no luck fixing this issue in Win 7. Anyone have a potential fix so I can stop wasting time double checking every link/img on new work?
    Thanks!

    Are you referring to this issue?
    Problem selecting local root folder in Vista & Windows 7
    http://forums.adobe.com/thread/478327
    If so, there's no fix yet and not likely to be one.

Maybe you are looking for

  • Program Error- cannot open file? Please help! I lost my whole project!

    When I try to open an animation psd file, I keep getting a box that says my request could not be completed due to a program error. The file is 23.7 MB and I am using a PC.... I at least need to get the file open so i can export the animation.

  • How to transfer old Voice Memos back into Memos on app iPhone?

    I have just upgraded to ios 7 and it has deleted all of my old Voive Memos from my iPhone. I still have them all in my iTunes, but how can i transfer them back into the Voice Memos app on the phone? Whenever I select to import voice memos from iTunes

  • How do I back up photos and video in my iPad?

    Just bought my iPad Air. I installed iTune in my laptop (PC) and would like to back up all the photos and video in my iPad to my computer so that I can free up space. I cannot find way to do it within iTune application. Can you suggest how to backup

  • Missing Text in PDF When Converting from Word

    Has anyone had this problem before?  We have Adobe Acrobat 8 and this has happened twice in the past year.  We have a Word 2003 document then convert it to PDF and a line will be missing from the top of a page in the middle of the document. 

  • Odd optical drive issue

    I have a PowerMac G5 (PowerMac7,3) OS 10.5.8. My problem has existed over multiple operating systems which leads me to believe a hardware issue has arose. My problem: I wish to insert a disk into the optical drive. I press the eject button on the key