aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript and JSP" Watch "Javascript and JSP" New topic
Author

Javascript and JSP

Revati Pathak
Greenhorn

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?
-Revati
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
Greenhorn

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
 
jQuery in Action, 2nd edition
 
subject: Javascript and JSP