×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How can i execute JavaScript Function from JSP For ... Loop

How can i execute JavaScript Function from JSP For ... Loop

How can i execute JavaScript Function from JSP For ... Loop

(OP)
I have javascript function called "calcul" with one paramter named "val1".

In JSP
======
For(int 1=0;i<=10;i++)
{

//Here how can i execute javascript function

}

Thankx in advance


RE: How can i execute JavaScript Function from JSP For ... Loop

You can't...

anyone?

--
Tim <tim@planetedge.co.uk>

RE: How can i execute JavaScript Function from JSP For ... Loop

i think tiz is right. jsp is processed on the server whereas javascript is client side. so to access a javascript funtion i would think the page would have to be loaded into the client browser, this means that jsp has finished processing.

correct me if im wrong

and the circus leaves town...

RE: How can i execute JavaScript Function from JSP For ... Loop

You can call a JavaScript function on the server within a JavaServer page. But this depends on the implementation platform. Engines that support both JavaScript and JavaServer Pages would probably allow you to do a mix and match of both scripts. You may want to look at the server configuration docs for more help.

RE: How can i execute JavaScript Function from JSP For ... Loop

Can't you just implement the JavaScript function in Java and call it from the JSP?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close