View Full Version : javascript from java

07-05-2006, 05:46 PM
hi ,
Is there anyway to call javascript function from the core java(not applets) . plz suggest me here.

07-05-2006, 06:37 PM
JavaScript is a language.

The traditional paradigm for using javascript is from within the environment of a web browser.

If you're going to talk about "core java", you have broken the traditional and assumed paradigm for conversation about JavaScript and you must further specify your assumptions in order for anyone to engage in a meaningful conversation.

Is the core java an application you wrote? Does it need a JavaScript interpreter?

Are you using JSPs and want to talk about calling JavaScript functions from your server pages?

Are you working with a Java-based browser and need to know how to extend it's functionality using javascript?

Help us help you.

07-05-2006, 07:23 PM

i have written a filter which will include the js file into the jsp everytime the request is encountered by the server. in this way , i am able to include a javascript function and called the function on every new request to the server. whatever u said is acceptable . thankyou. cheers

07-05-2006, 07:28 PM
Is there still a question? I'm honestly confused. I think there's a slight language barrier, and I apologize for not being able to understand you easily.

If you still need help, could you post your question again, and perhaps some code?