Registering Web Applications and accessing common files

If I create 3 web applications and have a seperate folder for common jsps
          that the jsps in these 3 web apps include, how can I access the jsps and js
          in this common folder? The JSP compiler was able to compile. The folders I
          created are all under the applications directory, including the common
          folder. I use the inclide file directive with ../common/scripts.js and the
          compiler could not recognize the location.
          Thanks!
          Kenny
          

          If you application folder like:
          application/
          webApp1/
          webApp2/
          webApp3/
          common/
          You may try /common/scripts.js
          "Kenny Kon" <[email protected]> wrote:
          >If I create 3 web applications and have a seperate folder for common
          >jsps
          >that the jsps in these 3 web apps include, how can I access the jsps
          >and js
          >in this common folder? The JSP compiler was able to compile. The folders
          >I
          >created are all under the applications directory, including the common
          >folder. I use the inclide file directive with ../common/scripts.js and
          >the
          >compiler could not recognize the location.
          >
          >Thanks!
          >
          >Kenny
          >
          >
          

Similar Messages

  • How to disable silverlight "Do you want to allow this Web application to access your clipboard?" popup window, when tyring to right click and paste?

    Hi,
    When im trying to right click and choose paste. im getting a dialog box.. "Do you want to allow this Web application to access your clipboard?". How do i disable it for all users?
    i found that, we can able to disable it for only one user, if we create a 'Clipboard' DWORD key with value '11' in the registry path: HKEY_USERS -> S-1-5-21-159.. -> Software -> AppDataFlow -> Software -> Microsoft ->
    Silverlight -> [website url]
    Even, i tried
    Internet Options> Security> Internet Zone> Custom Level> Scripting section> Allow Programmatic clipboard access> Enable. But its not working.
    Please let me know how to disable that popup for all users?

    It works fine on my machine here which is win7 pro.
    Your options are limited
    You know one way - the registry entry.
    The option:
    Internet Options> Security> Internet Zone> Custom Level> Scripting section> Allow Programmatic clipboard access> Enable.
    Has been changed by later versions of Internet explorer tightening security.
    I guess you could try:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    Bit difficult for me to test at the moment, but that could work.
    If that's no good.
    The alternative is to give the app elevated trust.
    This is a PITA because you have to obtain a security cert and sign the xap with it.
    They expire as well and you then need to buy a new one.
    Costs several hundred quid a year ( this is one time cost rather than per user ).
    Hope that helps.
    Recent Technet articles:
    Property List Editing   ;  
    Dynamic XAML

  • Web application and desktop application?

    Hi everyone,
    I am new to this platform.I have a basic doubts that whats the difference between developing application in flex as a web application and desktop application from programming point of view?Can we use same code in both cases?
    Please guide me....
    Thanks

    Hi and welcome,
    The main difference between a web application and a desktop application is that web applications do not have access and can't manipulate your local system ( you can't open a window that displays all your local files, you can't delete, rename, edit local files and so on ). Obviously, this is just one difference, there are many more ( the best would be if you google for "web aplication vs desktop application" because the same rules apply for 99% if not all the platforms you can find out there ).
    Desktop applications can have full control of your local system ( obviously, we have to take in consideration the platform we are using because since AIR is quite new in the desktop application field it is also more limited than other languages that have been used successfully to create desktop applications for years and year; like ce C# or C++ and so on ).
    Another important difference is that desktop applications usually need to be installed in order to function where on the other hand, web applications can run in the browser without you having to install the aplication you are about to view on your computer ( in some cases, like of the Flash and Flex platforms, you only require a "special player" that can display the content you are trying to access... for Flash and Flex applications you need the Flash Player installed for your browser ).
    So, before jumping into a project/platform you need to know your target. If you goal is to offer a fast, easy to access and no install required application to your users then you'll usually go with a web application. If your application needs to work with local files, maybe local databases, or it needs more control over the user's PC and so on, then you'll most likely go with a desktop application.
    With kind regards,
    Barna Biro

  • Web Application and Serialization

    Hi, i have a problem with a web application that is running on an Application server (BEA WebLogic 7.0). I have only the war file of the web application and i must know if in this war there is a class that is not serializable.
    How can i find it ? Is there a tool that can help me to find not serializable classes ?
    Thanks.
    claudiozx2006

    One way to do that is to decompile Java classes with Java decompiler and see which one doesn't implement Serializable interface. Here is a link to a good decompiler: http://www.kpdus.com/jad.html

  • Web application and site collection not accessibe

    I have created a web application and a site collection. But when I tried to access the site by browser on the server the page cannot be displayed or the server cannot be found. What should I configure? Please say by detailed steps.

    I created a host header extranet.xxx.xx and alternate access mapping is ok. But still I'm not able to access the site by http://server name:port no. It gives The web page cannot be found or this web page can't be displayed.
    Now when I try with Firefox with http://server name:port no, it gives
    "Bad request - Invalid hostname
    HTTP Error 400. The hostname is invalid."
    More: if I go to Alternate Access Mappings > Add Internal URL:s > Save is grayed out.
    You have two options,
    Option 1 : Accessing the web application without any host header name and  with the port no you have created.  (ex: (http://server1:5500 )
    Option 2. Accessing it with the host header name (ex:http://mywebapp.contoso.com)  you have created for which you need to create a DNS and set an AAM accordingly in the corresponding zone.
    For the option no 1. you need to have a host header in IIS which would be created by default while you create a web application and it should be like this unless you did nit change it. http (Type)---blank host name--All Unassigned in the IP section---and
    the port no in which you have created.
    PS : If you have one more IP address in the server, its good to set the same IP address which is set for server for the name resolution to happen properly.
    If you have n't specified the hostheader while creating the web application, then you need to add it manually with the existing one which is there for option no 1. It should be added as below. http---Mywebapp.contoso.com--IP address in which you have created
    the DNS and Port 80.
    If AAM save is grayed out, check it from some other browser. Also Hostname invalid clearly implies that there is some problem with the name resolution. Check whether you could ping the webapplication from the server where you are trying to access it.
    Veeramani.S

  • Web application and Scanner

    Web application (ADF-application) and Scanner (device that optically scans images, printed text)
    how to implement a scan from a web application and the ability to preview the scanned document (in the ADF-application) before uploading to the server.

    Oracle has a product, which I worked on, for imaging. It may or may not be what you need.
    http://www.oracle.com/technetwork/middleware/webcenter/content/index-090652.html

  • There is an inconsistency between the authentication mode of target web application and the source web application after migrating to claims

    I've had my farm upgraded from SP2010 to SP2013 for over 6 months now and all is well, however, I was refreshing my staging environment from production and I noticed that one of the databases still shows these errors when I run test-spcontentdatabase:
    Category             : Configuration
    Error             : False
    UpgradeBlocking : False
    Message           : The [SharePoint Web App] web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against
    a windows classic authentication mode.
    Remedy              : There is an inconsistency between the authentication mode of target web application and the source web application. Ensure that the authentication mode setting in upgraded web application is the
    same as what you had in previous SharePoint 2010 web application. Refer to the link "http://go.microsoft.com/fwlink/?LinkId=236865" for more information.
    This doesn't make sense considering I converted the production web application to claims during the upgrade and then verified all sites were working with claims logins. I also verified that existing AD user identities were converted to claims by checking out
    the database tables. Yet test-spcontentdatabase still thinks there is a mismatch here.
    My farm is SP1 and no further CUs. The point of this particular refresh is so I can update to the November CUs in my test farm. Anyone else see this? Seems like it's a bug/safe to ignore because my stuff is working.
    Thanks,
    Aaron

    See:
    http://thesharepointfarm.com/2014/11/test-spcontentdatabase-classic-to-claims-conversion/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • AOL mail not updating. Spinning wheel just keep spinning. It hasn't updated in 5 days. I can use the AOL web site and access it on my android phone, but not on my MacBook Pro. OS 10.6.8

    AOL mail not updating. Spinning wheel just keeps spinning. It hasn't updated in 5 days. G-mail updates normally. I can use the AOL web site and access it on my android phone too, but not on my MacBook Pro. OS 10.6.8

    Hello robe427,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where you are unable to receive email from one of your accounts, please follow the steps in the article linked to below.
    Mac Basics: Use Mail on your Mac
    Take care,
    Alex H.

  • Safari permanently disallow web application from access location data

    I have a web application that access user's location using the latest Safari's geolocation API. I have accidentially click "don't allow" when asked if it should be allowed to use location service. This seems to ban the web site permanently. I cannot find any way to reset this.
    I have tried General Setting > Reset > Rest Location Warnings. After this when I return, Safari ask:
    Safari would like to use your location?
    [Don't Allow] [ok]
    This seems to apply to Safari as a whole. For example google can access my location. But my particularly application is still banned. I also tried to clear history/cache/cookie. It still does not do it. It seems Safari is keep a blacklist in some place that is not resettable.

    DaVBMan wrote:
    I have always noticed that web pages (Safari) would never remember a site, only apps did.
    But with that said, there is a place in settings to Reset Location Warnings. However this will reset every location warning (so all apps will ask you again).
    How do you know it is accessing your location? As I mentioned, any page I ever hit that wanted to, always keeps asking.
    Ah, I didn't know to look in Reset in Settings. I was just looking in the Safari section. Selecting that did indeed make Safari prompt me again.
    I know it is accessing my location because the page has a visual indication of when it has successfully read the location.
    Nathan C wrote:
    In addition to reseting locations services as previously suggested, it is
    possible for web pages to guess your location based on other information. For
    example whenever you access a webpage that includes your IP address. The IP
    address is often assigned a reverse lookup by whomever is providing the data
    connection. That reverse lookup may include location information such as city,
    state, country, etc.
    In this case, I wrote the page, so I know that it is attempting to access the location. I wanted to test the page again without location access being enabled.
    Thanks,
    Cameron

  • Can i use a pendrive with the ipad mini 2 and access the files in the pendrive

    can i use a pendrive with the ipad mini 2 and access the files in the pendrive

    I've literally had a 50/50 success rate with drives. But even if you get it to work, all you'll be able to access are photos or videos that follow a very strict naming convention. You cannot access documents or music, and you cannot write anything off the iPad onto a flash drive.
    If you want to access photos or videos, you'll get more reliable results with an SD card than fighting with a USB drive.

  • SPWebConfigModifications Duplicate entries, applying to all Web Applications and not removing entries

    Hi,
    Hopefully someone can offer some advice, I may be missing something obvious here.
    I'm currently trying to write a feature event receiver to apply web.config modifications that are required by a recent project. 
    The feature is web application scoped & it doesn't activate by default on deployment, currently testing with a very small addition isn't working at all, I've followed numerous posts about duplicate entries & items being removed, none of which have
    helped.
    Here is my code;
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
                    SPWebConfigModification Modification = new SPWebConfigModification();
                    Modification.Owner = "ConfigUpdater";
                    Modification.Path = "configuration/appSettings";
                    Modification.Name = "add[@key='Test']";
                    Modification.Sequence = 0;
                    Modification.Value = "<add key='Test' value='Server=TestServer;Database=TestDB;Trusted_Connection=True;' />";
                    Modification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode;
                    if (!webApp.WebConfigModifications.Contains(Modification))
                        webApp.WebConfigModifications.Add(Modification);
                        webApp.Update();
                        webApp.WebService.ApplyWebConfigModifications();
            // Uncomment the method below to handle the event raised before a feature is deactivated.
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
                Collection<SPWebConfigModification> modsCollection = webApp.WebConfigModifications;
                int count = modsCollection.Count;
                for (int i = count - 1; i >= 0; i--)
                    SPWebConfigModification mod = modsCollection[i];
                    if (mod.Owner == "ConfigUpdater")
                        modsCollection.Remove(mod);                   
                webApp.Update();
                webApp.WebService.ApplyWebConfigModifications();          
    Upon activation on 1 web app, the entry gets added twice to the web.config of every web application in the farm & upon deactivation the entries remain in the web.config files.
    On activation, after this line, webApp.WebConfigModifications.Add(Modification); the webApp is updated to include the entry & only once, however 2 entries for it appear in the web.config files & as mentioned for every web application.
    On deactivation, after updating the web app, the modification is removed, however it remains in the web.config files.
    I'm wondering if the code actually works, as I can't see anything wrong & if there is some caching occurring somewhere which is applying the extra line/s upon calling ApplyWebConfigModifications.
    Any help on this would be much appreciated.
    Thanks,
    James

    Hi James,
    Per my understanding, there is an entry gets added twice to the web.config file of every web application in the FeatureActivated event.
    As a common practice, I suggest you debug your code to see how it works during the process, it will provide more information for a better troubleshooting.
    Also, you can test the code in a Console Application to see if it will work as expected.
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Web server cannot access .jar file?

    Hi all,
    I'm using NetBeans 4.1 IDE with the bundled Tomcat 5.5.7 on Windows XP sp2.
    I have a .jar file which I must make available for the web server (not only for my web app). So I did the following:
    Added a CLASSPATH variable to the user environment (pointing to my .jar file),
    Shutdown Tomcat,
    Restarted the IDE (because it is responsible for launching Tomcat, so Tomcat inherits its environment vairables from the IDE),
    and finally ran my web-app.
    The result: the web app could not find classes from the .jar file.
    However, if I copy the .jar to the server's common/lib directory, everything's ok!
    Why? I'm sure I don't have to put .jars in common/lib in order to make them visible by the server! I've read that adding them to the CLASSPATH is just as good solution... what is going on?

    Tomcat has its own ideas about classpath. In particular it ignores the system classpath, so that each web application can have its own seperate one.
    Jar files should normally live in the /WEB-INF/lib directory of your application.
    If you want to share them across multiple apps, use the /shared/lib directory.
    /common/lib should not normally be used except for database drivers when using tomcats JNDI datasources.
    Cheers,
    evnafets

  • Web application and web.xml

    i have a web application consisting of 1 servlet and 5 jsps.
    the start point would be index.jsp
    i use firmwide login page. after login, i want the browser to display index.jsp page.
    In web.xml, i have defined -
    <welcome-file-list>          <welcome-file>/jsp/index.jsp</welcome-file>     </welcome-file-list>       <servlet>        <servlet-name>UtilitiesServlet</servlet-name>        <servlet-class>com.gs.fw.sox404.utilities.UtilitiesServlet</servlet-class>             <init-param>             <param-name>util-log4j-init-file</param-name>             <param-value>/WEB-INF/classes/util_log4j.properties</param-value>          </init-param>        <load-on-startup>1</load-on-startup>    </servlet>     <servlet-mapping>        <servlet-name>UtilitiesServlet</servlet-name>        <url-pattern>/UtilitiesServlet</url-pattern>    </servlet-mapping>if i define it as just index.jsp in the welcome file list, after successful login, it displays the dir structure of the web app.
    if i define it as jsp/index.jsp, then in some of the pages, it tries to find the servlet inside jsp folder.
    What would be the best way to get around this?

    Well, yes, it's not able to find it because you've not understood the mechanism of how it works clearly. You have to put your welcome file under every directory you want it to be used from. Like I said, it's not a path, it's a filename. So if the container sees that your request URL is for a directory, it'll look for the welcome files from the welcome file list, one by one, in the order of declaration. Whichever one it finds first, it'll serve that. If it doesn't find any, then it'll either give a 404 or a directory listing depending on the server and it's settings.
    So your problem is that you've put your index.jsp in your JSP folder but expect it to be served for all URLs. That won't happen, you'll have to put one file named index.jsp into every directory. The reasoning is pretty simple, what if you want different behaviour for each folder?
    This should fix your problem :)
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Web Application and Custom JavaMail Providers

    We have a web application that uses custom JavaMail Providers on Weblogic 7.0.
    The structure of the WAR file is as follows:
    |-WEB-INF
    |-lib
    |-activation.jar
    |-mail.jar (as provided by Sun for JavaMail 1.2)
    |-custommail.jar (custom JavaMail providers)
    |-... (other jars for web application).
    Now the JavaMail Session object cannot find the custom providers as it appears the Web Container is loading the JavaMail classes (Session) from the WebLogic.jar instead of mail.jar from the web application's lib directory.
    How can I configure the web application to load classes from the mail.jar in the applications lib directory?.
    This configuration works on Tomcat 4.0.4.
    Vikash

    This is standard behavior in WebLogic - the child classloader (the
    classloader for the web applicaiton) will always
    delegate to the parent classloader (the system classloader), and so it will
    alwyas find the ones included in weblogic.jar
    first.
    You can get around this in two ways:
    a) Put the classes in weblogic's classpath (Before weblogic.jar)
    b) You can set the "Prefer Web-Inf Classes" attribute of a web application
    (see Admin console).
    In this case the web application classloader will not delegate, but
    always look locally first.
    Just be careful in this scenario not to pass an object created by the
    web applicatino classloader to say
    an EJB. ie. don't pass a mail session object, as then you'll get a
    classcastexception.
    Regards,
    Jon

  • Java web application and SSO in Portal

    I have successfuly deployed an EAR file(Servlet/JSP) to my OC4J. In my deployment descriptor, I have added security-constraints tag to implement authenticaion using LDAP. In the process of deploying, I have also specified the LDAP associated to my OC4J as my user manager. This in effect adds up a jazn auth method=sso in orion-application.xml after deployment.
    My application, when accessed independently as http://hostname:port/app/index.jsp, is working fine. Login page pops up when the user hasn't logged in yet and redirects to index.jsp when authenticated.
    however, when I added this exact link to oracle portal so that everytime a user logs into the portal, he/she will be automatically logged-in to my application, it turns out that it isn't recognizing the logged user and keeps flashing an page cannot be accessed error.
    Any idea what to do with this?

    have you tried a javascript forum?

Maybe you are looking for

  • Cover Flow Sort Problem To Do With Compilations?

    Hi, I just had a thought. Do you think the problem we're having with Cover Flow on the iPod Nano is to do with "Part of a compilation" not being ticked in iTunes? If you bought one movie soundtrack Album that has a different Artist for each track, sh

  • Color is Wrong in Preview / Quick Look when viewing photographs

    Hi All, I have a problem in that all my photos and image files look a lot more saturated in Leopard Preview / Quick Look, with much warmer hue, tint and color temp, then they do in either iPhoto, Aperture, Photoshop Elements, Safari (or Firefox) when

  • Is anyone having problems with the iPhone 5 motion sensors?

    I having a problem with my phone when it comes to reading movement, the compass doesn't work when it asks to tilt phone to calibrate and in some games it doesn't read when I tilt the phone. I read that apple had a lot of customer complaints about bad

  • ITunes Emergency 9.0.2

    Here's the situation: I spend a lot of time managing my iTunes library, be it buying new music at Best Buy (albums are getting cheaper these days) and putting cover art, years, etc. on them or managing podcasts, subcribing, unsubcribing and the like.

  • Can't add "os.name" and "os.bit.length" properties

    J2ee engine can't start, errors occur. jvm_bootstrap.out         at com.sap.engine.bootstrap.Bootstrap.makeUpdate(Bootstrap.java:831)         at com.sap.engine.bootstrap.Bootstrap.main(Bootstrap.java:815)         at sun.reflect.NativeMethodAccessorIm