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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.