wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript and JSP
 
Similar Threads
This Weeks GiveAway:
JSP And Javascript - How to
Call the spring 3 controller's method from javascript code
Problem in request forwarding
jsp:useBean doubt