What is the current path before the login for file (image)?

Hello

Once I login, I get the background images providing paths relative to the tag in the page, as follows:
inlineStyle="background-image:url('Images/welcome.jpg');
that points to:
C:\Myproject\public_html\Images\welcome.jpg

Note that I have not specified any root "/" in the above path. This works.

Now the problem is before sign you, it's in the login page. Here, for some reason, the image above is not find and load.

The curious thing is that once I am logged in, if I go back to the opening page of initial session with the back button of the browser, now the image is found and loaded! Of course, now the only difference is that I don't have a current session, since I am already connected.

For this reason, I think that I specify an another relative path, since the paths vary depending on the State of the session (no current session vs session) or perhaps paths must be absolute (but different from/Images/thanks, since it does not either)...

You have an idea?

Your web.xml would be this tag in this case that protects the unauthorized root access-



allPages
/*


valid users

By https://blogs.oracle.com/jdevotnharvest/entry/solving_jdeveloper_11gr2_issue_with
Protect the path Java EE application root against unauthenticated access means however also that the resources of the web such as photos or stylesheets or deferred loaded JavaScript libraries.
are blocked until the user is authenticated. For the same reason clients often report absent from the images on their web login pages.

Or you can remove the tag above if you don't really care about unauthorized access or add the following line to your web.xml file
**
images*.
/images/images*.
*
*
**
valid users
*
*
**

Published by: detrilles on May 18, 2012 Sudipto 17:16

Tags: Java

Similar Questions

  • What is the deadline for no connection attempts?

    Original title: access attempts.

    What is the deadline for no connection attempts? If my system is configured to block after 3 attempts, how much time must elapse before the meter is "reset"? For example, I am trying to login with an incorrect password twice, but I don't want to lock the machine. How long should I wait to try again? It is a system that is part of a network (2012 server and active directory).

    Thank you!

    It is easy to determine.

    Open a command prompt window

    Start-> all programs-> Accessories-> command prompt

    Then, enter the following command:

    net accounts

    In the output that follows, the 'locking threshold' is the number of missed passwords allowed before the lockout and the ' locking ' is the number of minutes that you will be locked, and the "Lockout observation window" is the time window in which there is lack of passwords.

    HTH,

    JW

  • What is the procedure for upgrading Thunderbird ESR 17.0.7 at 31.6 on Mac OSX 10.10.2?

    What is the procedure for upgrading from Thunderbird ESR 17.0.7 at 31.6 (last public version) on Mac OSX 10.10.2?

    Is it as simple as install new version and then run to see all local folders and my email and its folders from IMAP to my company as before the upgrade?

    Thank you

    Create a full backup of your Thunderbird profiles folder.
    Uninstall the old version of ESR.
    Download the latest version from https://www.mozilla.org/en-US/thunderbird/all.html and install it.

  • What is the recommended for El Capitan recovery process?

    What is the recommended for El Capitan recovery process?

    I just upgraded directly from Mountain Lion, and I see that my recovery disc has disappeared.  My recovery disk wizard is only good for Lion and Mountain Lion.  I searched Apple.com and found a complicated process by which I could use the Console and create a bootdisk with the option reinstall, but I can't believe that this is the recommended option for a common user?

    So is time machine bygones?  I noticed that it is dimmed in the Menu bar?

    Certainly, you can restore El Capitan as you would with any other version of OS X - using the HD Recovery. I have no idea why your Recovery HD disappeared. Usually this would cause by user error. However, you can create a standalone install OS X on a USB FlashDrive for emergency use. This has been an option because at least Mavericks:

    Do your own installation of El Capitan using the El Capitan tool flash drive:

    You can create an installer of flash of El Capitan via the Terminal drive. El Capitan has its own manufacturer Installer integrated that you use via the Terminal:

    You'll need a freshly partitioned and formatted at least 8GBs. USB flash drive leave the name of the flash drive on the system by default, "Untitled." Do not change this name. Wait as the full process that will take some time.

    Open the Terminal in the Utilities folder. Copy and paste the following line in its entirety in the Terminal window.

    sudo/Applications/Install\ OS\ El\ Capitan.app/Contents/Resources/createinstallmedia--volume/Volumes/Untitled--applicationpath X\ "/ Applications/install OS X El Capitan.app.

    Press RETURN, enter the admin password (will not resonate to the window) then press RETURN again.

    You must have setup in your Applications folder or change the paths in the command line above.

    You can do the same thing for Yosemite by making the appropriate substitute for the installer in the above command line:

    Make your own Yosemite flash Installer drive using the tool of Yosemite:

    You can create an installer of the Yosemite via the Terminal flash drive. Yosemite has its own manufacturer Installer integrated that you use via the Terminal:

    You'll need a freshly partitioned and formatted at least 8GBs. USB flash drive leave the name of the flash drive on the system by default, "Untitled." Do not change this name. Wait as the full process that will take some time.

    Open the Terminal in the Utilities folder. Copy and paste the following line in its entirety in the Terminal window.

    sudo/Applications/Install\ OS\ Yosemite.app/Contents/Resources/createinstallmedia--volume/Volumes/Untitled--applicationpath/Applications/Install\ OS\ Yosemite.app X\ X\

    Press RETURN, enter the admin password (will not resonate to the window) then press RETURN again.

    You must have setup in your Applications folder or change the paths in the command line above.

    In addition, to Yosemite and earlier you can try using DiskMaker X.

  • What is PXE - 61 media test failed error and the error PXE - MOF? What is the solution for this error? It's a lenovo with windows desktop

    I have a lenovo computer. I began as routine but unfortunately it says error:-what is media test failed error PXE - 61 and the error PXE - MOF? What is the solution for this error? It's a lenovo with windows desktop computer? How do I prevent this.

    Kala

    Hello Mohan,

    ·         You did changes to the computer before the show?

    These errors often occur if there are incorrect BIOS (Basic Input\Output System) settings.

    Method 1: Check if the computer startup options are changed in the BIOS. You can set the hard drive as the first boot device. In addition, make sure that this option "Wake on LAN" or one similar to it is off.

    Method 2: Load default BIOS (Basic Input\Output System) settings, and then restart the computer.

     

    Important : Change/update BIOS can be a complicated process, and if an error occurs, your computer could be rendered inoperative. Be sure to observe the instructions of the manufacturer.

  • What are the rules for password of microsoft?

    I have many devices, including some microsoft and some apple or android.  I would like to use the same password to connect to each of them.  I gave the password to my spouse in case something happens to me.  If I have multiple passwords, it write them and thus give access to anyone who breaks into the House and steal my computer. She knows the password that I use on most of my devices.  When I tried to change the password on a microsoft computer I, hotmail won't let me use this password because it had been used before.  When Microsoft going to outlook.com hotmail.com, he changed the password on my main computer to the other computer.  I want to change my password from microsoft (formerly hotmail) to the same as I had before.  What are the rules for this or how I can do?

    Hello

    It is forbidden to reuse previous passwords, for security reasons.

    http://answers.Microsoft.com/en-us/outlook_com/Forum/osecurity-OSafe/how-do-i-change-my-password-back-to-the-old-one/209ad491-AAAF-441b-94a0-703af6aad93a

    See you soon.

  • What is the hierarchy for running reports?

    Hello world

    Can someone tell me what is the hierarchy for running reports as fact when the query data model is executed, when groups (Group of columns, the place holders etc. within a group of data model is executed), form setting etc is executed.

    Thank you
    Gerard

    If there are two absolutely independent querries, then I can just tell.
    If two querries are related, then, that the other is linked is executed first.
    But before any two querry run the beforereport, the beforeparameterform and after triggers parameterform.
    So, the best way to ensure that something is executed first is putting in the afterpform trigger.
    Do not count the trigger on afterreport.

  • I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    Keep the computer plugged in whenever possible.

    If you keep the computer always connected, make sure that at least twice a month

    Run it on battery until battery charge level falls to about 40-50%.

    Please don't completely discharge the battery. Discharge the battery completely will reduce wear and tear on the battery.

    For more information:

    Section: To optimize the battery life

    http://support.Apple.com/en-us/HT204054

    Citing at the bottom of the linked article.

    "The question is often asked:" should I disconnect my laptop from the mains when not in service? Under normal circumstances it should not be necessary because as soon as the lithium-ion battery is full, a properly functioning charger will stop the load and load the pad will only engage when the battery voltage drops to a low level. Most of the users do not remove AC power, and this practice is safe. »

    http://BatteryUniversity.com/learn/article/bu_808c_what_the_user_can_do

  • I just bought a keybboard ultra thin logitech for iPad air. It has a port for a small cable, but no cable in the box. What is the port for, and what don't get me?

    I just bought a keybboard ultra thin logitech for iPad air. It has a port for a small cable, but no cable in the box. What is the port for, and what don't get me?

    Have you tried the Logitech support site?

  • Photo, what are the criteria for images selected from the collections of photos?

    With Photo on my Mac when I'm in the view "of the years', I see all my photos. When I switch to 'Moments' I see all the photos, especially older. When I go to "collections", then I self pictures? What are the criteria for images selected in 'collections' of photos? Thank you

    You should see all the photos in the Moments, the years, Collections, unless you have the "Summarize" option enabled in Photos > Preferences > General.  Then some pictures will be omitted, but the rules are not documented.

  • What is the Code for error AHT 4HDD/11 / 40000004:SATA (0,0)

    What is the Code for error AHT 4HDD/11 / 40000004:SATA (0,0)

    This means you have a hardware problem related to the hard drive. The disk may be corrupted or fails and must be replaced. Save your file as soon as POSSIBLE. If the player does not have little time for the backup.

  • What is the workaround for the Smart keyboard ESC key?

    What is the workaround for the Smart keyboard ESC key?

    For what purposes? In any application, or even the home screen, hold down the "Command" key to view the list of keyboard shortcuts that work specifically with this app.

    Thank you for using communities of support from Apple!

    Ryan

    iPad Keyboard Pro & Smart, iOS 9.2

  • What is the difference between files? examples; PDF, http, wps. Why is there a manyand then why do you need different programs to open?

    Original title: files

    What is the difference between files? examples; PDF, http, wps. Why is there a manyand then why do you need different programs to open?

    On Tuesday, February 7, 2012 16:28:19 + 0000, RonaldMatte wrote:

    What is the difference between files? examples; PDF, http, wps. Why is there a manyand then why do you need different programs to open?

    Each file type is in a different format.  The formats are different
    essentially for two reasons:

    1. the files contain any other type of information. For
    example, an mp3 file contains a music and a xls file contains a
    worksheet. The music and spreadsheets are very different things and one
    a unique type of guy would not work for both.

    2. There is also the example of the types of files that are very different, even
    Although basically they both contain the same type of data. For example,.
    a doc file is a file created by Microsoft Word processor (or
    some compatible programs) and a wpd file is a text file
    created by WordPerfect. This is because Word and WordPerfect are two
    very different programs, with very different characteristics. Designers
    and authors of each of the programs designed for a type of file that would be
    works very well with their program.

    Ken Blake, Microsoft MVP (Windows desktop experience) since 2003
    Please reply to the newsgroup

  • What is the color for crimping combination?

    What is the color for crimping combination

    ?

    Try here:

    http://www.Google.com/search?hl=en&source=HP&q=RJ45+color+code&GBV=2&OQ=RJ45+color&AQ=0&AQI=G10&aql=&gs_sm=e&gs_upl=7187l9046l0l15328l10l9l0l2l2l0l218l842l5.0.2l7l0

    Google is your friend.

    Steve

  • What is the deadline for KITKAT to be released to the Acer ICONIA A1 - 810?

    What is the deadline for KITKAT to be released to the Acer ICONIA A1 - 810?

    On some areas is already available, if you don't have the update yet... have to wait.

Maybe you are looking for