This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Servlets and the fly likes Javascript and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript and JSP" Watch "Javascript and JSP" New topic

Javascript and JSP

Revati Pathak

Joined: Feb 19, 2001
Posts: 26
I am facing very strange problem in my JSP. in my JSP i want to execute certain Javascript code and then suppose i want to use forword tag.
but actually instead of executing the Javascript code it is redirecting the control to another page.
is there any solution for this problem?
Ramneek Handa
Ranch Hand

Joined: Nov 10, 2000
Posts: 44
Hi Revati
java script will run on client side and forword will work on server side.
you can not run javascript at server side.
Vimal Gandhi

Joined: Nov 29, 2000
Posts: 9
Ya thats true that javascript work on client & forward work on server side, but you can varify your code with javascript on client side with onclick event on any button if it is there else on any link.
ok try on it
I agree. Here's the link:
subject: Javascript and JSP
It's not a secret anymore!