[jboss-user] [JBoss Portal] - where should i include my javascript file?

saigon_man do-not-reply at jboss.com
Thu Aug 2 11:08:19 EDT 2007


Hello, 
I created a portlet with a button associated with a javascript function. I'd like to have all of my javascript functions to be in one file, called myscript.js
The question that I have is where should I put that script? Is it possible to put it inside my war file like js/myscript.js? If this is possible, could you give me a  simple example? I tried to put that file inside my war file, within the jsp portlet file, but IE gives me some javascript errors, something about syntax error, but I am sure there is no syntax error in my codes

I am using JBoss Portal 2.6 bundled with Jboss AS 4.2.1, JDK 1.6

One more thing, has anyone experienced with integrating DWR with JBoss portal? If yes, is there a tutorials of how to do this?

Thanks,

TL

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070148#4070148

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070148



More information about the jboss-user mailing list