Skip to Content
author's profile photo Former Member
Former Member

What is the path to the javascript file in iView ?

Hello:

In an iView(jsp page), I want to give the reference to

the javascript file like..

<SCRIPT src="<path>/myjavascript.js"></SCRIPT>

I want to include the file under public/scripts folder of

the project hierarchy I am developing in Eclipse. We know

that jsp file which is stored under private/pagelet

folder gets deployed to a different place than the

public/scripts folder contents. I tried different things

like /public/scripts/myjavascript.js ,

/irj/resources/BudMenuTest/scripts/myjavascript.js etc.

But no use.

Any help is highly appreciated.

Thank you,

Prasad Nutalapati

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2004 at 05:13 PM

    Hi:

    I found it in our good old PDK documentation.

    <% IResource jsResource = componentRequest.getResource(IResource.SCRIPT, "script/statusinfo.js");

    response.addResource(jsResource);

    %>

    Thanks,

    Prasad Nutalapati

    Add comment
    10|10000 characters needed characters exceeded