How to include external .js file into .ear file using NetBean 5.5.1?

is it possible to include external .js file into .ear file using NetBean 5.5.1? if not, then where should I placed the external .js file and how to write the src="xxx" element? (that is , how to write the path of "xxx"?)
I am using JBOSS 4.2.2 GA as server
thx!!

Even this is also not possible because, the code in that package is developed by DWR and i am just adding it to my lib folder and importing the respective classes. In the same manner i need to include the *.js* file in the JSP.It took me about 3 minutes reading through the [DWR Getting Started|http://getahead.org/dwr/getstarted] page to learn that you don't have to do any of that. Perhaps you should read that page?

Similar Messages

  • How to include external JavaScript files

    Hello All,
    i'm wondering haow can i include externel JavaScrip files, there is an clip-example with a function in the same JSP file
    but not how to include a file?
    <body>
    <script language='JavaScript' src="menu/menu.js'></script>
    If some one has a clip i would appreciate.
    Thanks
    Gino

    <script src="resources/myscript.js"></script>
    I did this exact thing in my jsp but it did not work, nothing popped up.
    When I tried replacing it with:
    <script language="JavaScript" type="text/javascript"><![CDATA[
    function postMessage(message) {
    alert(message);
    ]]></script>
    It worked. Can someone tell me why? Can't i refer to javascript files this way?

  • How to include external javascript file in an html

    hello
    i've an html file placed in apache/webapps/test folder this html file includes an external javascript file placed at same level
    i'm includind the file as
    <script src="file1.js"></script>but the file does not gets included
    but when the sam folder "test" is paste outside apache the html file including the external file runs properly.
    Thank You

    flounder wrote:
    cotton.m wrote:
    What's really pathetic is that this is your third cross post on this same stupid off topic topic.
    You are really a dumb f&#117;ck you know that?If they knew that they were a dumb f&#117;ck then they wouldn't be a dumb f&#117;ck!That's a logical and reasonable conclusion. Therefore I very much doubt that the OP is capable of it.
    Hmmm this is interesting. It now shows the entity escapes rather than their values when you quote.

  • How to include external js file in jsp page??

    Hiii...i am new bie in jdeveloper....
    and trying to add external js file to a jsp page...
    the adress of javascript file is [ Web Content/WEB-INF/jsp/script/test.js ]
    adress of jsp page is [ Web Content/WEB-INF/jsp/WelcomePage.jsp ]
    so what source address of js file i have to give in jsp page.....

    Hi,
    In order for the jsp page to get the js file, it has to be accessible via an http request, and files in WEB-INF aren't. You'll have to put the js file in a different location or provide another way to get the file, such as via a servlet request.
    This is the way to do it. I don't see a use case in that adding a JS file to WEB-IF provids any benefit as the sources could be looked up from the browser anyway. So if your intention is to secure the JS sources, this wont work.
    Frank

  • How to include External .JS File in .aspx and .ascx page???

    This is my Code::
    .aspx Code:::
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calculator_Using_UserControl_And_Js.aspx.cs" Inherits="Calculator_Using_UserControl_And_Js" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
     <title></title>
      <script src="/JS/JavaScript.js" type="text/javascript"></script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div align="center"> 
            <p style="color:brown">Welcome to User Control Page</p> 
            A:<asp:TextBox ID="tbA" runat="server"></asp:TextBox>
            B:<asp:TextBox ID="tbB" runat="server"></asp:TextBox>
            <asp:Button ID="btnAdd" runat="server" Text="ADD" OnClientClick="return fnAdd()"/>
            <asp:Button ID="btnSub" runat="server" Text="SUB" OnClientClick="return fnSub()" />
        </div>
        </form>
    </body>
    </html>
    .JS code
    function fnAdd() {
        var v1 = document.getElementById(tbA).value;
        var v2 = document.getElementById(tbB).value;
        var res = parseInt(v1) + parseInt(v2);
        alert(res);
        return false;
    function fnSub() 
        var A = document.getElementById(tbA).value;
        var B = document.getElementById(tbB).value;
        var res = parseInt(A) - parseInt(B);
        alert(res);
        return false;
    I 've tried with the following methods but no use...
    <script type="text/javascript" src="<%= ResolveUrl ("~/Scripts/MyScriptFile.js") %>"></script>
    <script type="text/javascript" src="../JScript.js"></script>
    <script src="javascript.js" ></script>
    Thanks & Regards RAJENDRAN M

    You can write JS function as follows:
    function fnAdd(numberA,numberB,totalT) {
    var v1 = document.getElementById(numberA).value;
    var v2 = document.getElementById(numberB).value;
    var total = parseInt(v1) + parseInt(v2);
    document.getElementById(totalT).value = total;
    return false;
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <script src="javascript.js"></script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    A: <asp:TextBox ID="numberA" runat="server"></asp:TextBox><br />
    B: <asp:TextBox ID="numberB" runat="server"></asp:TextBox><br />
    T: <asp:TextBox ID="totalT" runat="server"></asp:TextBox><br />
    <asp:Button ID="btnAdd" runat="server" Text="Add" OnClientClick="return fnAdd('numberA','numberB','totalT');" />
    </div>
    </form>
    </body>
    </html>
    And you can do the same for fnSub

  • How to include external files in JSP

    hi,
    How to include external files like image or javascript in to jsp pages.
    I am using MVC frame work. So i have to use request dispatcher. While calling the pages trough dispatcher the external files are missing from the output. Also am using tomcat as server,web.xml(deployment descriptor ) is also configured.
    regards
    sree

    When you use the request dispatcher, the relative path for all your ressources becomes the relative path of your calling serlvet and not the JSP/servlet that you call. Make sure to use the full relative path such as:
    /PATH_TO_YOUR_DIRECTORY/myRessource.ext
    NOT
    SOME_DIRECTORY/myRessource.ext
    Jeff

  • How to include several PDF documents into just one file?

    I have a Word document with 6 pages that I saved in PDF.
    I wanted to transform the entire document in JPEG (JPG) immage, so that I could use it in other tools, such as Facebook for example.
    The problem is that using Adobe Photoshop it opens and saves page by page.
    Can you give me s solution or hint?
    Flavio
    [email protected]

    Thank you!
    I already saved all pages as .pdf w/ Acrobat and have all 6 pages saved in
    .jpg, using Photoshop.
    Problem is that I want to post the whole text in my Facebook page, and to
    have it in six pieces is not quite readable...
    Thanks anyway and have a joyful Xmas!
    2011/12/24 try67 <[email protected]>
       Re: How to include several PDF documents into just one file?  created
    by try67 <http://forums.adobe.com/people/try67> in Adobe Reader - View
    the full discussion <http://forums.adobe.com/message/4102594#4102594>

  • How to include a KB Update into a WIM in order to point to the WIM when using DISM (details inside)?

    Hi, I was told in another of the forums that my issue
    is best suited for the TechNet audience.  Previously, I posted it here: http://answers.microsoft.com/en-us/windows/forum/windows8_1-system/how-to-include-a-kb-update-into-a-wim-in-order-to/e7015076-b4a9-4862-a73b-6c58b4c82461?tm=1409598696763
    I've been struggling to fix a corrupted file.  
    Context:  I feel that something is not right with the computer, so I started poking around.
    I used "sfc /scannow" from an elevated command prompt and the result was: 
    Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log <var style="border:0px;margin:0px;padding:0px;vertical-align:top;-webkit-font-smoothing:antialiased;">%WinDir%</var>\Logs\CBS\CBS.log.
    I looked in the log.  This message appears 4 times:
    Cannot repair member file [l:36{18}]"Amd64\CNBJ2530.DPB" of prncacla.inf, Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate",
    TypeName neutral, PublicKey neutral in the store, hash mismatch
    There is also the following message:
    This component was referenced by [l:186{93}]"Microsoft-Windows-Printer-Drivers-Package~31bf3856ad364e35~amd64~~6.3.9600.16384.INF_prncacla"
    I'm not positive what to do next, but I have been led to believe the problem is that Flash files in version 6.3.9600.16407 are corrupted, that I need to find which KB updates Flash to this version, download the file, add it to a new WIM, and point
    to it when using DISM.  I'm not positive this is correct, but it was suggested.
    I downloaded the KB update: kb2889543, but I do not know how to add it to a new WIM or what the repercussions of doing so will be (e.g. Will I lose everything and have to restore my documents, etc from my external drive by doing this?).  
    So, the question is: How can I include a KB Update into a WIM and tell me what the result will be when once I do and point to it when using DISM?
    Secondarily, if this is a bad way to move forward with the issue, would some kind soul offer sage advise on how to move forward with resolving the original issue?

    Hi TTQSTTQS,
    As you mentioned in the answers forum, when run  the command DISM /Online /Cleanup-Image /RestoreHealth,  we received the error message “The source files could not be downloaded. Use the "source" option to specify the
    location of the files that are required to restore the feature”.
    When run the command Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess, we met the same error message.
    I think there are some mistakes in the source setting, so we meet the same error messages.
    As I mentioned in the last reply, we need a mounted image as a repair source, and then use this path.
    We need to configure a Windows repair source. Please refer to the following article.
    http://technet.microsoft.com/en-us/library/hh825020.aspx
    Please refer to the following steps to set the source image.
    1. Assign Drive Letters to Partitions by Windows PE.
    2. Capture Partition Images using DISM
    For more information, please refer to the following article.
    http://technet.microsoft.com/en-us/library/hh825072.aspx
    Then, we could try the command Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\windows /LimitAccess.
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • HT201250 Can I include external drives to be backed up using Time Machine.  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.

    Can I include external drives to be backed up using Time Machine?  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.  How do I know if they are included in the backup process?

    Yes, if they are not exclude then TM backs them up.
    Allan

  • How to include external style sheet

    Hi !!
    Can any one explain how to include external style sheet.

    Anil,
    Simply include the css file as I demonstrated in my last post and then reference one the css classes by name in the "styleClass" attribute of the component. So, if the css file that have included in my JSP file (as demonstrated in the prev post) contains a class like:
    .spicyPink {
    color:#FF1CAE;
    font-weight:bold;
    Then I would simply reference this class in the component as folows:
    <af:outputText value="Pretty In Pink" styleClass="spicyPink"/>
    However, you can also add styling to a component inline and accomplish the same task:
    <af:outputText value="Pretty In Pink" inlineStyle="color:#FF1CAE;
    font-weight:bold;"/>
    The thing to remember is that other than the use of styleClass and inlineStyle, referencing and including css in your JSP/JSPX pages is really no different that used in an HTML page.
    Here is reference to help you along:
    http://www.w3.org/TR/REC-CSS1#containment-in-html
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to include assigned .as files in MXMLC ant task ?

    When i use mxmlc ant task, i found that
    the tag <include-sources/> doesn't support !
    ( described by http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html )
    neither SDK version 3.x nor 4.x
    Are they lying?!
    How to include assigned .as files ?
    Thank you !

    My understanding is that mxmlc will use all available resources in the source path, as needed. Instead of giving it individual resources to include, you simply need to give it the source-path that contains those resources. This is different from a library project, which may need to include individual classes that are never used in that library.

  • How to include a dynamic file

    Hi,
    The following syntax does not work:
    <%@ include file="htmls/mydocs/<%=dynamicFileName%>.htm" %>
    could you tell me how to include a dynamic file?
    thanks,
    peterzhu

    The include directive <%@ include ... does not work with dynamic file names, because it is evaluated at compile time.
    You have to use the include standard action <jsp:include page=... This is executed during runtime, and hence a dynamic file name can be used.

  • How to include multiple image components into a single custom component???

    How to include multiple image components into a single custom component???

    Hi Marcel,
    an ABAP transaction can only run or at least be started on one single system. A portal transaction can be assigned using a URL. This doesn't need any logical component.
    Regards
    Andreas

  • How to upload a excel file using BDC

    how should i upload a file using BDC
    i have downloaded a excel file containing the values of  table A006 a X server.
    now i hav to upload it into new server Y server using BDC , how do i do it?
    wat all things one shud consider ?

    Hi,
    This is very simple, follow the below mention steps to do so:
    1.Declare an internal table having same structure as db table, but take all the fields type as 'C' and length same as defined in the table.
    TYPES:BEGIN OF it,
      key(20) TYPE c,
      indicator(20) TYPE c,
      bldat(20) TYPE c,"bkpf-bldat
      budat(20) TYPE c,"bkpf-budat
      END OF it.
    DATA: itab TYPE STANDARD TABLE OF it,
          wa TYPE it.
    2.Include TRUX as type pool and declare a variable of type trux_t_text_data to be passed in the FM that actually reads data from excel sheet into above declared intrenal table.
    TYPE-POOLS: truxs.
    DATA: it_raw TYPE truxs_t_text_data.
    3. Call the FM 'TEXT_CONVERT_XLS_TO_SAP' and pass the file name and the internal table name into the parameter
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
    *    I_FIELD_SEPERATOR          = 'X'
         i_line_header              = 'X'
          i_tab_raw_data             = it_raw
          i_filename                 = p_file "name of the excel file
        TABLES
          i_tab_converted_data       = itab[] "internal table where data will be stored
       EXCEPTIONS
         conversion_failed          = 1
         OTHERS                     = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    4. loop at internal table and modify the ztable/dbtable where data to be upload .
    Hope this solve your problem.
    Pooja

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

Maybe you are looking for

  • Creation of Maintenance Plan through IBIP t.code

    Hi, I want to create the Maintenance Plan in Mass using the IBIP t.code. I am using Record name as IBIPMPLA, and trying to create the Plan but instead of providing Plan description in t he file error is coming for Plan description. If any procedure i

  • How to implement GIL programming for quotation managetment

    Dear Expert: We want to implement fund pool function in quotation management to give customers special discount from the fund pool. It need add new assignment block of fund pool and price discount assigned for customer. The data for that is stored in

  • BP - CP:  function modul for relationship-data ?

    Hello forum, we have relations between bp and cp. And in this relationship we have the contact data like phone/mail etc. Is there a function modul which gives me this relationship-data ? Thanks Gerd

  • Migrating: Collo being difficult :( need some simple vlan/routing answers)

    Hello, I just purchased 2xc2950's, and a 515E. One 2950 is for outside, one inside, with the 515E protecting the inside. We have been renting these devices from our collocation, and the lease is up. So we've decided to manager our own, BUT, now they'

  • PSE 4.0: Keine Zugriffsberechtigung bei Katalog nach Wiederherstellung

    Hallo zusammen, nach meinen leider mehr als frustrierenden (und noch andauernden ) Erfahrungen durch die Installation von PSE 4.0 nach PSE 5.0 habe ich mit PSE 4.0 ein älteres Backup der Photos zurückspielen wollen. Die Wiederherstellung lief lange,