URGENT:How do i insert a javascript link into tiles


Web tier: servlets, JSP, Web frameworks: URGENT:How do i insert a javascript link into tiles

  1. Hi

    Struggling with concept of providing value of a javascript file through a definition file to a layout.

    For eg: I want the final content in the layout to be as follows:

    <script type="text/javascript" language="JavaScript" src="http://www.someotherserver/scriptsfolder/scripts.js">>

    I want to pass the "src" thru a definition..how do i do that...and what considerations i must give to retreive such
    script from a different server?

    Also similarly can i include static images located in different server using definitions?

    this is real urgent!!!
    thanks veru much
  2. If you need customised entries, I would sugggest you to place the text in the form as a String property. you can render this as is by <bean:write xxxx filter="false"/> tag which will write the text AS IS.

    I tried it when I had a complex HTML to be built dynamically. It may not be an elegant solution, but it worked for me.
  3. thanks for that!

    i will try it!