File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Javascript and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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
 
 
subject: Javascript and JSP
 
Threads others viewed
Problem in request forwarding
Call the spring 3 controller's method from javascript code
This Weeks GiveAway:
JSP And Javascript - How to
jsp:useBean doubt
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture