How to dynamically import javascript and css files

Posted by marcos on Stack Overflow See other posts from Stack Overflow or by marcos
Published on 2010-03-20T18:02:18Z Indexed on 2010/03/20 18:11 UTC
Read the original article Hit count: 199

Filed under:
|
|
|
|

i Want to import a given css or javascript file depending os some conditions, in my Servlet i have:


protected void doPost(...)
{
   if(condition)
   {
     //import some javascript or css file here
   }

}

I need this behavior since i have too many files to import and the files name may vary according to the condition Is it possible?

© Stack Overflow or respective owner

Related posts about jsp

Related posts about servlet